Base5.php

Go to the documentation of this file.
00001 <?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
00002 /**
00003  * CodeIgniter
00004  *
00005  * An open source application development framework for PHP 4.3.2 or newer
00006  *
00007  * @package             CodeIgniter
00008  * @author              ExpressionEngine Dev Team
00009  * @copyright   Copyright (c) 2008, EllisLab, Inc.
00010  * @license             http://codeigniter.com/user_guide/license.html
00011  * @link                http://codeigniter.com
00012  * @since               Version 1.3
00013  * @filesource
00014  */
00015 
00016 
00017 // ------------------------------------------------------------------------
00018 
00019 /**
00020  * CI_BASE - For PHP 5
00021  *
00022  * This file contains some code used only when CodeIgniter is being
00023  * run under PHP 5.  It allows us to manage the CI super object more
00024  * gracefully than what is possible with PHP 4.
00025  *
00026  * @package             CodeIgniter
00027  * @subpackage  codeigniter
00028  * @category    front-controller
00029  * @author              ExpressionEngine Dev Team
00030  * @link                http://codeigniter.com/user_guide/
00031  */
00032 
00033 class CI_Base {
00034 
00035         private static $instance;
00036 
00037         public function CI_Base()
00038         {
00039                 self::$instance =& $this;
00040         }
00041 
00042         public static function &get_instance()
00043         {
00044                 return self::$instance;
00045         }
00046 }
00047 
00048 function &get_instance()
00049 {
00050         return CI_Base::get_instance();
00051 }
00052 
00053 
00054 
00055 /* End of file Base5.php */
00056 /* Location: ./system/codeigniter/Base5.php */