KuoteObjects_QuestionAnswered __construct(
)
|
|
Constructor instantiates $enrollment as a DataObjects_Enrollment object.
API Tags:
Information Tags:
Removes the object from the datastore based on it's Id
API Tags:
Return: | True on success, false otherwise. |
Access: | public |
boolean get(
integer
$id
)
|
|
Loads the object from the data store by its unique identifier.
Parameters:
integer |
$id: |
Unique identifier of a course in the data store. |
API Tags:
Return: | True on success, false otherwise. |
Access: | public |
Returns the selected choice of the questions answer options
API Tags:
Return: | Question Option. |
Access: | public |
Returns the unique id of the object
API Tags:
Return: | The objects's unique id |
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 |
Takes the currently set properties of the object and inserts them into the data store as a new instance with its own unique id.
API Tags:
Return: | True on success, 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 |
Updates the datastore to reflect the currently set properties of the object.
Updates by the current Id.
API Tags:
Return: | True on success, false otherwise. |
Access: | public |