Commit 38a8276d authored by Ad Schellevis's avatar Ad Schellevis

(menu) add Visibility property

parent 82546f3b
...@@ -78,6 +78,12 @@ class MenuItem ...@@ -78,6 +78,12 @@ class MenuItem
*/ */
private $isExternal = "N"; private $isExternal = "N";
/**
* visibility level, all, hidden, ...
* @var string
*/
private $visibility = 'all';
/** /**
* parent node, used to mark active nodes * parent node, used to mark active nodes
* @var null|MenuItem * @var null|MenuItem
...@@ -138,6 +144,15 @@ class MenuItem ...@@ -138,6 +144,15 @@ class MenuItem
$this->sortOrder = $value; $this->sortOrder = $value;
} }
/**
* set visibility
* @param $value visibility level
*/
public function setVisibility($value)
{
$this->visibility = $value;
}
/** /**
* get sort order * get sort order
* @return int * @return int
...@@ -219,6 +234,15 @@ class MenuItem ...@@ -219,6 +234,15 @@ class MenuItem
return $this->isExternal; return $this->isExternal;
} }
/**
* getter for visibility level
* @return string
*/
public function getVisibility()
{
return $this->visibility;
}
/** /**
* check if this item is selected * check if this item is selected
* @return bool is this item selected * @return bool is this item selected
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment