◆ __construct()
Constructor
- Parameters
-
string | $objectID | The ID of an existing object |
EvaluationObject | $parentObject | The parent object |
integer | $loadChildren | See const EVAL_LOAD_*_CHILDREN public |
◆ addChild()
Adds a child public
- Parameters
-
◆ check()
Checks if object is in a valid state private
◆ delete()
Deletes the object from the database public
◆ duplicate()
Duplicates the evaluation object. WARNING: Stored childs will be modified :( public
◆ duplicate_init()
Initialisation for duplicated objects private
◆ getChild()
& getChild |
( |
|
$childID = "" | ) |
|
Gets the first child and removes it (if no id is given) public
- Parameters
-
string | $childID | The child id |
- Returns
- object The first object
◆ getChildren()
Gets all the childs in the object public
- Returns
- array An array full of childObjects
◆ getNextChild()
Gets the next child public
- Returns
- object The next object, otherwise NULL
◆ getNumberChildren()
Gets the number of children public
- Returns
- integer Number of children
◆ getParentID()
Gets the parentObjectID public
- Returns
- string The parentObjectID
◆ getParentObject()
Gets the parentObject public
- Returns
- object The parentObject.
◆ getPosition()
Gets the position public
- Returns
- string The position
◆ getSpecialChildobjects()
getSpecialChildobjects |
( |
& |
$object, |
|
|
|
$instanceof, |
|
|
|
$reset = false |
|
) |
| |
Gets all children of a special kind
- Parameters
-
EvaluationObject | &$object | the parent object |
string | $instanceof | instance of the searched child |
boolean | $reset | for internal use public |
◆ getText()
Gets the text public
- Returns
- string The text
◆ getTitle()
Gets the title public
- Returns
- string The title
◆ init()
Initialisation for objects private
- Parameters
-
string | $objectID | The object id |
◆ load()
Loads the Object from the database private
◆ removeChildID()
removeChildID |
( |
|
$childID | ) |
|
Removes a child from the object (not from the DB!) public
- Parameters
-
string | $childID | The child id |
◆ save()
Saves the object into the database public
◆ setParentID()
Sets the parentObjectID public
- Parameters
-
string | $parentID | The parent id |
◆ setParentObject()
setParentObject |
( |
& |
$parentObject | ) |
|
Sets the parentObject public
- Parameters
-
string | &$parentObject | The parentObject. |
◆ setPosition()
Sets the position public
- Parameters
-
string | $position | The position. |
◆ setText()
Sets the text public
- Parameters
-
- Exceptions
-
◆ setTitle()
Sets the title public
- Parameters
-
- Exceptions
-
◆ toString()
◆ $childNum
Is used as a counter for getNextChild ) private
◆ $childObjects
Array with all linked childobjects private
◆ $db
Holds the DB object private
◆ $loadChildren
Defines how many children to load. See EVAL_LOAD_*_CHILDREN private
◆ $numberChildren
Counts the number of childs private
◆ $parentObject
The parent object private
◆ $parentObjectID
◆ $position
Position of this group in parent object private
◆ $text
Text of the group private
◆ $title
Title of the group private
The documentation for this class was generated from the following file: