Ejemplo n.º 1
0
 protected function _createController()
 {
     if (!file_exists($this->getModDir() . 'controller.php')) {
         return false;
         // EXCEPTION!!!
     }
     if ($this->_controller) {
         return true;
     }
     if (file_exists($this->getModDir() . 'controller.php')) {
         $className = '';
         if (import($this->getModDir() . 'controller.php')) {
             $className = toeGetClassNameBup($this->getCode() . 'Controller');
         }
         if (!empty($className)) {
             $this->_controller = new $className($this->getCode());
             $this->_controller->init();
             return true;
         }
     }
     return false;
 }
Ejemplo n.º 2
0
 /**
  * Get model
  * @param  string $name
  * @return \backupModelBup
  */
 public function getModel($name = '')
 {
     return parent::getModel($name);
 }
Ejemplo n.º 3
0
 public function __construct($code = '')
 {
     parent::__construct($code);
     $model = frameBup::_()->getModule('options')->get('dropbox_model');
     $this->model = $this->getModel($model);
 }