/** * Function initializes the template of the component. Returns true on success. * * <p>Instansiates the template object and calls it's init function.</p> * <p>Note: component must be inited by initComponent method.</p> * @param string $templatePage * @param string|bool $siteTemplate * @param string $customTemplatePath * @return bool * */ public final function initComponentTemplate($templatePage = "", $siteTemplate = false, $customTemplatePath = "") { if (!$this->__bInited) { return null; } $this->__templatePage = $templatePage; $this->__template = new CFreetrixComponentTemplate(); if ($this->__template->Init($this, $siteTemplate, $customTemplatePath)) { return true; } else { return false; } }