From: Michael M Slusarz Date: Thu, 9 Sep 2010 20:15:31 +0000 (-0600) Subject: phpdoc X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=da338eb8a8bcb5768b57676d020fed78a6c2a6e8;p=horde.git phpdoc --- diff --git a/framework/Core/lib/Horde/Menu.php b/framework/Core/lib/Horde/Menu.php index 66277a9b6..bc32841d5 100644 --- a/framework/Core/lib/Horde/Menu.php +++ b/framework/Core/lib/Horde/Menu.php @@ -95,20 +95,19 @@ class Horde_Menu /** * 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 - * item. - * @param string $icon String containing the filename of the image - * icon to display for this menu item. - * @param string $icon_path If the icon lives in a non-default directory, - * where is it? - * @param string $target If the link needs to open in another frame or - * window, what is its name? - * @param string $onclick Onclick javascript, if desired. - * @param string $class CSS class for the menu item. + * @param array $item 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.
+     * 'text' - (string) Label.
+     * 'target' - (string) HREF target parameter.
+     * 'url' - (string) Hyperlink.
+     * 
* - * @return integer The id (NOT guaranteed to be an array index) of the item - * just added to the menu. + * @return integer The id (NOT guaranteed to be an array index) of the + * item just added to the menu. */ public function addArray($item) {