static array getLearningsHash(
integer
$courseId
)
|
|
Returns a hashed array of learnings that are part of the given course.
Returns a hashed array of the format
$learningId => $learningTitle
Parameters:
integer |
$courseId: |
Id of the course for which to find created learnings. |
API Tags:
Return: | Hashed array of $learningId => $learningTitle
. OR boolean False if no learnings are found of the given Course Id. |
Access: | public |
KuoteObjects_Learning __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 Id of the Course this Learning is part of.
API Tags:
Return: | Course Id. |
Access: | public |
Returns the description of the Learning.
API Tags:
Return: | Learning description. |
Access: | public |
Returns the unique id of the object
API Tags:
Return: | The objects's unique id |
Access: | public |
boolean getQuestionsRandom(
)
|
|
Declares if the questions for this Learning's quiz should be displayed randomly.
API Tags:
Return: | True if questions should be random, false otherwise. |
Access: | public |
boolean getQuestionsRandomByDifficulty(
)
|
|
Declares if the questions for this Learning'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.
API Tags:
Return: | True if questions should be random by difficutly, false otherwise. |
Access: | public |
Returns the title of the Learning.
API Tags:
Return: | Learning title. |
Access: | public |
string getTutorialFileName(
)
|
|
Returns the name of the tutorial file for this Learning.
All tutorial all stored under LEARNINGS_ROOT/CourseId/LearningId/TutorialFileName If the tutorial consists of multiple files, the TutorialFileName will be the first page.
API Tags:
Return: | Tutorial filename. |
Access: | public |
Returns true if this learning has a tutorial, false otherwise.
API Tags:
Return: | True if tutorial exists, 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 |
Loads the given DataObjects_Learning object into the private var for such.
Should not be used, violates the independtness of the classes.
Parameters:
API Tags:
Return: | True on success, false otherwise. |
Access: | public |
Deprecated: | |
boolean setCourseId(
integer
$id
)
|
|
Sets the Id of the Course this Learning is part of.
Parameters:
integer |
$id: |
The id of the Course this Learning is part of. |
API Tags:
Return: | True on success, false otherwise. |
Access: | public |
boolean setDescription(
string
$description
)
|
|
Sets the description of the Learning
Parameters:
string |
$description: |
The description of the Learning. |
API Tags:
Return: | True on success, false otherwise. |
Access: | public |
boolean setQuestionsRandom(
boolean
$bool
)
|
|
Sets if the questions for this Learning's quiz should be displayed randomly.
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'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.
Parameters:
boolean |
$bool: |
True if they should be random by difficulty, false otherwise. |
API Tags:
Return: | True on success, false otherwise. |
Access: | public |
boolean setTitle(
string
$title
)
|
|
Sets the title of the Learning
Parameters:
string |
$title: |
The title of the Learning. |
API Tags:
Return: | True on success, false otherwise. |
Access: | public |
boolean setTutorialFileName(
string
$name
)
|
|
Sets the name of the tutorial file for this Learning.
Parameters:
string |
$name: |
The name of the tutorial file for this Learning. |
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 |