/** * Initializes this object * * @param tx_kesearch_lib $pObj * @return void */ public function init(tx_kesearch_lib $pObj) { $this->pObj = $pObj; $this->db = $this->pObj->db; $this->cObj = $this->pObj->cObj; $this->conf = $this->pObj->conf; // get subparts $this->subpartArray['###ORDERNAVIGATION###'] = $this->cObj->getSubpart($this->pObj->templateCode, '###ORDERNAVIGATION###'); $this->subpartArray['###SORT_LINK###'] = $this->cObj->getSubpart($this->subpartArray['###ORDERNAVIGATION###'], '###SORT_LINK###'); // get sorting values (sortdate, title, what ever...) $this->sortBy = TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode(',', $this->conf['sortByVisitor'], true); }
/** * Initializes this object * * @param tx_kesearch_lib $pObj * @return void */ public function init(tx_kesearch_lib $pObj) { $this->pObj = $pObj; $this->cObj = $this->pObj->cObj; $this->conf = $this->pObj->conf; // reset global values $this->countActiveOptions = 0; $this->contentOfHiddenFields = array(); $this->contentOfActiveOptions = array(); $this->contentOfNormalOptions = array(); // set template array $this->templateArray['filter'] = $this->cObj->getSubpart($this->pObj->templateCode, '###SUB_FILTER_TEXTLINKS###'); $this->templateArray['options'] = $this->cObj->getSubpart($this->pObj->templateCode, '###SUB_FILTER_TEXTLINK_OPTION###'); }
/** * Sets the template of the view * * @param string $templateCode The whole template code of a template file * @param string $templateName Name of a subpart containing the template code to work with * @param boolean $forceTemplate Not needed * @return void */ public function setTemplate($templateCode, $templateName, $forceTemplate = FALSE) { $this->subparts['template'] = $this->cObj->getSubpart($templateCode, '###TEMPLATE_' . $templateName . '###'); $this->subparts['item'] = $this->cObj->getSubpart($this->subparts['template'], '###ITEM###'); }