◆ __construct()
Constructor public
- Parameters
-
string | $objectID | The ID of an existing evaluation |
object | $parentObject | The parent object if exists |
integer | $loadChildren | See const EVAL_LOAD_*_CHILDREN |
◆ addRangeID()
Adds a rangeID public
- Parameters
-
string | $rangeID | The rangeID |
- Exceptions
-
◆ check()
Checks if object is in a valid state private
◆ exportUserData()
Export available data of a given user into a storage object (an instance of the StoredUserData class) for that user.
- Parameters
-
Implements PrivacyObject.
◆ getChangedate()
Gets the changedate public
- Returns
- integer The changedate
◆ getCreationdate()
Gets the creationdate public
- Returns
- integer The creationdate
◆ getNextRangeID()
Gets the next rangeID public
- Returns
- string The rangeID
◆ getNumberRanges()
Gets the number of ranges public
- Returns
- integer Number of ranges
◆ getRangeID()
Gets the first rangeID and removes it public
- Returns
- string The first object
◆ getRangeIDs()
Gets all the rangeIDs from the evaluation public
- Returns
- array An array full of rangeIDs
◆ getRealStopdate()
Gets the real stop date as a UNIX-timestamp (e.g. startdate + timespan) public
- Returns
- integer The UNIX-timestamp with the real stopdate
◆ getStartdate()
Gets the startdate public
- Returns
- integer The startdate
◆ getStopdate()
Gets the stopdate public
- Returns
- string The stopdate
◆ getTimespan()
Gets the timespan public
- Returns
- string The timespan
◆ hasVoted()
Has a user used this evaluation? public
- Parameters
-
string | $userID | Optional an user id |
- Returns
- string YES if a user used this evaluation
◆ isAnonymous()
Gets anonymous public
- Returns
- string The anonymous
◆ isShared()
Is shared for a public search? public
- Returns
- boolen true if it is shared template
◆ isTemplate()
Is this evaluation a template? public
- Returns
- boolen true if it is a template
◆ isVisible()
Gets visible public
- Returns
- string The visible
◆ removeRangeID()
removeRangeID |
( |
|
$rangeID | ) |
|
Removes a range from the object (not from the DB!) public
- Parameters
-
string | $rangeID | The range id |
◆ removeRangeIDs()
Removes all rangeIDs public
◆ resetAnswers()
Resets all answers for this evaluation public
◆ setAnonymous()
setAnonymous |
( |
|
$anonymous | ) |
|
Sets anonymous public
- Parameters
-
string | $anonymous | The anonymous. |
- Exceptions
-
◆ setChangedate()
setChangedate |
( |
|
$changedate | ) |
|
Sets the changedate private
- Parameters
-
integer | $changedate | The changedate. |
- Exceptions
-
◆ setCreationdate()
setCreationdate |
( |
|
$creationdate | ) |
|
Sets the creationdate private
- Parameters
-
integer | $creationdate | The creationdate. |
- Exceptions
-
◆ setShared()
Set shared for a public search public
- Parameters
-
boolean | $shared | if true it is shared |
◆ setStartdate()
setStartdate |
( |
|
$startdate | ) |
|
Sets the startdate public
- Parameters
-
integer | $startdate | The startdate. |
- Exceptions
-
◆ setStopdate()
Sets the stopdate public
- Parameters
-
integer | $stopdate | The stopdate. |
- Exceptions
-
◆ setTimespan()
Sets the timespan public
- Parameters
-
string | $timespan | The timespan. |
- Exceptions
-
◆ setVisible()
Sets visible public
- Parameters
-
string | $visible | The visible. |
- Exceptions
-
◆ $anonymous
Defines wheter the evaluation is anonymous private
◆ $chdate
Time of last change. Is set automatically. private
◆ $mkdate
Time of creation. Is set automatically. private
◆ $numberRanges
Counts the number of connected ranges private
◆ $rangeNum
Counts the number of connected ranges private
◆ $shared
Defines whether the evaluation template is shared private
◆ $startdate
◆ $stopdate
◆ $timespan
◆ $visible
Defines whether the evaluation is visible private
The documentation for this class was generated from the following file: