Public Member Functions | |
| ClaroCourse ($creatorFirstName= '', $creatorLastName= '', $creatorEmail= '') | |
| load ($courseId) | |
| save () | |
| delete () | |
| handleForm () | |
| validate () | |
| validateExtLinkUrl () | |
| validateEmailList () | |
| displayForm ($cancelUrl=null) | |
| displayDeleteConfirmation () | |
| addHtmlParam ($name, $value) | |
| getHtmlParamList ($method= 'GET') | |
| getVisibility ($access, $registration) | |
| getAccess ($visibility) | |
| getRegistration ($visibility) | |
| mailAdministratorOnCourseCreation ($creatorFirstName, $creatorLastName, $creatorEmail) | |
| buildProgressUrl () | |
Data Fields | |
| $courseId | |
| $title | |
| $officialCode | |
| $titular | |
| $category | |
| $departmentName | |
| $extLinkUrl | |
| $language | |
| $access | |
| $visibility | |
| $registration | |
| $registrationKey | |
| $publicationDate | |
| $expirationDate | |
| $useExpirationDate | |
| $status | |
| $backlog | |
| $htmlParamList = array() | |
Definition at line 28 of file claroCourse.class.php.
| addHtmlParam | ( | $ | name, | |
| $ | value | |||
| ) |
Add html parameter to list
| $name | string input name | |
| $value | string input value |
Definition at line 980 of file claroCourse.class.php.
| buildProgressUrl | ( | ) |
| ClaroCourse | ( | $ | creatorFirstName = '', |
|
| $ | creatorLastName = '', |
|||
| $ | creatorEmail = '' | |||
| ) |
Constructor
Definition at line 91 of file claroCourse.class.php.
| delete | ( | ) |
delete course data and content
Definition at line 267 of file claroCourse.class.php.
| displayDeleteConfirmation | ( | ) |
Display question of delete confirmation
| $cancelUrl | string url of the cancel button |
Definition at line 943 of file claroCourse.class.php.
| displayForm | ( | $ | cancelUrl = null |
) |
Display form
| $cancelUrl | string url of the cancel button |
Definition at line 565 of file claroCourse.class.php.
| getAccess | ( | $ | visibility | ) |
Get access value from visibility field
| $visbility | integer value of field |
Definition at line 1048 of file claroCourse.class.php.
| getHtmlParamList | ( | $ | method = 'GET' |
) |
Get html representing parameter list depending on method (POST for form, GET for URL's')
| $method | string GET OR POST |
Definition at line 992 of file claroCourse.class.php.
| getRegistration | ( | $ | visibility | ) |
Get registration value from visibility field
| $visbility | integer value of field |
Definition at line 1061 of file claroCourse.class.php.
| getVisibility | ( | $ | access, | |
| $ | registration | |||
| ) |
Get visibility
| $access | string | |
| $registration | string |
Definition at line 1029 of file claroCourse.class.php.
| handleForm | ( | ) |
retrieve course data from form
Definition at line 276 of file claroCourse.class.php.
| load | ( | $ | courseId | ) |
load course data from database
| $courseId | string course identifier |
Definition at line 122 of file claroCourse.class.php.
| mailAdministratorOnCourseCreation | ( | $ | creatorFirstName, | |
| $ | creatorLastName, | |||
| $ | creatorEmail | |||
| ) |
Send course creation information by mail to all platform administrators
| string | creator firstName | |
| string | creator lastname | |
| string | creator email |
Definition at line 1075 of file claroCourse.class.php.
| save | ( | ) |
insert or update course data
Definition at line 161 of file claroCourse.class.php.
| validate | ( | ) |
validate data from object. Error handling with a backlog object.
Configuration array , define here which field can be left empty or not
Definition at line 369 of file claroCourse.class.php.
| validateEmailList | ( | ) |
validate email ( and semi-column separated email list )
Definition at line 528 of file claroCourse.class.php.
| validateExtLinkUrl | ( | ) |
validate url and try to repair it if no protocol specified
Definition at line 498 of file claroCourse.class.php.
| $access |
Definition at line 58 of file claroCourse.class.php.
| $backlog |
Definition at line 82 of file claroCourse.class.php.
| $category |
Definition at line 46 of file claroCourse.class.php.
| $courseId |
Definition at line 31 of file claroCourse.class.php.
| $departmentName |
Definition at line 49 of file claroCourse.class.php.
Definition at line 43 of file claroCourse.class.php.
| $expirationDate |
Definition at line 73 of file claroCourse.class.php.
| $extLinkUrl |
Definition at line 52 of file claroCourse.class.php.
| $htmlParamList = array() |
Definition at line 85 of file claroCourse.class.php.
Definition at line 55 of file claroCourse.class.php.
Definition at line 37 of file claroCourse.class.php.
| $publicationDate |
Definition at line 70 of file claroCourse.class.php.
| $registration |
Definition at line 64 of file claroCourse.class.php.
| $registrationKey |
Definition at line 67 of file claroCourse.class.php.
| $status |
Definition at line 79 of file claroCourse.class.php.
| $title |
Definition at line 34 of file claroCourse.class.php.
| $titular |
Definition at line 40 of file claroCourse.class.php.
| $useExpirationDate |
Definition at line 76 of file claroCourse.class.php.
| $visibility |
Definition at line 61 of file claroCourse.class.php.
1.6.3