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 |
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 |
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 |
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 |