mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 08:14:03 +02:00
parent
1fb5c96ef1
commit
a626e8f7fb
@ -424,6 +424,34 @@ class NavigationItem implements IteratorAggregate
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return the value of the given url parameter
|
||||||
|
*
|
||||||
|
* @param string $name
|
||||||
|
* @param mixed $default
|
||||||
|
*
|
||||||
|
* @return mixed
|
||||||
|
*/
|
||||||
|
public function getUrlParameter($name, $default = null)
|
||||||
|
{
|
||||||
|
$parameters = $this->getUrlParameters();
|
||||||
|
return isset($parameters[$name]) ? $parameters[$name] : $default;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the value of the given url parameter
|
||||||
|
*
|
||||||
|
* @param string $name
|
||||||
|
* @param mixed $value
|
||||||
|
*
|
||||||
|
* @return $this
|
||||||
|
*/
|
||||||
|
public function setUrlParameter($name, $value)
|
||||||
|
{
|
||||||
|
$this->urlParameters[$name] = $value;
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return all additional parameters for this item's url
|
* Return all additional parameters for this item's url
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user