Exemplo n.º 1
0
 public function __construct()
 {
     global $config, $tmpl;
     if ($config->isResetDataPermitted()) {
         $tmpl->assign('reset_data_is_permitted', true);
     }
     parent::__construct();
     return true;
 }
Exemplo n.º 2
0
 public function __construct()
 {
     global $config;
     if (!$config->isHttpUploadEnabled()) {
         static::raiseError(__CLASS__ . ', HTTP uploading is not enabled in configuration!', true);
         return false;
     }
     parent::__construct();
     return true;
 }
Exemplo n.º 3
0
 public function __construct()
 {
     global $tmpl;
     $tmpl->registerPlugin("block", "top10", array(&$this, 'showTop10List'));
     if (!$this->load()) {
         static::raiseError(__CLASS__ . ', load() returned false!');
         return false;
     }
     parent::__construct();
     return true;
 }
Exemplo n.º 4
0
 public function __construct()
 {
     try {
         $protocols = new \MasterShaper\Models\ProtocolsModel();
     } catch (\Exception $e) {
         static::raiseError(__METHOD__ . '(), failed to load ProtocolsModel!', true, $e);
         return;
     }
     if (!$this->setViewData($protocols)) {
         static::raiseError(__CLASS__ . '::setViewData() returned false!', true);
         return;
     }
     parent::__construct();
 }
Exemplo n.º 5
0
 public function __construct()
 {
     try {
         $service_levels = new \MasterShaper\Models\ServiceLevelsModel();
     } catch (\Exception $e) {
         static::raiseError(__METHOD__ . '(), failed to load ServiceLevelsModel!', false, $e);
         return false;
     }
     if (!$this->setViewData($service_levels)) {
         static::raiseError(__CLASS__ . '::setViewData() returned false!');
         return false;
     }
     parent::__construct();
 }
Exemplo n.º 6
0
 public function __construct()
 {
     try {
         $keywords = new \Mtlda\Models\KeywordsModel();
     } catch (\Exception $e) {
         static::raiseError(__CLASS_ . ', failed to load KeywordsModel', true);
         return;
     }
     if (!$this->setViewData($keywords)) {
         static::raiseError(__CLASS__ . '::setViewData() returned false!', true);
         return;
     }
     parent::__construct();
     return;
 }
Exemplo n.º 7
0
 /**
  * overwrite parents __construct() method as we do not have a lot to do here.
  *
  * @param none
  * @return void
  * @throws \Thallium\Controllers\ExceptionController
  */
 public function __construct()
 {
     if (!\Thallium\Controllers\MainController::inTestMode()) {
         static::raiseError(__METHOD__ . '(), this view is only valid in test mode!', true);
         return;
     }
     if (!$this->addMode('show')) {
         static::raiseError(__CLASS__ . '::addMode() returned false!', true);
         return;
     }
     if (!$this->addContent('testcontent')) {
         static::raiseError(__CLASS__ . '::addContent() returned false!', true);
         return;
     }
     parent::__construct();
     return;
 }
Exemplo n.º 8
0
 public function __construct()
 {
     global $tmpl;
     try {
         $archive = new \Mtlda\Models\ArchiveModel();
     } catch (\Exception $e) {
         static::raiseError("Failed to load ArchiveModel!", true);
         return;
     }
     if (!$this->setViewData($archive)) {
         static::raiseError(__CLASS__ . '::setViewData() returned false!', true);
         return;
     }
     $tmpl->registerPlugin("function", "list_versions", array(&$this, "listVersions"), false);
     parent::__construct();
     return;
 }
Exemplo n.º 9
0
 public function __construct()
 {
     global $tmpl, $session;
     try {
         $network_paths = new \MasterShaper\Models\NetworkPathsModel();
     } catch (\Exception $e) {
         static::raiseError(__METHOD__ . '(), failed to load NetworkPathsModel!', true, $e);
         return;
     }
     if (!$this->setViewData($network_paths)) {
         static::raiseError(__CLASS__ . '::setViewData() returned false!', true);
         return;
     }
     if (($this->host_idx = $session->getCurrentHostProfile()) === false) {
         static::raiseError(get_class($session) . '::getCurrentHostProfile() returned false!', true);
         return;
     }
     $tmpl->registerPlugin("function", "if_select_list", array(&$this, "smartyIfSelectList"), false);
     $tmpl->registerPlugin("block", "chain_list", array(&$this, "smartyChainList"), false);
     parent::__construct();
 }
Exemplo n.º 10
0
 public function __construct()
 {
     try {
         $queue = new \Mtlda\Models\QueueModel();
     } catch (\Exception $e) {
         static::raiseError(__METHOD__ . '(), failed to load QueueModel!', true);
         return false;
     }
     if (!$this->setViewData($queue)) {
         static::raiseError(__CLASS__ . '::setViewData() returned false!', true);
         return;
     }
     try {
         $this->import = new \Mtlda\Controllers\ImportController();
     } catch (\Exception $e) {
         static::raiseError(__METHOD__ . '(), failed to load ImportController!', true);
         return false;
     }
     if (!$this->addMode('archive')) {
         static::raiseError(__CLASS__ . '::addMode() returned false!', true);
         return false;
     }
     if (!$this->addMode('split')) {
         static::raiseError(__CLASS__ . '::addMode() returned false!', true);
         return false;
     }
     if (!$this->addContent('archiver')) {
         static::raiseError(__CLASS__ . '::addContent() returned false!', true);
         return false;
     }
     if (!$this->addContent('splitter')) {
         static::raiseError(__CLASS__ . '::addContent() returned false!', true);
         return false;
     }
     parent::__construct();
 }
Exemplo n.º 11
0
 public function __construct(DefaultModel $model)
 {
     parent::__construct($model);
     $this->model = $model;
 }
Exemplo n.º 12
0
 public function __construct(SupportModel $model)
 {
     parent::__construct($model);
     $this->model = $model;
 }
Exemplo n.º 13
0
 public function __construct(LoginModel $model)
 {
     parent::__construct($model);
     $this->model = $model;
 }
Exemplo n.º 14
0
 public function __construct(ProfileModel $model)
 {
     parent::__construct($model);
     $this->model = $model;
 }
Exemplo n.º 15
0
 public function __construct(CheckOrderModel $model)
 {
     parent::__construct($model);
     $this->model = $model;
 }
Exemplo n.º 16
0
 public function __construct(SubdescriptionModel $model)
 {
     parent::__construct($model);
     $this->model = $model;
 }