public function menuItemLink($icon = null, $title = null, $url = null, $options = [], $badgeNumber = 0) {
		$result = '';
		if (empty($icon) || empty($title)) {
			return $result;
		}

		$caret = '';
		if (empty($options) || !is_array($options)) {
			$options = [];
		}
		$options['escape'] = false;
		$options['title'] = $title;
		$badgeNumber = (int)$badgeNumber;
		if (empty($url)) {
			$url = '#';
			$caret = $this->Html->tag('span', '', ['class' => 'caret']);
			$options += [
				'class' => 'dropdown-toggle',
				'data-toggle' => 'dropdown',
				'role' => 'button',
				'aria-haspopup' => 'true',
				'aria-expanded' => 'false'
			];
		} else {
			$url = $this->addUserPrefixUrl($url);
		}

		if ($this->_getClassForElement($icon)) {
			$icon .= ' fa-fw';
		}
		$iconTag = $this->iconTag($icon) . $this->menuItemLabel($title) . $caret;
		if ($badgeNumber > 0) {
			$iconTag .= '&nbsp;' . $this->Html->tag('span', $this->Number->format(
				$badgeNumber,
				['thousands' => ' ', 'before' => '', 'places' => 0]
			), ['class' => 'badge']);
		}
		if (!isset($options['data-toggle'])) {
			$options['data-toggle'] = 'tooltip';
		}
		$result = $this->Html->link(
			$iconTag,
			$url,
			$options
		);

		return $result;
	}
public function menuItemLink($icon = null, $title = null, $url = null, $options = [], $badgeNumber = 0) {
		$result = '';
		if (empty($icon) || empty($title)) {
			return $result;
		}

		$caret = '';
		if (empty($options) || !is_array($options)) {
			$options = [];
		}
		$options['escape'] = false;
		$options['title'] = $title;
		$badgeNumber = (int)$badgeNumber;
		if (empty($url)) {
			$url = '#';
			$caret = $this->Html->tag('span', '', ['class' => 'caret']);
			$options += [
				'class' => 'dropdown-toggle',
				'data-toggle' => 'dropdown',
				'role' => 'button',
				'aria-haspopup' => 'true',
				'aria-expanded' => 'false'
			];
		} else {
			$url = $this->addUserPrefixUrl($url);
		}

		if ($this->_getClassForElement($icon)) {
			$icon .= ' fa-fw';
		}
		$iconTag = $this->iconTag($icon) . $this->menuItemLabel($title) . $caret;
		if ($badgeNumber > 0) {
			$iconTag .= '&nbsp;' . $this->Html->tag('span', $this->Number->format(
				$badgeNumber,
				['thousands' => ' ', 'before' => '', 'places' => 0]
			), ['class' => 'badge']);
		}
		if (!isset($options['data-toggle'])) {
			$options['data-toggle'] = 'tooltip';
		}
		$result = $this->Html->link(
			$iconTag,
			$url,
			$options
		);

		return $result;
	}
public function menuItemLink ( $ icon = null , $ title = null , $ url = null , $ options = [ ] , $ badgeNumber = 0 ) { $ result = '' ; if ( empty ( $ icon ) || empty ( $ title ) ) { return $ result ; } $ caret = '' ; if ( empty ( $ options ) || ! is_array ( $ options ) ) { $ options = [ ] ; } $ options [ 'escape' ] = false ; $ options [ 'title' ] = $ title ; $ badgeNumber = ( int ) $ badgeNumber ; if ( empty ( $ url ) ) { $ url = '#' ; $ caret = $ this -> Html -> tag ( 'span' , '' , [ 'class' => 'caret' ] ) ; $ options += [ 'class' => 'dropdown-toggle' , 'data-toggle' => 'dropdown' , 'role' => 'button' , 'aria-haspopup' => 'true' , 'aria-expanded' => 'false' ] ; } else { $ url = $ this -> addUserPrefixUrl ( $ url ) ; } if ( $ this -> _getClassForElement ( $ icon ) ) { $ icon .= ' fa-fw' ; } $ iconTag = $ this -> iconTag ( $ icon ) . $ this -> menuItemLabel ( $ title ) . $ caret ; if ( $ badgeNumber > 0 ) { $ iconTag .= '&nbsp;' . $ this -> Html -> tag ( 'span' , $ this -> Number -> format ( $ badgeNumber , [ 'thousands' => ' ' , 'before' => '' , 'places' => 0 ] ) , [ 'class' => 'badge' ] ) ; } if ( ! isset ( $ options [ 'data-toggle' ] ) ) { $ options [ 'data-toggle' ] = 'tooltip' ; } $ result = $ this -> Html -> link ( $ iconTag , $ url , $ options ) ; return $ result ; }
Return HTML element of menu item

@param string $icon class of icon
@param string $title Title of menu label
@param string|array $url Cake-relative URL or array of URL parameters, or external URL (starts with http://)
@param array|string $options HTML options for button element
@param int $badgeNumber The number for display to the right of the menu item
@return string HTML element of menu item
@link http://getbootstrap.com/components/#navbar,
http://fontawesome.io,
http://getbootstrap.com/css/#buttons
Return HTML element of menu item