/** * getter nazvu souboru se sablonou * @return string */ protected function getTemplateFileName() { if (strlen($templateFileName = $this->config->getTemplateFileName()) < 1) { throw new LBoxExceptionComponent("Bad param " . LBoxExceptionComponent::MSG_PARAM_STRING_NOTNULL, LBoxExceptionComponent::CODE_BAD_PARAM); } return $templateFileName; }
/** * Vraci jestli ma alespon jednoho potomka v menu * @return bool */ public function hasChildrenInMenu() { try { if (!parent::hasChildren()) { return false; } foreach ($this->getChildNodesIterator() as $child) { if ($child->in_menu) { return true; } } return false; } catch (Exception $e) { throw $e; } }