public static function menuLink($label, $url, $htmlOptions = array())
    {
        TbArray::defaultValue('role', 'menuitem', $htmlOptions);
        $linkOptions = TbArray::popValue('linkOptions', $htmlOptions, array());
        $content = self::link($label, $url, $linkOptions);
        return self::tag('li', $htmlOptions, $content);
    }
public static function menuLink($label, $url, $htmlOptions = array())
    {
        TbArray::defaultValue('role', 'menuitem', $htmlOptions);
        $linkOptions = TbArray::popValue('linkOptions', $htmlOptions, array());
        $content = self::link($label, $url, $linkOptions);
        return self::tag('li', $htmlOptions, $content);
    }
public static function menuLink ( $ label , $ url , $ htmlOptions = array ( ) ) { TbArray :: defaultValue ( 'role' , 'menuitem' , $ htmlOptions ) ; $ linkOptions = TbArray :: popValue ( 'linkOptions' , $ htmlOptions , array ( ) ) ; $ content = self :: link ( $ label , $ url , $ linkOptions ) ; return self :: tag ( 'li' , $ htmlOptions , $ content ) ; }
Generates a menu link.
@param string $label the link label.
@param array $url the link url.
@param array $htmlOptions additional HTML attributes.
@return string the generated menu item.
Generates a menu link .