ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilAssLacAbstractComposite.php
Go to the documentation of this file.
1<?php
2
3include_once 'Modules/TestQuestionPool/classes/questions/LogicalAnswerCompare/ilAssLacCompositeInterface.php';
4
13{
14
18 public $nodes = array();
19
25 public function addNode(ilAssLacCompositeInterface $node)
26 {
27 $this->nodes[] = $node;
28 }
29
34 public function describe()
35 {
36 $description = "";
37 if (\count($this->nodes) > 0) {
38 $description .= "(" . $this->nodes[0]->describe();
39 }
40 $description .= $this->getDescription();
41 if (\count($this->nodes) > 0) {
42 $description .= $this->nodes[1]->describe() . ") ";
43 }
44 return $description;
45 }
46}
An exception for terminatinating execution or to throw for unit testing.
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.