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; }
/** * Get model * @param string $name * @return \backupModelBup */ public function getModel($name = '') { return parent::getModel($name); }
public function __construct($code = '') { parent::__construct($code); $model = frameBup::_()->getModule('options')->get('dropbox_model'); $this->model = $this->getModel($model); }