Returns a hashed array of courses created by the given user.
Returns a hashed array of the format
$courseId => $courseTitle
Parameters:
API Tags:
Return: | Hashed array of $courseId => $courseTitle OR boolean False if no courses are found. |
Access: | public |
KuoteObjects_Course __construct(
)
|
|
Constructor instantiates $course as a DataObjects_Course 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 |
Returns the description of the course
API Tags:
Return: | Course description. |
Access: | public |
Returns the unique id of the course
API Tags:
Return: | The course's unique id |
Access: | public |
Returns the state of openness of the course.
If the course Is Open, this means that any instructor can offer the course. Returns true if the course is open, false if it is not.
API Tags:
Return: | Is Open. |
Access: | public |
Returns the state of public availability of the course.
If the course Is Public, this means that any user can enroll is the course. Returns true if the course is public, false if it is not.
API Tags:
Return: | Is Public. |
Access: | public |
Returns the title of the course.
API Tags:
Return: | Course title. |
Access: | public |
Returns the unique user id of the course's creator
API Tags:
Return: | User Id. |
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 |
If true, the course may be used by other instructors.
API Tags:
Return: | True if open, false if not. |
Access: | public |
If true, the course may be used by any student.
API Tags:
Return: | True if open, false if not. |
Access: | public |
boolean setDescription(
string
$description
)
|
|
Sets the description of the course
Parameters:
string |
$description: |
Course Description |
API Tags:
Return: | True on success, false otherwise. |
Access: | public |
boolean setIsOpen(
boolean
$bool
)
|
|
Sets the state of openness of the course.
If the course Is Open, this means that any instructor can offer the course.
Parameters:
API Tags:
Return: | True on success, false otherwise. |
Access: | public |
boolean setIsPublic(
boolean
$bool
)
|
|
Sets the state of public availability of the course.
True means the course is public, false means it is not.
Parameters:
boolean |
$bool: |
Is Public. |
API Tags:
Return: | True on success, false otherwise. |
Access: | public |
boolean setTitle(
string
$title
)
|
|
Sets the title of the course.
Parameters:
string |
$title: |
Course Title |
API Tags:
Return: | True on success, false otherwise. |
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 |