ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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...
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...
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.