public function __construct() { parent::__construct(new View(Config::DIR_TMPL), new Message(Config::FILE_MESSAGES)); $this->mail = new Mail(); $this->url_active = URL::deleteGET(URL::current(), "page"); $this->link_search = URL::get("search"); }
public function __construct() { parent::__construct(); $this->model = new StatsModel(); $this->view = new StatsView(); $this->chartHelper = new ChartHelper(); }
public function __construct($params) { if (!isset($_SERVER['SSL_CLIENT_S_DN_CN']) || $_SERVER['SSL_CLIENT_S_DN_CN'] != ADMIN_CERT) { throw new Exception('Access denied'); } parent::__construct($params); }
/** * @var ITeamInvitationRepository */ public function __construct() { parent::__construct(); $this->member_repository = new SapphireCLAMemberRepository(); $this->invitation_repository = new SapphireTeamInvitationRepository(); $this->team_manager = new CCLATeamManager($this->invitation_repository, $this->member_repository, new TeamInvitationFactory(), new TeamFactory(), new CCLAValidatorFactory(), new SapphireTeamRepository(), SapphireTransactionManager::getInstance()); }
public function __construct() { parent::__construct(); $this->model = new UploadModel(); $this->view = new UploadView(); $this->allowedExts = array('c', 'cpp', 'java', 'py', 'php', 'cs', 'js', 'xml', 'json', 'rb', 'scala', 'go'); }
public function __construct() { parent::__construct(); $this->delete_request_repository = new SapphireDupeMemberDeleteRequestRepository(); $this->merge_request_repository = new SapphireDupeMemberMergeRequestRepository(); $this->manager = new DupesMembersManager(new SapphireDupesMemberRepository(), new DupeMemberMergeRequestFactory(), new DupeMemberDeleteRequestFactory(), $this->merge_request_repository, $this->delete_request_repository, new SapphireDeletedDupeMemberRepository(), new DeletedDupeMemberFactory(), new SapphireCandidateNominationRepository(), new SapphireNotMyAccountActionRepository(), new NotMyAccountActionFactory(), SapphireTransactionManager::getInstance(), SapphireBulkQueryRegistry::getInstance()); }
public function __construct() { parent::__construct(); $this->suggestfeedback = new Service_Feedbackinfo(); $this->cityinfo = new Service_Cityinfo(); $this->communitypropertyinfo = new Service_Communitypropertyinfo(); $this->bllfeedbackinfo = new Bll_Feedbackinfo(); }
public function __construct() { parent::__construct(new View(Config::DIR_TMPL), new Message(Config::FILE_MESSAGES)); //передаем шаблонизатор и др $this->mail = new Mail(); $this->url_active = URL::deleteGET(URL::current(), "page"); //присваиваем активную страницу удалив page }
public function __construct($view) { parent::__construct($view); // add necessary subcontrollers to display a whole page $this->addSubController(new OutlineController()); $this->addSubController(new NavigationController()); $this->addSubController(new FooterController()); }
function __construct() { parent::__construct(); $this->load->model("Projetos_model"); $allProjects = $this->Projetos_model->getXML(); $this->_data["projectList"] = $allProjects; $this->setTemplate("pages/site/site_view"); }
/** * Constructor * * @param $connector */ public function __construct(IBlogTransactions $connector) { // Wenn id auf dem Wert null bleibt, befinden wir uns in der "Latest" Ansicht if ($this->id == 0) { $this->numPosts = LATEST_ENTRIES_COUNT; } parent::__construct($connector); }
/** * Initializes the Controller instance and selects the appropiate View * @param Context $context */ function __construct(Context $context) { $type = $context->getViewType(); $class_name = $type . 'view'; $view = new $class_name($context); parent::__construct($context, $view); $this->db = new DatabaseProxy($this->load); $this->helper = new HelperLoader($this->load); }
function __construct(Context $context, $parent_context = null) { $this->parent_context = $parent_context; $view = new HtmlView($context); $view->setBufferOutput(true); parent::__construct($context, $view); $this->helper = new HelperLoader($this->load); $this->_execute(); }
public function __construct() { parent::__construct(); $this->communitypropertyinfo = new Service_Communitypropertyinfo(); $this->interestgroupinfo = new Service_Group(); $this->cityinfo = new Service_Cityinfo(); $this->communityname = new Bll_Feedbackinfo(); $this->hobbyinfo = new Service_Hobby(); }
protected function __construct($controller) { parent::__construct($controller); if (Router::getDefaultModule() == 'Page') { if (Page_Handler::getPageID()) { $this->show->merge(Page_Handler::getPage(), true); $this->show->breadcrumbs = Page_Handler::getPage()->getParents(); } $oPage = new Page(); list($full, $current) = $oPage->getMenuList(); if (is_array($full) && count($full)) { foreach ($full as $menu) { if (isset($menu["Children0"])) { $this->show->{'MENU_' . $menu["StaticPath"]} = $menu["Children0"]; } } } } // i.kiz для интернет магазина // $trash = NULL; // $this->show->basketList = NULL; if ($this->show->itemID) { $this->show->staticPath = $this->show->itemID; } else { if (!empty($this->data[0])) { $this->show->staticPath = $this->data[0]; } else { $this->show->staticPath = 0; } } $this->oCatalogCategory = new Catalog_Category(); $this->oCatalogBrand = new Catalog_Brand(); $this->show->catalogBrand = $this->oCatalogBrand->getList(); // menu $i = 0; $this->show->catalogMenu = array(); foreach ($this->show->catalogBrand as $br) { $this->show->catalogMenu['Brand'][$i] = $br['Title']; $cats = $this->oCatalogCategory->getList($br['BrandID']); $j = 0; foreach ($cats as $cat) { $this->show->catalogMenu['Category'][$i][$j] = $cat['Title']; $this->show->catalogMenu['CategoryID'][$i][$j] = $cat['CategoryID']; $j++; } $i++; } // корзина $this->session = MySession::getInstance(); $trash = $this->session->get('trash'); if (isset($trash)) { $this->show->trash = $trash; } else { $this->show->trash = array(); } }
public function __construct() { // if we haven't set a page language yet, use the one from the user's browser if (!isset($_SESSION[Session::LANGUAGE])) { // we have to take the first 2 letters of the browser's language // because the HTTP_ACCEPT_LANGUAGE' is for example "de_DE" (= language + country) $browserLanguage = substr($_SERVER["HTTP_ACCEPT_LANGUAGE"], 0, 2); self::handleLanguageChange($browserLanguage); } $view = new OutlineView(Template::OUTLINE, null); parent::__construct($view); }
function __construct($context, $page_context) { $this->doctype = self::HTML_5_0; $this->is_xhtml = false; $this->page_context = $page_context; parent::__construct($context, new HtmlView($context)); $this->view->setBufferOutput(AppConfig::OUTPUT_BUFFERING_ENABLED); $this->addMetaTag('', 'text/html; charset=' . $this->charset, 'Content-Type'); $this->addMetaTag('language', Lang::getCurrent(), ''); $this->addMetaTag('', 'no', 'imagetoolbar'); $this->_execute(); }
public function __construct() { parent::__construct(); $this->datas = new Service_Feedbackinfo(); $this->user = new Service_User(); $this->topicinfo = new Service_Topicinfo(); $this->topiccontent = new Service_Topiccontent(); $this->usercommunity = new Service_Usercommunity(); $this->communitypropertyinfo = new Service_Communitypropertyinfo(); $this->cityinfo = new Service_Cityinfo(); $this->bllfeedbackinfo = new Bll_Feedbackinfo(); }
public function __construct() { parent::__construct("psys"); $this->smarty->assign("cur_prj_var", "psys"); $db = new Psys_StationRule(); $totalregnum = $db->TotalRegNum(); if (!$totalregnum['new']) { $totalregnum['new'] = '...'; } $this->smarty->assign("totalregnum", $totalregnum['total']); $this->smarty->assign("newregnum", $totalregnum['new']); }
public function __construct(IContext &$context, CalendarModel &$model) { parent::__construct($model); $this->_context =& $context; $this->_mode = $context->getParam('mode'); if (is_null($this->_mode)) { $this->_mode = self::MODE_READ; } $this->_range = $context->getParam('range'); if (is_null($this->_range)) { $this->_range = self::VIEW_ANNUAL; } $model->setController($this); }
public function __construct() { parent::__construct(); $this->model = new IndexModel(); $this->view = new IndexView(); }
public function __construct() { $view = new FooterView(Template::FOOTER, null); parent::__construct($view); }
public function __construct($api, $logger) { parent::__construct($api, $logger); }
public function __construct(IContext &$context, DataGrid &$model) { parent::__construct($model); $this->_context =& $context; }
public function __construct() { parent::__construct(); }
public function __construct() { parent::__construct(); $this->group = new Bll_Group(); }
public function __construct() { parent::__construct(); $this->view = new ExecuteView(); $this->executionResult = array('code' => '', 'msg' => ''); }
public function __construct() { parent::__construct(); $this->view->subMenu = [['name' => 'Облик Вселенной', 'route' => ['universe/shape']], ['name' => 'Наблюдения', 'route' => ['universe/observations']], ['name' => 'Теоретические модели', 'route' => ['universe/models']]]; }
public function __construct() { parent::__construct("psys"); $this->smarty->assign("cur_prj_var", "psys"); }
public function __construct() { parent::__construct(); $this->model = new DownloadModel(); }