/** * Retrieve link specified title * * @return string */ public function getTitle() { if ($this->getData('title')) { return $this->getData('title'); } return $this->_node->getLabel(); }
/** * Retrieve node label or number * * @param Enterprise_Cms_Model_Hierarchy_Node $node * @param string $custom instead of page number * @return string */ public function getNodeLabel(Enterprise_Cms_Model_Hierarchy_Node $node, $custom = null) { if ($this->getUseNodeLabels()) { return $node->getLabel(); } if (!is_null($custom)) { return $custom; } return $node->getPageNumber(); }
/** * Retrieve Node Replace pairs * * @param Enterprise_Cms_Model_Hierarchy_Node $node * @return array */ protected function _getNodeReplacePairs($node) { return array('__ID__' => $node->getId(), '__LABEL__' => $node->getLabel(), '__HREF__' => $node->getUrl()); }
/** * Retrieve link specified title * * @return string */ public function getTitle() { $value = $this->_getInstanceData('title'); return $value !== false ? $value : $this->_node->getLabel(); }