ILIAS  trunk Revision v11.0_alpha-1843-g9e1fad99175
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilAssLacAbstractComposite Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilAssLacAbstractComposite:
+ Collaboration diagram for ilAssLacAbstractComposite:

Public Member Functions

 addNode (ilAssLacCompositeInterface $node)
 Adds an ilAssLacCompositeInterface object to the node array which represents the condition tree structure. More...
 
 describe ()
 Describes a Composite tree Structure as human readable string. More...
 
- Public Member Functions inherited from ilAssLacCompositeInterface
 getDescription ()
 Get a human readable description of the Composite element. More...
 

Data Fields

 $nodes = []
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class AbstractComposite

Date: 25.03.13 Time: 10:05

Author
Thomas Joußen tjous.nosp@m.sen@.nosp@m.datab.nosp@m.ay.d.nosp@m.e

Definition at line 26 of file ilAssLacAbstractComposite.php.

Member Function Documentation

◆ addNode()

ilAssLacAbstractComposite::addNode ( ilAssLacCompositeInterface  $node)

Adds an ilAssLacCompositeInterface object to the node array which represents the condition tree structure.

Parameters
ilAssLacCompositeInterface$node

Implements ilAssLacCompositeInterface.

Definition at line 38 of file ilAssLacAbstractComposite.php.

38  : void
39  {
40  $this->nodes[] = $node;
41  }

◆ describe()

ilAssLacAbstractComposite::describe ( )

Describes a Composite tree Structure as human readable string.

Returns
string

Implements ilAssLacCompositeInterface.

Definition at line 47 of file ilAssLacAbstractComposite.php.

References ilAssLacCompositeInterface\getDescription().

47  : 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  }
getDescription()
Get a human readable description of the Composite element.
+ Here is the call graph for this function:

Field Documentation

◆ $nodes

ilAssLacAbstractComposite::$nodes = []

Definition at line 31 of file ilAssLacAbstractComposite.php.


The documentation for this class was generated from the following file: