Derek Jones | 0b59f27 | 2008-05-13 04:22:33 +0000 | [diff] [blame] | 1 | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
Derek Allard | d2df9bc | 2007-04-15 17:41:17 +0000 | [diff] [blame] | 2 | /**
|
| 3 | * CodeIgniter
|
| 4 | *
|
| 5 | * An open source application development framework for PHP 4.3.2 or newer
|
| 6 | *
|
| 7 | * @package CodeIgniter
|
Derek Allard | 3d879d5 | 2008-01-18 19:41:32 +0000 | [diff] [blame] | 8 | * @author ExpressionEngine Dev Team
|
Derek Allard | d2df9bc | 2007-04-15 17:41:17 +0000 | [diff] [blame] | 9 | * @copyright Copyright (c) 2006, EllisLab, Inc.
|
Derek Jones | 7a9193a | 2008-01-21 18:39:20 +0000 | [diff] [blame] | 10 | * @license http://codeigniter.com/user_guide/license.html
|
| 11 | * @link http://codeigniter.com
|
Derek Allard | d2df9bc | 2007-04-15 17:41:17 +0000 | [diff] [blame] | 12 | * @since Version 1.3
|
| 13 | * @filesource
|
| 14 | */
|
| 15 |
|
| 16 |
|
| 17 | // ------------------------------------------------------------------------
|
| 18 |
|
| 19 | /**
|
| 20 | * CI_BASE - For PHP 5
|
| 21 | *
|
| 22 | * This file contains some code used only when CodeIgniter is being
|
| 23 | * run under PHP 5. It allows us to manage the CI super object more
|
| 24 | * gracefully than what is possible with PHP 4.
|
| 25 | *
|
| 26 | * @package CodeIgniter
|
| 27 | * @subpackage codeigniter
|
| 28 | * @category front-controller
|
Derek Allard | 3d879d5 | 2008-01-18 19:41:32 +0000 | [diff] [blame] | 29 | * @author ExpressionEngine Dev Team
|
Derek Jones | 7a9193a | 2008-01-21 18:39:20 +0000 | [diff] [blame] | 30 | * @link http://codeigniter.com/user_guide/
|
Derek Allard | d2df9bc | 2007-04-15 17:41:17 +0000 | [diff] [blame] | 31 | */
|
| 32 |
|
| 33 | class CI_Base {
|
| 34 |
|
| 35 | private static $instance;
|
| 36 |
|
| 37 | public function CI_Base()
|
| 38 | {
|
| 39 | self::$instance =& $this;
|
| 40 | }
|
| 41 |
|
| 42 | public static function &get_instance()
|
| 43 | {
|
| 44 | return self::$instance;
|
| 45 | }
|
| 46 | }
|
| 47 |
|
| 48 | function &get_instance()
|
| 49 | {
|
| 50 | return CI_Base::get_instance();
|
| 51 | }
|
| 52 |
|
| 53 |
|
Derek Jones | 0b59f27 | 2008-05-13 04:22:33 +0000 | [diff] [blame] | 54 |
|
| 55 | /* End of file Base5.php */
|
Derek Jones | a3ffbbb | 2008-05-11 18:18:29 +0000 | [diff] [blame] | 56 | /* Location: ./system/codeigniter/Base5.php */ |