◆ __construct()
◆ addChildren()
static addChildren |
( |
& |
$parentObject | ) |
|
|
static |
Adds the children to a parent object public
- Parameters
-
◆ delete()
delete |
( |
& |
$answerObject | ) |
|
Deletes a answer public
- Parameters
-
- Exceptions
-
◆ exists()
Checks if answer with this ID exists public
- Parameters
-
string | $answerID | The answerID |
- Returns
- bool YES if exists
◆ getAllAnswers()
getAllAnswers |
( |
|
$question_id, |
|
|
|
$userID, |
|
|
|
$only_user_answered = false |
|
) |
| |
◆ getParentID()
static getParentID |
( |
|
$objectID | ) |
|
|
static |
Returns the id from the parent object public
- Parameters
-
string | $objectID | The object id |
- Returns
- string The id from the parent object
◆ getType()
Returns the type of an objectID public
- Parameters
-
string | $objectID | The objectID |
- Returns
- string INSTANCEOF_x, else NO
◆ getUserAnwerIDs()
getUserAnwerIDs |
( |
|
$questionID, |
|
|
|
$userID |
|
) |
| |
Give all textanswers for a user and question for the export public
- Parameters
-
string | $questionID | The question id |
string | $userID | The user id |
◆ hasVoted()
hasVoted |
( |
|
$answerID, |
|
|
|
$userID |
|
) |
| |
Checks whether a user has voted for an answer public
- Parameters
-
string | $answerID | The answer id |
string | $userID | The user id |
- Returns
- boolean YES if user has voted for the answer
◆ load()
Loads answers of a group from the DB public
- Parameters
-
◆ loadVotes()
loadVotes |
( |
& |
$answerObject | ) |
|
Loads the votes from the users for this answer public
- Parameters
-
◆ resetVotes()
resetVotes |
( |
& |
$answerObject | ) |
|
Deletes all votes from the users for this answers public
- Parameters
-
◆ save()
Writes answers into the DB public
- Parameters
-
- Exceptions
-
The documentation for this class was generated from the following file: