Parameters id Menu item ID
Returns Menu item object
Appendix
[ 440 ]
getItems( attribute : string, value : string, firstonly : boolean=false) :
mixed
Gets an active menu item or an array of menu items. Returned active menu item attributes
must match the specified attribute and value. If firstonly is true, only gets the first
matching menu item.
Parameters attribute Attribute to check
value Value to check attribute against
[firstonly] Only get the first matching menu item
Returns A menu item or an array of menu items
getMenu( ) : JParameter
Gets a copy of all the menu items.
Returns Array of menu items
&getParams( id : int ) : JParameter
Gets the parameters of the specified menu item. If the menu item does not exist, or is not
published, returns an empty JParameter object.
Parameters id Menu item ID
Returns
JParameter object populated with the parameters from the specified
menu item
&setActive( id : int ) : boolean
Sets the active menu item.
Parameters id Menu item ID
Returns true on success
setDefault( id : int ) : boolean
Sets the default menu item (homepage).
Pages:
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608