ILIAS
trunk Revision v11.0_alpha-1749-g1a06bdef097
|
Stores registration keys for key based registration on courses and groups. More...
Static Public Member Functions | |
static | handleCode (int $a_ref_id, string $a_type, string $a_code) |
static | generateCode () |
Generate new registration key. More... | |
Static Protected Member Functions | |
static | useCode (string $a_code, int $a_endnode) |
Use a registration code and assign the logged in user to the (parent) course/group that offer the code. More... | |
static | lookupObjectsByCode (string $a_code) |
Get all objects with enabled access codes. More... | |
Protected Attributes | |
const | CODE_LENGTH = 10 |
Stores registration keys for key based registration on courses and groups.
Definition at line 27 of file class.ilMembershipRegistrationCodeUtils.php.
|
static |
Generate new registration key.
Definition at line 115 of file class.ilMembershipRegistrationCodeUtils.php.
Referenced by ilObjCourse\__createDefaultSettings(), ilObjCourse\cloneSettings(), ilObjCourseGUI\initEditForm(), ilObjGroupGUI\initForm(), and ilObjGroup\read().
|
static |
Definition at line 31 of file class.ilMembershipRegistrationCodeUtils.php.
References $DIC, Vendor\Package\$e, $lng, ilObject\_lookupObjectId(), ilObject\_lookupTitle(), ilMembershipRegistrationException\ADDED_TO_WAITINGLIST, ilMembershipRegistrationException\ADMISSION_LINK_INVALID, ilMembershipRegistrationException\OBJECT_IS_FULL, ilMembershipRegistrationException\OUT_OF_REGISTRATION_PERIOD, ilUtil\redirect(), ilMembershipRegistrationException\REGISTRATION_INVALID_AVAILABILITY, and ilMembershipRegistrationException\REGISTRATION_INVALID_OFFLINE.
Referenced by ilObjLearningSequence\_goto(), ilObjGroupGUI\_goto(), and ilObjCourseGUI\_goto().
|
staticprotected |
Get all objects with enabled access codes.
Definition at line 132 of file class.ilMembershipRegistrationCodeUtils.php.
References ilObjGroup\lookupObjectsByCode(), and ilObjCourse\lookupObjectsByCode().
|
staticprotected |
Use a registration code and assign the logged in user to the (parent) course/group that offer the code.
int | $a_endnode | Reference id of node in tree |
Definition at line 83 of file class.ilMembershipRegistrationCodeUtils.php.
References $DIC, $ref_id, ilObject\_lookupObjId(), ilMembershipRegistrationException\ADMISSION_LINK_INVALID, ilCourseConstants\CRS_MEMBER, ilObjectFactory\getInstanceByRefId(), and ilParticipants\IL_GRP_MEMBER.
|
protected |
Definition at line 29 of file class.ilMembershipRegistrationCodeUtils.php.