Esempio n. 1
0
 /**
  *
  * @return Editor_Box_model
  */
 public static function getInstance()
 {
     if (self::$_instance === NULL) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
Esempio n. 2
0
 function __construct()
 {
     parent::__construct(true);
     $this->load->model('Editor_Box_model', NULL, TRUE);
     $this->load->model('Editor_Box_Item_model', NULL, TRUE);
     $this->Editor_Box_model = Editor_Box_model::getInstance();
     $this->Editor_Box_Item_model = Editor_Box_Item_model::getInstance();
     $this->_config = $this->config->config;
     set_userdata('active_menu', strtolower(get_class($this)));
 }
Esempio n. 3
0
 function __construct()
 {
     parent::__construct();
     $this->load->model('Video_model', NULL, TRUE);
     $this->load->model('Series_model', NULL, TRUE);
     $this->load->model('Editor_Box_model', NULL, TRUE);
     $this->Video_model = Video_model::getInstance();
     $this->Series_model = Series_model::getInstance();
     $this->Editor_Box_model = Editor_Box_model::getInstance();
     $this->_config = $this->config->config;
 }