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 |
KuoteObjects_LearningOffering __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 |
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 unique id of the object
API Tags:
Return: | The objects's unique id |
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 |
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 load(
$dataObjects_LearningOffering, DataObjects_LearningOffering
$DataObjects_LearningOffering
)
|
|
Loads the given DataObjects_LearningOffering object into the private var for such.
Should not be used, violates the independtness of the classes.
Parameters:
DataObjects_LearningOffering |
$DataObjects_LearningOffering: |
|
DataObjects_LearningOffering |
$dataObjects_LearningOffering: |
|
API Tags:
Return: | True on success, false otherwise. |
Access: | public |
Deprecated: | |
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 |
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 |