ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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
 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 24 of file ilAssLacAbstractComposite.php.

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

◆ describe()

ilAssLacAbstractComposite::describe ( )

Describes a Composite tree Structure as human readable string.

Returns
string

Implements ilAssLacCompositeInterface.

Definition at line 33 of file ilAssLacAbstractComposite.php.

References ilAssLacCompositeInterface\getDescription().

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

Field Documentation

◆ $nodes

ilAssLacAbstractComposite::$nodes = array()

Definition at line 17 of file ilAssLacAbstractComposite.php.


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