[ Index ]
 

Code source de Horde 3.1.3

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/Horde/ -> Menu.php (sommaire)

(pas de description)

Poids: 308 lignes (11 kb)
Inclus ou requis: 1 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

Menu:: (8 méthodes):
  Menu()
  add()
  addArray()
  setPosition()
  render()
  addAppLinks()
  addSiteLinks()
  isSelected()


Classe: Menu  - X-Ref

The Menu:: class provides standardized methods for creating menus in
Horde applications.

$Horde: framework/Horde/Horde/Menu.php,v 1.35.2.11 2006/07/20 04:31:27 slusarz Exp $

Copyright 1999-2006 Chuck Hagenbuch <chuck@horde.org>
Copyright 1999-2006 Jon Parise <jon@horde.org>

See the enclosed file COPYING for license information (LGPL). If you
did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.

Menu($mask = HORDE_MENU_MASK_ALL)   X-Ref
Constructor


add($url, $text, $icon = '', $icon_path = null,$target = '', $onclick = null, $class = null)   X-Ref
Add an item to the menu array.

param: string $url        String containing the value for the hyperlink.
param: string $text       String containing the label for this menu
param: string $icon       String containing the filename of the image
param: string $icon_path  If the icon lives in a non-default directory,
param: string $target     If the link needs to open in another frame or
param: string $onclick    Onclick javascript, if desired.
param: string $class      CSS class for the menu item.
return: integer  The id (NOT guaranteed to be an array index) of the

addArray($item)   X-Ref
Add an item to the menu array.

param: string $url        String containing the value for the hyperlink.
param: string $text       String containing the label for this menu
param: string $icon       String containing the filename of the image
param: string $icon_path  If the icon lives in a non-default directory,
param: string $target     If the link needs to open in another frame or
param: string $onclick    Onclick javascript, if desired.
param: string $class      CSS class for the menu item.
return: integer  The id (NOT guaranteed to be an array index) of the item

setPosition($id, $pos)   X-Ref
Pas de description

render()   X-Ref
Return the unordered list representing the list of menu items. Styling
is done through CSS.

return: string  An unordered list of menu elements that can be entirely

addAppLinks()   X-Ref
Any links to other Horde applications defined in an application's config
file by the $conf['menu']['apps'] array are added to the menu array.


addSiteLinks()   X-Ref
Add any other links found in $this->_menufile to be included in the
menu.


isSelected($url)   X-Ref
Checks to see if the current url matches the given url.

return: boolean  Whether the given URL is the current location.



Généré le : Sun Feb 25 18:01:28 2007 par Balluche grâce à PHPXref 0.7