/** * @desc Display the menu * @param Template $template the template to use * @return string the menu parsed in xHTML */ public function display($template = false, $mode = LinksMenuElement::LINKS_MENU_ELEMENT__CLASSIC_DISPLAYING) { // Stop if the user isn't authorised if (!$this->check_auth()) { return ''; } parent::_assign($template, $mode); $template->put_all(array('C_LINK' => true)); return $template->render(); }
function _parent($type) { parent::_parent($type); $this->type = $type; foreach ($this->elements as $element) { $element->_parent($type); } }
function cache_export($template) { parent::_assign($template); $template->assign_vars(array('C_LINK' => true)); return parent::cache_export_begin() . $template->parse(TEMPLATE_STRING_MODE) . parent::cache_export_end(); }