ILIAS
release_8 Revision v8.19-1-g4e8f2f9140c
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. 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 |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning 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, 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, 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, $ilUser, $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.