blob: 6f2fbdab0eee4406752f606d413b45ffbada2d73 [file] [log] [blame]
Derek Allard2067d1a2008-11-13 22:59:24 +00001<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
2/**
3 * CodeIgniter
4 *
5 * An open source application development framework for PHP 4.3.2 or newer
6 *
7 * @package CodeIgniter
8 * @author ExpressionEngine Dev Team
Derek Jones7f3719f2010-01-05 13:35:37 +00009 * @copyright Copyright (c) 2008 - 2010, EllisLab, Inc.
Derek Allard2067d1a2008-11-13 22:59:24 +000010 * @license http://codeigniter.com/user_guide/license.html
11 * @link http://codeigniter.com
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.
Derek Jonesd7055aa2010-03-02 13:32:57 -060025 * @PHP4 (no need for separate Bases after PHP 4 is gone)
26 *
Derek Allard2067d1a2008-11-13 22:59:24 +000027 * @package CodeIgniter
28 * @subpackage codeigniter
29 * @category front-controller
30 * @author ExpressionEngine Dev Team
31 * @link http://codeigniter.com/user_guide/
32 */
33
34class CI_Base {
35
36 private static $instance;
37
38 public function CI_Base()
39 {
40 self::$instance =& $this;
41 }
42
43 public static function &get_instance()
44 {
45 return self::$instance;
46 }
47}
48
49function &get_instance()
50{
51 return CI_Base::get_instance();
52}
53
54
55
56/* End of file Base5.php */
Derek Jonesc68dfbf2010-03-02 12:59:23 -060057/* Location: ./system/core/Base5.php */