KuoteObjects_Result __construct(
)
|
|
Constructor instantiates $result as a DataObjects_Result object.
API Tags:
Information Tags:
Removes the course from the datastore based on the course 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 |
integer getCorrectQuestionsCount(
)
|
|
Returns the number of questions answered correctly.
API Tags:
Return: | The number of questions answered correctly. |
Access: | public |
Returns the Id of the Result's Course
API Tags:
Return: | Course Id |
Access: | public |
integer getCourseOfferingId(
)
|
|
Returns the Id of the Result's Course Offering
API Tags:
Return: | Course Offering Id |
Access: | public |
Returns the unique id of the course
API Tags:
Return: | The course's unique id |
Access: | public |
Returns the Id of the Result's Learning
API Tags:
Return: | Learning Id |
Access: | public |
integer getLearningOfferingId(
)
|
|
Returns the Id of the Result's Learning Offering
API Tags:
Return: | Learning Offering Id |
Access: | public |
int getLearningOfferingTakenId(
)
|
|
Returns the Id of the Learning Offer Taken for this result.
API Tags:
Return: | User Id. |
Access: | public |
integer getQuestionsCount(
)
|
|
Returns the total number of questions.
API Tags:
Return: | The number of questions answered correctly. |
Access: | public |
Returns the timestamp of when the Result was created or last modified.
API Tags:
Return: | Timestamp. |
Access: | public |
Returns the unique user id of the course's creator
API Tags:
Return: | User Id. |
Access: | public |
boolean incrementCorrectQuestionsCount(
)
|
|
Returns the number of questions answered correctly.
API Tags:
Return: | True on successful increment, False otherwise. |
Access: | public |
Takes the currently set properties of the course and inserts them into the data store as a new course with its own unique id.
API Tags:
Return: | True on success, false otherwise. |
Access: | public |
boolean setCorrectQuestionsCount(
integer
$numberCorrect
)
|
|
Sets the number of questions answered correctly.
Parameters:
integer |
$numberCorrect: |
The number of correctly answered questions. |
API Tags:
Return: | True if successful, false if not. |
Access: | public |
boolean setCourseId(
integer
$id
)
|
|
Sets the Id of the Result's Course
Parameters:
API Tags:
Return: | True on success, false otherwise. |
Access: | public |
boolean setCourseOfferingId(
integer
$id
)
|
|
Sets the Id of the Result's Course Offering
Parameters:
integer |
$id: |
Course Offering Id |
API Tags:
Return: | True on success, false otherwise. |
Access: | public |
boolean setLearningId(
integer
$id
)
|
|
Sets the Id of the Result's Learning
Parameters:
API Tags:
Return: | True on success, false otherwise. |
Access: | public |
boolean setLearningOfferingId(
integer
$id
)
|
|
Sets the Id of the Result's Learning Offering
Parameters:
integer |
$id: |
Learning Offering Id |
API Tags:
Return: | True on success, false otherwise. |
Access: | public |
boolean setLearningOfferingTakenId(
integer
$id
)
|
|
Sets the Id of the Learning Offer Taken for this result.
Parameters:
integer |
$id: |
User Id of the Course Creator. |
API Tags:
Return: | True on success, false otherwise. |
Access: | public |
boolean setQuestionsCount(
integer
$count
)
|
|
Sets the total number of questions.
Parameters:
integer |
$count: |
The number of correctly answered questions. |
API Tags:
Return: | True if successful, false if not. |
Access: | public |
boolean setUserId(
integer
$id
)
|
|
Sets the unique user id of the course's creator.
Parameters:
integer |
$id: |
User Id of the Course Creator. |
API Tags:
Return: | True on success, 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 |