/**
 * 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;
}