static addChildren |
( |
& |
$parentObject | ) |
|
|
static |
Adds the children to a parent object public
- Parameters
-
delete |
( |
& |
$answerObject | ) |
|
Deletes a answer public
- Parameters
-
- Exceptions
-
Checks if answer with this ID exists public
- Parameters
-
string | $answerID | The answerID |
- Returns
- bool YES if exists
getAllAnswers |
( |
|
$question_id, |
|
|
|
$userID, |
|
|
|
$only_user_answered = false |
|
) |
| |
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
Returns the type of an objectID public
- Parameters
-
string | $objectID | The objectID |
- Returns
- string INSTANCEOF_x, else NO
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 |
( |
|
$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
Loads answers of a group from the DB public
- Parameters
-
loadVotes |
( |
& |
$answerObject | ) |
|
Loads the votes from the users for this answer public
- Parameters
-
resetVotes |
( |
& |
$answerObject | ) |
|
Deletes all votes from the users for this answers public
- Parameters
-
Writes answers into the DB public
- Parameters
-
- Exceptions
-
The documentation for this class was generated from the following file: