| API | Package | Subpackage | Class | Method | Reference | Last reviewed | Doc status |
|---|---|---|---|---|---|---|---|
Home |
Joomla.Framework |
Application |
JPathWay |
setItemName |
setItemName() |
Never | Work in Progress |
Sets the name of the specified item.
boolean setItemName ( $id, $name )
| $id | integer | is an integer containing the array index of the item to name. |
| $name | string | is a string containing the name to apply to the pathway element. |
Example
global $mainframe; $pathway =& $mainframe->getPathWay(); $pathway->setItemName( '1', 'Joomla! Info' );
will change the name of the second element in the pathway (since the array is zero based). The home element usually has index 0.