/** * Constructor * * @param mixed $arrElementData */ public function __construct($arrElementData) { if (!isset($arrElementData["formular_template"]) || $arrElementData["formular_template"] == "") { $arrElementData["formular_template"] = "/contact.tpl"; } parent::__construct($arrElementData); }
/** * Constructor * * @param mixed $arrElementData */ public function __construct($arrElementData) { parent::__construct($arrElementData); $strAction = $this->getParam("action"); if ($strAction == "newsDetail" && $this->arrElementData["news_view"] == 1) { $this->setAction("newsDetail"); } elseif (!isset($this->arrElementData["news_view"]) || $this->arrElementData["news_view"] == 0 || $strAction == "newsList") { $this->setAction("newsList"); } }
/** * Constructor * * @param mixed $arrElementData */ public function __construct($arrElementData) { parent::__construct($arrElementData); if (isset($arrElementData["search_query_id"]) && $arrElementData["search_query_id"] != "") { $this->setAction("search"); } $this->objSearchSearch = new class_module_search_search(); if ($this->getParam("searchterm") != "") { $this->objSearchSearch->setStrQuery(htmlToString(urldecode($this->getParam("searchterm")), true)); } }
/** * Constructor * * @param class_module_pages_pageelement $objElementData */ public function __construct($objElementData) { parent::__construct(); $this->setSystemid($objElementData->getSystemid()); //merge the attributes of $objElementData to the array $this->arrElementData["page_element_ph_placeholder"] = $objElementData->getStrPlaceholder(); $this->arrElementData["page_element_ph_name"] = $objElementData->getStrName(); $this->arrElementData["page_element_ph_element"] = $objElementData->getStrElement(); $this->arrElementData["page_element_ph_title"] = $objElementData->getStrTitle(false); $this->objElementData = $objElementData; }
/** * Constructor * * @param mixed $arrElementData */ public function __construct($arrElementData) { parent::__construct($arrElementData); // save a cookie to store the voting $objCookie = new class_cookie(); $this->arrCookieValues = explode(",", $objCookie->getCookie($this->STR_COOKIE_NAME)); //any actions to perform before? e.g. voting... if ($this->getAction() == "submitVoting") { $this->actionSubmitVoting(); $this->setAction("list"); } }
/** * Constructor * * @param mixed $arrElementData */ public function __construct($arrElementData) { parent::__construct($arrElementData); if ($this->getAction() == "mediaFolder" || $this->getAction() == "imageFolder" || $this->getAction() == "openDlFolder") { $this->setAction("list"); } if ($this->getAction() == "detailImage" || $this->getAction() == "detailDownload") { $this->setAction("fileDetails"); } if (isset($this->arrElementData["gallery_mode"]) && $this->arrElementData["gallery_mode"] == 1) { $this->setAction("random"); } }
/** * Constructor * * @param array $arrElementData */ public function __construct($arrElementData) { parent::__construct($arrElementData); //Determine the current site to load $this->strCurrentSite = $this->getPagename(); //init with the current navigation, required in all cases if (isset($this->arrElementData["navigation_id"])) { if (!isset(self::$arrStaticNodes[$this->arrElementData["navigation_id"]])) { /** @var class_module_navigation_tree $objNavigation */ $objNavigation = class_objectfactory::getInstance()->getObject($this->arrElementData["navigation_id"]); self::$arrStaticNodes[$this->arrElementData["navigation_id"]] = $objNavigation->getCompleteNaviStructure(); } $this->arrTempNodes[$this->arrElementData["navigation_id"]] = self::$arrStaticNodes[$this->arrElementData["navigation_id"]]; } //set the default navigation mode $this->setAction("navigationSitemap"); //foreach($this->arrTempNodes[$this->arrElementData["navigation_id"]]["subnodes"] as $objOneNode) // $this->printTreeLevel(1, $objOneNode); }
/** * @param array|mixed $arrElementData */ public function __construct($arrElementData) { parent::__construct($arrElementData); $this->setAction("generatePage"); }