Returns a hashed array of course offerings created by the given user.
Returns a hashed array of the format
$courseOfferingId => $courseOfferingTitle
Parameters:
API Tags:
Return: | Hashed array of $courseOfferingId => $courseOfferingTitle
. |
Access: | public |
Returns the id of the course which this offering represents.
API Tags:
Return: | Course 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 a hashed array of the format $courseOfferingId => $courseOfferingTitle
Parameters:
API Tags:
Return: | Hashed array of $courseOfferingId => $courseOfferingTitle OR boolean False if no offerings are found. |
Access: | public |
Returns the hash of the course offering's password.
API Tags:
Return: | Date "YYYY-MM-DD". OR boolean False if there is no password. |
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 course offering.
The title of the offering should differ from the course offering to distinguish multiple offerings from one another.
API Tags:
Return: | Course title. |
Access: | public |
Returns the id of the user which has created this offering.
API Tags:
Return: | User Id. |
Access: | public |
Returns true if the offering is password protected, false if not.
API Tags:
Return: | True of password protected, false if not. |
Access: | public |
boolean setCourseId(
$id
$id
)
|
|
Sets the id of the course which this offering represents.
Parameters:
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 setPassword(
$password
$password
)
|
|
Sets the password of an offering.
Parameters:
$password |
$password: |
The offering's password. |
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 course offering.
The title of the offering should differ from the course offering to distinguish multiple offerings from one another.
Parameters:
string |
$title: |
Course Title |
API Tags:
Return: | True on success, false otherwise. |
Access: | public |
boolean setUserId(
integer
$id
)
|
|
Sets the id of the user which has created this offering.
Parameters:
API Tags:
Return: | True on success, false otherwise. |
Access: | public |
boolean verifyPassword(
string
$password
)
|
|
Compares the password of the offering with the passed password.
Returns true on a match, false otherwise.
Parameters:
API Tags:
Return: | True on match, false otherwise. |
Access: | public |