| ILIAS
    release_5-4 Revision v5.4.26-12-gabc799a52e6
    | 
Stores registration keys for key based registration on courses and groups. More...
 Collaboration diagram for ilMembershipRegistrationCodeUtils:
 Collaboration diagram for ilMembershipRegistrationCodeUtils:| Static Public Member Functions | |
| static | handleCode ($a_ref_id, $a_type, $a_code) | 
| Handle target parameter.  More... | |
| static | generateCode () | 
| Generate new registration key.  More... | |
| Data Fields | |
| const | CODE_LENGTH = 10 | 
| Static Protected Member Functions | |
| static | useCode ($a_code, $a_endnode) | 
| Use a registration code and assign the logged in user to the (parent) course/group that offer the code.  More... | |
| static | lookupObjectsByCode ($a_code) | 
| Get all objects with enabled access codes.  More... | |
Stores registration keys for key based registration on courses and groups.
Definition at line 13 of file class.ilMembershipRegistrationCodeUtils.php.
| 
 | static | 
Generate new registration key.
Definition at line 110 of file class.ilMembershipRegistrationCodeUtils.php.
References $code, $map, and CODE_LENGTH.
Referenced by ilObjCourse\__createDefaultSettings(), ilObjGroup\cloneObject(), ilObjCourse\cloneSettings(), ilObjCourseGUI\initEditForm(), and ilObjGroupGUI\initForm().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Handle target parameter.
| object | $a_target | 
Definition at line 23 of file class.ilMembershipRegistrationCodeUtils.php.
References $a_type, $DIC, $ilUser, $lng, $title, $tree, ilLink\_getLink(), 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, ilUtil\sendFailure(), and useCode().
Referenced by ilObjCourseGUI\_goto(), ilObjGroupGUI\_goto(), and ilObjLearningSequence\_goto().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | staticprotected | 
Get all objects with enabled access codes.
| string | $a_code | 
Definition at line 128 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 call graph for this function: Here is the caller 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.
| string | $a_code | |
| int | $a_endnode | Reference id of node in tree | 
Definition at line 78 of file class.ilMembershipRegistrationCodeUtils.php.
References $DIC, $factory, $ilUser, $tree, ilObject\_lookupObjId(), ilMembershipRegistrationException\ADMISSION_LINK_INVALID, ilCourseConstants\CRS_MEMBER, IL_GRP_MEMBER, and lookupObjectsByCode().
Referenced by handleCode().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| const ilMembershipRegistrationCodeUtils::CODE_LENGTH = 10 | 
Definition at line 15 of file class.ilMembershipRegistrationCodeUtils.php.
Referenced by generateCode().