static array getLearningOfferingsHash(
integer
$learningId
)
|
|
Returns a hashed array of learnings offerings for the given Learning Id.
Returns a hashed array of the format
$id => $title
Parameters:
integer |
$learningId: |
Learning for which to find offerings. |
API Tags:
Return: | Hashed array of $id => $title OR boolean False if no offerings are found. |
Access: | public |
integer getCourseOfferingId(
)
|
|
Returns the Id of the Course Offering this Learning Offering is part of.
API Tags:
Return: | Course Offering Id. |
Access: | public |
Returns the end date of the offering in the form "YYYY-MM-DD".
API Tags:
Return: | Date "YYYY-MM-DD". |
Access: | public |
Returns the Id of the Learning this Learning Offering is offering.
API Tags:
Return: | Learning Id. |
Access: | public |
boolean getQuestionsRandom(
)
|
|
Declares if the questions for this Learning Offering's quiz should be displayed randomly.
This setting takes precedence over the Learning's same property.
API Tags:
Return: | True if questions should be random, false otherwise. |
Access: | public |
boolean getQuestionsRandomByDifficulty(
)
|
|
Declares if the questions for this Learning Offering's quiz should be displayed randomly, but only randomly within increasing difficuly.
If true, first ask all difficutly 1 questions randomly, then difficutly 2 questions randomly, and so on in that fashion. This setting takes precedence over the Learning's same property.
API Tags:
Return: | True if questions should be random by difficutly, false otherwise. |
Access: | public |
Returns the start date of the offering in the form "YYYY-MM-DD".
API Tags:
Return: | Date "YYYY-MM-DD". |
Access: | public |
Returns the title of the Learning Offering.
API Tags:
Return: | Learning Offering title. |
Access: | public |
boolean setCourseOfferingId(
integer
$id
)
|
|
Sets the Id of the Course Offering this Learning Offering is part of.
Parameters:
integer |
$id: |
The id of the Course Offering this Learning is part of. |
API Tags:
Return: | True on success, false otherwise. |
Access: | public |
boolean setEnd(
$dateString
$dateString
)
|
|
Sets the ending date of an offering.
Date must be passed in the format "YYYY-MM-DD".
Parameters:
$dateString |
$dateString: |
Date string in the format "YYYY-MM-DD" |
API Tags:
Return: | True on success, false otherwise. |
Access: | public |
boolean setLearningId(
integer
$id
)
|
|
Sets the Id of the Learning this Learning Offering is offering.
Parameters:
integer |
$id: |
The id of the Learning this Learning Offering is offering. |
API Tags:
Return: | True on success, false otherwise. |
Access: | public |
boolean setQuestionsRandom(
boolean
$bool
)
|
|
Sets if the questions for this Learning Offering's quiz should be displayed randomly.
This setting takes precedence over the Learning's same property.
Parameters:
boolean |
$bool: |
True if they should be random, false otherwise. |
API Tags:
Return: | True on success, false otherwise. |
Access: | public |
boolean setQuestionsRandomByDifficulty(
boolean
$bool
)
|
|
Sets if the questions for this Learning Offering's quiz should be displayed randomly by difficutly.
If true, first ask all difficutly 1 questions randomly, then difficutly 2 questions randomly, and so on in that fashion. This setting takes precedence over the Learning's same property.
Parameters:
boolean |
$bool: |
True if they should be random by difficulty, false otherwise. |
API Tags:
Return: | True on success, false otherwise. |
Access: | public |
boolean setStart(
$dateString
$dateString
)
|
|
Sets the starting date of an offering.
Date must be passed in the format "YYYY-MM-DD".
Parameters:
$dateString |
$dateString: |
Date string in the format "YYYY-MM-DD" |
API Tags:
Return: | True on success, false otherwise. |
Access: | public |
boolean setTitle(
string
$title
)
|
|
Sets the title of the Learning Offering
Parameters:
string |
$title: |
The title of the Learning Offering. |
API Tags:
Return: | True on success, false otherwise. |
Access: | public |