ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilAssLacAbstractComposite.php
Go to the documentation of this file.
1 <?php
2 
3 include_once 'Modules/TestQuestionPool/classes/questions/LogicalAnswerCompare/ilAssLacCompositeInterface.php';
4 
13 
17  public $nodes = array();
18 
24  public function addNode(ilAssLacCompositeInterface $node)
25  {
26  $this->nodes[] = $node;
27  }
28 
33  public function describe()
34  {
35  $description = "";
36  if(\count($this->nodes) > 0) $description .= "(" . $this->nodes[0]->describe();
37  $description .= $this->getDescription();
38  if(\count($this->nodes) > 0) $description .= $this->nodes[1]->describe() . ") ";
39  return $description;
40  }
41 }
getDescription()
Get a human readable description of the Composite element.
describe()
Describes a Composite tree Structure as human readable string.
Create styles array
The data for the language used.
addNode(ilAssLacCompositeInterface $node)
Adds an ilAssLacCompositeInterface object to the node array which represents the condition tree struc...