Property | Type | Description | |
---|---|---|---|
$_menu | array | Menu array. |
Method | Description | |
---|---|---|
add ( string $url, string $text, string $icon = '', string $icon_path = null, string $target = '', string $onclick = null, string $class = null ) | Add an item to the menu array. | |
addArray ( array $item ) : integer | Add an item to the menu array. | |
addSiteLinks ( ) | Add links found in the application's menu configuration. | |
getSiteLinks ( ) : array | Get the list of site links to add to the menu. | |
isSelected ( $url ) : boolean | Checks to see if the current url matches the given url. | |
render ( ) : Horde_View_Sidebar | Return the rendered representation of the menu items. |
Method | Description | |
---|---|---|
_render ( ) : Horde_View_Sidebar | Converts the menu to a sidebar view. |
protected _render ( ) : Horde_View_Sidebar | ||
return | Horde_View_Sidebar | Sidebar view of menu elements. |
public add ( string $url, string $text, string $icon = '', string $icon_path = null, string $target = '', string $onclick = null, string $class = null ) | ||
$url | string | String containing the value for the hyperlink. |
$text | string | String containing the label for this menu item. |
$icon | string | String containing the filename of the image icon to display for this menu item. |
$icon_path | string | If the icon lives in a non-default directory, where is it? |
$target | string | If the link needs to open in another frame or window, what is its name? |
$onclick | string | Onclick javascript, if desired. |
$class | string | CSS class for the menu item. |
public addArray ( array $item ) : integer | ||
$item | array | The item to add. Valid keys:
'class' - (string) CSS classname. 'icon' - (string) Filename of the image icon. 'icon_path' - (string) Non-default directory path for icon. 'onclick' - (string) Onclick javascript. 'target' - (string) HREF target parameter. 'text' - (string) Label. 'url' - (string) Hyperlink. |
return | integer | The id (NOT guaranteed to be an array index) of the item just added to the menu. |
public addSiteLinks ( ) |
public getSiteLinks ( ) : array | ||
return | array | A list of menu items to add. |
public static isSelected ( $url ) : boolean | ||
return | boolean | Whether the given URL is the current location. |
public render ( ) : Horde_View_Sidebar | ||
return | Horde_View_Sidebar | Sidebar view of menu elements. |