ILIAS
release_5-0 Revision 5.0.0-1144-gc4397b1f870
|
Stores registration keys for key based registration on courses and groups. More...
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 103 of file class.ilMembershipRegistrationCodeUtils.php.
Referenced by ilObjCourse\__createDefaultSettings(), ilObjGroup\cloneObject(), ilObjCourse\cloneSettings(), ilObjCourseGUI\initEditForm(), and ilObjGroupGUI\initForm().
|
static |
Handle target parameter.
object | $a_target |
Definition at line 23 of file class.ilMembershipRegistrationCodeUtils.php.
References $GLOBALS, $ilUser, $lng, ilLink\_getLink(), ilObject\_lookupObjectId(), ilObject\_lookupTitle(), ilUtil\redirect(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
Referenced by ilObjGroupGUI\_goto(), and ilObjCourseGUI\_goto().
|
staticprotected |
Get all objects with enabled access codes.
string | $a_code |
Definition at line 122 of file class.ilMembershipRegistrationCodeUtils.php.
References ilObjCourse\lookupObjectsByCode(), and ilObjGroup\lookupObjectsByCode().
|
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 75 of file class.ilMembershipRegistrationCodeUtils.php.
References $ilUser, $ref_id, ilObject\_lookupObjId(), and ilObjectFactory\getInstanceByRefId().
const ilMembershipRegistrationCodeUtils::CODE_LENGTH = 10 |
Definition at line 15 of file class.ilMembershipRegistrationCodeUtils.php.