blob: 0d036fae293ff31344c71a0ff3ee6ad3b0a79903 [file] [log] [blame]
adminb0dd10f2006-08-25 17:25:49 +00001<?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.
admine334c472006-10-21 19:44:22 +000010 * @license http://www.codeignitor.com/user_guide/license.html
adminb0dd10f2006-08-25 17:25:49 +000011 * @link http://www.codeigniter.com
12 * @since Version 1.3
13 * @filesource
14 */
admine334c472006-10-21 19:44:22 +000015
16
adminb0dd10f2006-08-25 17:25:49 +000017// ------------------------------------------------------------------------
18
19/**
20 * CI_BASE - For PHP 5
admine334c472006-10-21 19:44:22 +000021 *
adminb0dd10f2006-08-25 17:25:49 +000022 * 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.
admine334c472006-10-21 19:44:22 +000025 *
adminb0dd10f2006-08-25 17:25:49 +000026 * @package CodeIgniter
27 * @subpackage codeigniter
28 * @category front-controller
29 * @author Rick Ellis
30 * @link http://www.codeigniter.com/user_guide/
31 */
32
33class CI_Base {
34
admine334c472006-10-21 19:44:22 +000035 private static $instance;
adminb0dd10f2006-08-25 17:25:49 +000036
admine334c472006-10-21 19:44:22 +000037 public function CI_Base()
38 {
39 self::$instance =& $this;
40 }
41
42 public static function &get_instance()
43 {
44 return self::$instance;
45 }
adminb0dd10f2006-08-25 17:25:49 +000046}
47
48function &get_instance()
49{
admine334c472006-10-21 19:44:22 +000050 return CI_Base::get_instance();
adminb0dd10f2006-08-25 17:25:49 +000051}
52
admin07ad6662006-10-03 06:12:52 +000053
adminb0dd10f2006-08-25 17:25:49 +000054?>