Table of Contents

setItemName

API Package Subpackage Class Method Reference Last reviewed Doc status
API Home Package Joomla.Framework Subpackage Application Class JPathWay Method setItemName Reference setItemName() Never Work in Progress

Sets the name of the specified item.

Syntax

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.

Examples

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.