ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
ilAssLacAbstractComposite.php
Go to the documentation of this file.
1<?php
2
3include_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}
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...
getDescription()
Get a human readable description of the Composite element.