Returns the selected choice of the questions answer options
API Tags:
Return: | Question Option. |
Access: | public |
Returns true if the selected answer is correct.
API Tags:
Return: | True if selected answer is correct, false otherwise. |
Access: | public |
integer getLearningOfferTakenId(
)
|
|
Returns the Id of the LearningOfferTaken for the quiz of the question this QuestionAnswered is answering.
API Tags:
Return: | LearningOfferTaken Id |
Access: | public |
Returns the Id of the Question this QuestionAnswered is answering.
API Tags:
Return: | Question Id |
Access: | public |
Creates a new QuestionAnswered in the datastore based on the given Question Id and LearningOfferTaken Id.
Parameters:
API Tags:
Return: | True if created successfully, false otherwise. |
Access: | public |
boolean setChoice(
integer
$choice
)
|
|
Sets the selected choice of the questions answer options
Parameters:
integer |
$choice: |
Question Option. |
API Tags:
Return: | True on successful set, false otherwise. |
Access: | public |
boolean setIsCorrect(
boolean
$bool
)
|
|
Sets whether the selected answer is correct or not.
Parameters:
boolean |
$bool: |
True if correct, otherwise False |
API Tags:
Return: | True on successful set, false otherwise. |
Access: | public |
boolean setLearningOfferTakenId(
integer
$id
)
|
|
Sets the Id of the LearningOfferTaken for the quiz of the question
Parameters:
integer |
$id: |
LearningOfferTaken Id |
API Tags:
Return: | True on successful set, false otherwise. |
Access: | public |
boolean setQuestionId(
integer
$id
)
|
|
Sets the Id of the Question this QuestionAnswered is answering.
Parameters:
API Tags:
Return: | True on successful set, false otherwise. |
Access: | public |