Back to Pathway class

Method setItemName

public bool
setItemName
(mixed $id, mixed $name)
Set item name.
Parameters
  • int $id The id of the item on which to set the name.
  • string $name The name to set.
Returns
  • bool True on success
Since
  • 1.5
Class: Pathway
Project: Joomla

Method setItemName - Source code

/**
 * Set item name.
 *
 * @param   integer  $id    The id of the item on which to set the name.
 * @param   string   $name  The name to set.
 *
 * @return  boolean  True on success
 *
 * @since   1.5
 */
public function setItemName($id, $name)
{
    $ret = false;
    if (isset($this->pathway[$id])) {
        $this->pathway[$id]->name = $name;
        $ret = true;
    }
    return $ret;
}