|
ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
|
Stores registration keys for key based registration on courses and groups. More...
Collaboration diagram for ilMembershipRegistrationCodeUtils: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.
References CODE_LENGTH.
Referenced by ilObjCourse\__createDefaultSettings(), ilObjCourse\cloneSettings(), ilObjCourseGUI\initEditForm(), and ilObjGroupGUI\initForm().
Here is the caller graph for this function:
|
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, ilMembershipRegistrationException\REGISTRATION_INVALID_OFFLINE, and useCode().
Referenced by ilObjCourseGUI\_goto(), ilObjGroupGUI\_goto(), and ilObjLearningSequence\_goto().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprotected |
Get all objects with enabled access codes.
Definition at line 132 of file class.ilMembershipRegistrationCodeUtils.php.
References ilObjCourse\lookupObjectsByCode(), and ilObjGroup\lookupObjectsByCode().
Referenced by useCode().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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(), ilParticipants\IL_GRP_MEMBER, and lookupObjectsByCode().
Referenced by handleCode().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 29 of file class.ilMembershipRegistrationCodeUtils.php.
Referenced by generateCode().