mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
parent
1393db687b
commit
f4a6ab73c0
@ -31,6 +31,15 @@ class NavigationItem implements Countable, IteratorAggregate
|
|||||||
*/
|
*/
|
||||||
protected $active;
|
protected $active;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This item's priority
|
||||||
|
*
|
||||||
|
* The priority defines when the item is rendered in relation to its parent's childs.
|
||||||
|
*
|
||||||
|
* @var int
|
||||||
|
*/
|
||||||
|
protected $priority;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The attributes of this item's element
|
* The attributes of this item's element
|
||||||
*
|
*
|
||||||
@ -165,6 +174,29 @@ class NavigationItem implements Countable, IteratorAggregate
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return this item's priority
|
||||||
|
*
|
||||||
|
* @return int
|
||||||
|
*/
|
||||||
|
public function getPriority()
|
||||||
|
{
|
||||||
|
return $this->priority;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set this item's priority
|
||||||
|
*
|
||||||
|
* @param int $priority
|
||||||
|
*
|
||||||
|
* @return $this
|
||||||
|
*/
|
||||||
|
public function setPriority($priority)
|
||||||
|
{
|
||||||
|
$this->priority = (int) $priority;
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the value of the given element attribute
|
* Return the value of the given element attribute
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user