Back to Sidebar class

Method addEntry

public static void
addEntry
(mixed $name, mixed $link = '', mixed $active = false)
Method to add a menu item to submenu.
Parameters
  • string $name Name of the menu item.
  • string $link URL of the menu item.
  • bool $active True if the item is active, false otherwise.
Returns
  • void
Since
  • 3.0
Class: Sidebar
Project: Joomla

Method addEntry - Source code

/**
 * Method to add a menu item to submenu.
 *
 * @param   string  $name    Name of the menu item.
 * @param   string  $link    URL of the menu item.
 * @param   bool    $active  True if the item is active, false otherwise.
 *
 * @return  void
 *
 * @since   3.0
 */
public static function addEntry($name, $link = '', $active = false)
{
    static::$entries[] = array($name, $link, $active);
}