public function __construct() { global $config, $tmpl; if ($config->isResetDataPermitted()) { $tmpl->assign('reset_data_is_permitted', true); } parent::__construct(); return true; }
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; }
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; }
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(); }
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(); }
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; }
/** * 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; }
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; }
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(); }
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(); }
public function __construct(DefaultModel $model) { parent::__construct($model); $this->model = $model; }
public function __construct(SupportModel $model) { parent::__construct($model); $this->model = $model; }
public function __construct(LoginModel $model) { parent::__construct($model); $this->model = $model; }
public function __construct(ProfileModel $model) { parent::__construct($model); $this->model = $model; }
public function __construct(CheckOrderModel $model) { parent::__construct($model); $this->model = $model; }
public function __construct(SubdescriptionModel $model) { parent::__construct($model); $this->model = $model; }