admin | b0dd10f | 2006-08-25 17:25:49 +0000 | [diff] [blame] | 1 | <?php if (!defined('BASEPATH')) exit('No direct script access allowed'); |
| 2 | /** |
| 3 | * Code Igniter |
| 4 | * |
| 5 | * An open source application development framework for PHP 4.3.2 or newer |
| 6 | * |
| 7 | * @package CodeIgniter |
| 8 | * @author Rick Ellis |
| 9 | * @copyright Copyright (c) 2006, pMachine, Inc. |
admin | e334c47 | 2006-10-21 19:44:22 +0000 | [diff] [blame^] | 10 | * @license http://www.codeignitor.com/user_guide/license.html |
admin | b0dd10f | 2006-08-25 17:25:49 +0000 | [diff] [blame] | 11 | * @link http://www.codeigniter.com |
| 12 | * @since Version 1.3 |
| 13 | * @filesource |
| 14 | */ |
admin | e334c47 | 2006-10-21 19:44:22 +0000 | [diff] [blame^] | 15 | |
| 16 | |
admin | b0dd10f | 2006-08-25 17:25:49 +0000 | [diff] [blame] | 17 | // ------------------------------------------------------------------------ |
| 18 | |
| 19 | /** |
| 20 | * CI_BASE - For PHP 5 |
admin | e334c47 | 2006-10-21 19:44:22 +0000 | [diff] [blame^] | 21 | * |
admin | b0dd10f | 2006-08-25 17:25:49 +0000 | [diff] [blame] | 22 | * This file contains some code used only when Code Igniter 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. |
admin | e334c47 | 2006-10-21 19:44:22 +0000 | [diff] [blame^] | 25 | * |
admin | b0dd10f | 2006-08-25 17:25:49 +0000 | [diff] [blame] | 26 | * @package CodeIgniter |
| 27 | * @subpackage codeigniter |
| 28 | * @category front-controller |
| 29 | * @author Rick Ellis |
| 30 | * @link http://www.codeigniter.com/user_guide/ |
| 31 | */ |
| 32 | |
| 33 | class CI_Base { |
| 34 | |
admin | e334c47 | 2006-10-21 19:44:22 +0000 | [diff] [blame^] | 35 | private static $instance; |
admin | b0dd10f | 2006-08-25 17:25:49 +0000 | [diff] [blame] | 36 | |
admin | e334c47 | 2006-10-21 19:44:22 +0000 | [diff] [blame^] | 37 | public function CI_Base() |
| 38 | { |
| 39 | self::$instance =& $this; |
| 40 | } |
| 41 | |
| 42 | public static function &get_instance() |
| 43 | { |
| 44 | return self::$instance; |
| 45 | } |
admin | b0dd10f | 2006-08-25 17:25:49 +0000 | [diff] [blame] | 46 | } |
| 47 | |
| 48 | function &get_instance() |
| 49 | { |
admin | e334c47 | 2006-10-21 19:44:22 +0000 | [diff] [blame^] | 50 | return CI_Base::get_instance(); |
admin | b0dd10f | 2006-08-25 17:25:49 +0000 | [diff] [blame] | 51 | } |
| 52 | |
admin | 07ad666 | 2006-10-03 06:12:52 +0000 | [diff] [blame] | 53 | |
admin | b0dd10f | 2006-08-25 17:25:49 +0000 | [diff] [blame] | 54 | ?> |