mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 17:44:41 +00:00
(menu) add Visibility property
This commit is contained in:
parent
82546f3bc6
commit
38a8276d4b
@ -78,6 +78,12 @@ class MenuItem
|
||||
*/
|
||||
private $isExternal = "N";
|
||||
|
||||
/**
|
||||
* visibility level, all, hidden, ...
|
||||
* @var string
|
||||
*/
|
||||
private $visibility = 'all';
|
||||
|
||||
/**
|
||||
* parent node, used to mark active nodes
|
||||
* @var null|MenuItem
|
||||
@ -138,6 +144,15 @@ class MenuItem
|
||||
$this->sortOrder = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* set visibility
|
||||
* @param $value visibility level
|
||||
*/
|
||||
public function setVisibility($value)
|
||||
{
|
||||
$this->visibility = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* get sort order
|
||||
* @return int
|
||||
@ -219,6 +234,15 @@ class MenuItem
|
||||
return $this->isExternal;
|
||||
}
|
||||
|
||||
/**
|
||||
* getter for visibility level
|
||||
* @return string
|
||||
*/
|
||||
public function getVisibility()
|
||||
{
|
||||
return $this->visibility;
|
||||
}
|
||||
|
||||
/**
|
||||
* check if this item is selected
|
||||
* @return bool is this item selected
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user