ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilAssLacAbstractComposite Class Reference

Class AbstractComposite. 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
 addNode (ilAssLacCompositeInterface $node)
 Adds an CompositeInterface object to the node array which represents the condition tree structure. More...
 
 describe ()
 Describes a Composite tree Structure as human readable string. More...
 
 getDescription ()
 Get a human readable description of the Composite element. More...
 

Data Fields

 $nodes = array()
 

Detailed Description

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 12 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 25 of file ilAssLacAbstractComposite.php.

26 {
27 $this->nodes[] = $node;
28 }

◆ describe()

ilAssLacAbstractComposite::describe ( )

Describes a Composite tree Structure as human readable string.

Returns
string

Implements ilAssLacCompositeInterface.

Definition at line 34 of file ilAssLacAbstractComposite.php.

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 }
getDescription()
Get a human readable description of the Composite element.

References $description, and ilAssLacCompositeInterface\getDescription().

+ Here is the call graph for this function:

Field Documentation

◆ $nodes

ilAssLacAbstractComposite::$nodes = array()

Definition at line 18 of file ilAssLacAbstractComposite.php.


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