video thumbnails are displayed as slideshow when mouse is over; video widget bugs...
[living-lab-site.git] / system / core / Controller.php
1 <?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
2 /**
3  * CodeIgniter
4  *
5  * An open source application development framework for PHP 5.1.6 or newer
6  *
7  * @package             CodeIgniter
8  * @author              ExpressionEngine Dev Team
9  * @copyright   Copyright (c) 2008 - 2011, EllisLab, Inc.
10  * @license             http://codeigniter.com/user_guide/license.html
11  * @link                http://codeigniter.com
12  * @since               Version 1.0
13  * @filesource
14  */
15
16 // ------------------------------------------------------------------------
17
18 /**
19  * CodeIgniter Application Controller Class
20  *
21  * This class object is the super class that every library in
22  * CodeIgniter will be assigned to.
23  *
24  * @package             CodeIgniter
25  * @subpackage  Libraries
26  * @category    Libraries
27  * @author              ExpressionEngine Dev Team
28  * @link                http://codeigniter.com/user_guide/general/controllers.html
29  */
30 class CI_Controller {
31         
32         // TODO remove development declarations (used for Eclipse)
33 //      /**
34 //      * @var CI_Config
35 //      */
36 //      var $config;
37 //      /**
38 //       * @var CI_DB_active_record
39 //       */
40 //      var $db;
41 //      /**
42 //       * @var CI_Email
43 //       */
44 //      var $email;
45 //      /**
46 //       * @var CI_Form_validation
47 //       */
48 //      var $form_validation;
49 //      /**
50 //       * @var CI_Input
51 //       */
52 //      var $input;
53 //      /**
54 //       * @var CI_Loader
55 //       */
56 //      var $load;
57 //      /**
58 //       * @var CI_Router
59 //       */
60 //      var $router;
61 //      /**
62 //       * @var CI_Session
63 //       */
64 //      var $session;
65 //      /**
66 //       * @var CI_Table
67 //       */
68 //      var $table;
69 //      /**
70 //       * @var CI_Unit_test
71 //       */
72 //      var $unit;
73 //      /**
74 //       * @var CI_URI
75 //       */
76 //      var $uri;
77 //      /**
78 //       * @var CI_Pagination
79 //       */
80 //      var $pagination;
81 //      /* My declarations */
82 //      /**
83 //       * @var Videos_model
84 //       */
85         //var $videos_model;
86
87         private static $instance;
88
89         /**
90          * Constructor
91          */
92         public function __construct()
93         {
94                 self::$instance =& $this;
95                 
96                 // Assign all the class objects that were instantiated by the
97                 // bootstrap file (CodeIgniter.php) to local class variables
98                 // so that CI can run as one big super object.
99                 foreach (is_loaded() as $var => $class)
100                 {
101                         $this->$var =& load_class($class);
102                 }
103
104                 $this->load =& load_class('Loader', 'core');
105
106                 $this->load->_base_classes =& is_loaded();
107
108                 $this->load->_ci_autoloader();
109
110                 log_message('debug', "Controller Class Initialized");
111
112         }
113
114         public static function &get_instance()
115         {
116                 return self::$instance;
117         }
118 }
119 // END Controller class
120
121 /* End of file Controller.php */
122 /* Location: ./system/core/Controller.php */