本文整理汇总了PHP中Varien_Data_Tree_Node::setOutermostClass方法的典型用法代码示例。如果您正苦于以下问题:PHP Varien_Data_Tree_Node::setOutermostClass方法的具体用法?PHP Varien_Data_Tree_Node::setOutermostClass怎么用?PHP Varien_Data_Tree_Node::setOutermostClass使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Varien_Data_Tree_Node
的用法示例。
在下文中一共展示了Varien_Data_Tree_Node::setOutermostClass方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getHtml
/**
* Get top menu html
*
* @param string $outermostClass
* @param string $childrenWrapClass
* @return string
*/
public function getHtml($outermostClass = '', $childrenWrapClass = '')
{
Mage::dispatchEvent('page_block_html_topmenu_gethtml_before', array('menu' => $this->_menu));
$this->_menu->setOutermostClass($outermostClass);
$this->_menu->setChildrenWrapClass($childrenWrapClass);
$html = $this->_getHtml($this->_menu, $childrenWrapClass);
Mage::dispatchEvent('page_block_html_topmenu_gethtml_after', array('menu' => $this->_menu, 'html' => $html));
return $html;
}
示例2: getHtml
/**
* Get top menu html
*
* @param string $outermostClass
* @param string $childrenWrapClass
* @return string
*/
public function getHtml($outermostClass = '', $childrenWrapClass = '')
{
Mage::dispatchEvent('page_block_html_topmenu_gethtml_before', array('menu' => $this->_menu, 'block' => $this));
$this->_menu->setOutermostClass($outermostClass);
$this->_menu->setChildrenWrapClass($childrenWrapClass);
if ($renderer = $this->getChild('catalog.topnav.renderer')) {
$renderer->setMenuTree($this->_menu)->setChildrenWrapClass($childrenWrapClass);
$html = $renderer->toHtml();
} else {
$html = $this->_getHtml($this->_menu, $childrenWrapClass);
}
Mage::dispatchEvent('page_block_html_topmenu_gethtml_after', array('menu' => $this->_menu, 'html' => $html));
return $html;
}