ILIAS  trunk Revision v11.0_alpha-1723-g8e69f309bab
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilAssLacAbstractComposite.php
Go to the documentation of this file.
1 <?php
2 
27 {
31  public $nodes = [];
32 
38  public function addNode(ilAssLacCompositeInterface $node): void
39  {
40  $this->nodes[] = $node;
41  }
42 
47  public function describe(): string
48  {
49  $description = "";
50  if (\count($this->nodes) > 0) {
51  $description .= "(" . $this->nodes[0]->describe();
52  }
53  $description .= $this->getDescription();
54  if (\count($this->nodes) > 0) {
55  $description .= $this->nodes[1]->describe() . ") ";
56  }
57  return $description;
58  }
59 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getDescription()
Get a human readable description of the Composite element.
describe()
Describes a Composite tree Structure as human readable string.
addNode(ilAssLacCompositeInterface $node)
Adds an ilAssLacCompositeInterface object to the node array which represents the condition tree struc...