3 declare(strict_types=1);
36 'parameter' => $parameter,
46 return json_encode($this->structure);
64 $toc =
new LSTOCBuilder($this, $this->command, $label, $parameter, $lp);
71 public function item(
string $label,
int $parameter, $state = null,
bool $current =
false) :
TOCBuilder 76 'parameter' => $parameter,
80 $this->structure[
'childs'][] = $item;
end()
Finish building the TOC.ControlBuilder|TOCBuilder depending on the nesting level. ...
Build a nested table of contents for the view.
__construct($parent, string $command, string $label='', int $parameter=null, $state=null)
LSControlBuilder|LSTOCBuilder $parent.
node($label, int $parameter=null, $lp=null)
Build a sub tree in the TOC.If a parameter is provided, the node in the TOC can be accessed itself...
item(string $label, int $parameter, $state=null, bool $current=false)
Build an entry in the TOC.The parameter will be appended to the command when updating the state...