ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Base class for Course and Group registration. More...
Public Member Functions | |
__construct ($a_container) | |
Constructor. More... | |
getContainer () | |
Parent object. More... | |
getRefId () | |
Get ref. More... | |
cancel () | |
cancel subscription More... | |
show (ilPropertyFormGUI $form=null) | |
show registration form More... | |
join () | |
join More... | |
Protected Member Functions | |
isRegistrationPossible () | |
check if registration is possible More... | |
enableRegistration ($a_status) | |
set registration disabled More... | |
initParticipants () | |
Init participants object (course or group participants) More... | |
initWaitingList () | |
Init waiting list (course or group waiting list) More... | |
isWaitingListActive () | |
Check if the waiting list is active Maximum of members exceeded or any user on the waiting list. More... | |
getWaitingList () | |
Get waiting list object. More... | |
leaveWaitingList () | |
getFormTitle () | |
Get title for property form. More... | |
fillInformations () | |
fill informations More... | |
fillRegistrationPeriod () | |
show informations about the registration period More... | |
fillMaxMembers () | |
show informations about the maximum number of user. More... | |
fillRegistrationType () | |
show informations about registration procedure More... | |
fillMembershipLimitation () | |
Show membership limitations. More... | |
fillAgreement () | |
Show user agreement. More... | |
showCustomFields () | |
Show course defined fields. More... | |
validateAgreement () | |
Check Agreement. More... | |
validateCustomFields () | |
Check required course fields. More... | |
setAccepted ($a_status) | |
Set Agreement accepted. More... | |
validate () | |
validate join request More... | |
initForm () | |
init registration form More... | |
addCommandButtons () | |
Add command buttons. More... | |
updateSubscriptionRequest () | |
Update subscription message. More... | |
cancelSubscriptionRequest () | |
Protected Attributes | |
$privacy = null | |
$container = null | |
$ref_id | |
$obj_id | |
$participants | |
$waiting_list = null | |
$form | |
$registration_possible = true | |
$join_error = '' | |
$tpl | |
$lng | |
$ctrl | |
Base class for Course and Group registration.
Definition at line 35 of file class.ilRegistrationGUI.php.
ilRegistrationGUI::__construct | ( | $a_container | ) |
Constructor.
public
object | Course or Group object |
Definition at line 65 of file class.ilRegistrationGUI.php.
References $DIC, $ilCtrl, $lng, $tpl, ilPrivacySettings\_getInstance(), ilObject\_lookupObjId(), ilObject\_lookupType(), initParticipants(), and initWaitingList().
|
protected |
Add command buttons.
Definition at line 606 of file class.ilRegistrationGUI.php.
References $DIC, $ilUser, getWaitingList(), isRegistrationPossible(), isWaitingListActive(), and ilUtil\sendQuestion().
Referenced by initForm().
ilRegistrationGUI::cancel | ( | ) |
cancel subscription
public
Definition at line 491 of file class.ilRegistrationGUI.php.
References $DIC, $ilCtrl, and $tree.
|
protected |
|
protected |
set registration disabled
protected
bool |
Definition at line 132 of file class.ilRegistrationGUI.php.
References initParticipants(), initWaitingList(), and isWaitingListActive().
Referenced by ilCourseRegistrationGUI\fillMaxMembers(), ilGroupRegistrationGUI\fillMaxMembers(), fillMembershipLimitation(), ilCourseRegistrationGUI\fillRegistrationPeriod(), ilGroupRegistrationGUI\fillRegistrationPeriod(), ilGroupRegistrationGUI\fillRegistrationType(), and ilCourseRegistrationGUI\fillRegistrationType().
|
protected |
Show user agreement.
protected
Definition at line 297 of file class.ilRegistrationGUI.php.
References $DIC, $ilUser, $section, ilExportFieldsInfo\_getInstanceByType(), ilCourseDefinedFieldDefinition\_hasFields(), ilObject\_lookupType(), ilMemberAgreementGUI\addAgreement(), ilMemberAgreementGUI\addCustomFields(), ilMemberAgreementGUI\addExportFieldInfo(), and isRegistrationPossible().
Referenced by initForm().
|
abstractprotected |
fill informations
protected
Referenced by initForm(), and leaveWaitingList().
|
abstractprotected |
show informations about the maximum number of user.
protected
Referenced by initForm(), and leaveWaitingList().
|
protected |
Show membership limitations.
protected
Definition at line 241 of file class.ilRegistrationGUI.php.
References $_GET, $DIC, $ilCtrl, $obj_id, $ref_id, $title, $tpl, $type, ilObjCourseGrouping\_checkGroupingDependencies(), ilObjCourseGrouping\_getGroupingItems(), ilObject\_lookupObjId(), ilObject\_lookupTitle(), ilObject\_lookupType(), enableRegistration(), and ilCustomInputGUI\setHtml().
Referenced by initForm().
|
abstractprotected |
show informations about the registration period
protected
Referenced by initForm(), and leaveWaitingList().
|
abstractprotected |
show informations about registration procedure
protected
Referenced by initForm(), and leaveWaitingList().
ilRegistrationGUI::getContainer | ( | ) |
Parent object.
Definition at line 100 of file class.ilRegistrationGUI.php.
References $container.
Referenced by ilCourseRegistrationGUI\fillMaxMembers(), and ilGroupRegistrationGUI\fillMaxMembers().
|
abstractprotected |
Get title for property form.
protected
Referenced by initForm(), and leaveWaitingList().
ilRegistrationGUI::getRefId | ( | ) |
Get ref.
Definition at line 109 of file class.ilRegistrationGUI.php.
References $ref_id.
Referenced by ilCourseRegistrationGUI\executeCommand().
|
protected |
Get waiting list object.
Definition at line 168 of file class.ilRegistrationGUI.php.
References $waiting_list.
Referenced by addCommandButtons(), ilCourseRegistrationGUI\executeCommand(), ilGroupRegistrationGUI\executeCommand(), ilCourseRegistrationGUI\fillMaxMembers(), ilGroupRegistrationGUI\fillMaxMembers(), ilGroupRegistrationGUI\fillRegistrationType(), ilCourseRegistrationGUI\getFormTitle(), ilGroupRegistrationGUI\getFormTitle(), ilGroupRegistrationGUI\isWaitingListActive(), ilCourseRegistrationGUI\isWaitingListActive(), and leaveWaitingList().
|
protected |
init registration form
protected
Definition at line 569 of file class.ilRegistrationGUI.php.
References $DIC, $form, $ilUser, addCommandButtons(), fillAgreement(), fillInformations(), fillMaxMembers(), fillMembershipLimitation(), fillRegistrationPeriod(), fillRegistrationType(), getFormTitle(), and isRegistrationPossible().
Referenced by join(), and show().
|
abstractprotected |
Init participants object (course or group participants)
protected
Referenced by __construct(), and enableRegistration().
|
abstractprotected |
Init waiting list (course or group waiting list)
protected
Referenced by __construct(), and enableRegistration().
|
protected |
check if registration is possible
protected
Definition at line 120 of file class.ilRegistrationGUI.php.
References $registration_possible.
Referenced by ilGroupRegistrationGUI\addCommandButtons(), ilCourseRegistrationGUI\addCommandButtons(), addCommandButtons(), fillAgreement(), initForm(), ilGroupRegistrationGUI\validate(), and ilCourseRegistrationGUI\validate().
|
abstractprotected |
Check if the waiting list is active Maximum of members exceeded or any user on the waiting list.
Referenced by addCommandButtons(), and enableRegistration().
ilRegistrationGUI::join | ( | ) |
join
public
Definition at line 533 of file class.ilRegistrationGUI.php.
References $form, add(), initForm(), ilUtil\sendFailure(), show(), and validate().
|
protected |
Definition at line 173 of file class.ilRegistrationGUI.php.
References $DIC, $ilCtrl, $ilUser, $message, $tree, fillInformations(), fillMaxMembers(), fillRegistrationPeriod(), fillRegistrationType(), getFormTitle(), and getWaitingList().
|
protected |
Set Agreement accepted.
private
bool |
Definition at line 468 of file class.ilRegistrationGUI.php.
References $DIC, $ilUser, ilCourseDefinedFieldDefinition\_hasFields(), and ilMemberAgreement\setAccepted().
Referenced by ilGroupRegistrationGUI\add(), ilCourseRegistrationGUI\add(), and ilCourseRegistrationGUI\validate().
ilRegistrationGUI::show | ( | ilPropertyFormGUI | $form = null | ) |
show registration form
public
Definition at line 513 of file class.ilRegistrationGUI.php.
References $_SESSION, $form, initForm(), and ilUtil\sendInfo().
Referenced by ilCourseRegistrationGUI\add(), and join().
|
protected |
Show course defined fields.
protected
Definition at line 343 of file class.ilRegistrationGUI.php.
References $_POST, $DIC, $ilUser, $text, ilCourseDefinedFieldDefinition\_getFields(), IL_CDF_TYPE_SELECT, IL_CDF_TYPE_TEXT, ilSelectInputGUI\setValue(), ilNonEditableValueGUI\setValue(), and ilUtil\stripSlashes().
|
protected |
Update subscription message.
Definition at line 635 of file class.ilRegistrationGUI.php.
References $_POST, $DIC, $ilCtrl, $ilUser, $tree, and ilUtil\stripSlashes().
|
protected |
validate join request
protected
Definition at line 558 of file class.ilRegistrationGUI.php.
Referenced by join().
|
protected |
Check Agreement.
protected
Definition at line 399 of file class.ilRegistrationGUI.php.
References $_POST, $DIC, and $ilUser.
Referenced by ilGroupRegistrationGUI\validate(), and ilCourseRegistrationGUI\validate().
|
protected |
Check required course fields.
protected
Definition at line 421 of file class.ilRegistrationGUI.php.
References $_POST, $DIC, $ilUser, ilCourseDefinedFieldDefinition\_getFields(), IL_CDF_TYPE_SELECT, IL_CDF_TYPE_TEXT, and ilCourseUserData\setValue().
Referenced by ilGroupRegistrationGUI\validate(), and ilCourseRegistrationGUI\validate().
|
protected |
Definition at line 39 of file class.ilRegistrationGUI.php.
Referenced by getContainer().
|
protected |
Definition at line 56 of file class.ilRegistrationGUI.php.
|
protected |
Definition at line 48 of file class.ilRegistrationGUI.php.
Referenced by initForm(), join(), and show().
|
protected |
Definition at line 51 of file class.ilRegistrationGUI.php.
|
protected |
Definition at line 55 of file class.ilRegistrationGUI.php.
Referenced by __construct(), and ilGroupRegistrationGUI\add().
|
protected |
Definition at line 41 of file class.ilRegistrationGUI.php.
Referenced by fillMembershipLimitation().
|
protected |
Definition at line 46 of file class.ilRegistrationGUI.php.
|
protected |
Definition at line 37 of file class.ilRegistrationGUI.php.
|
protected |
Definition at line 40 of file class.ilRegistrationGUI.php.
Referenced by fillMembershipLimitation(), and getRefId().
|
protected |
Definition at line 50 of file class.ilRegistrationGUI.php.
Referenced by isRegistrationPossible().
|
protected |
Definition at line 54 of file class.ilRegistrationGUI.php.
Referenced by __construct(), ilCourseRegistrationGUI\fillMaxMembers(), ilGroupRegistrationGUI\fillMaxMembers(), fillMembershipLimitation(), ilCourseRegistrationGUI\fillRegistrationPeriod(), and ilGroupRegistrationGUI\fillRegistrationPeriod().
|
protected |
Definition at line 47 of file class.ilRegistrationGUI.php.
Referenced by ilGroupRegistrationGUI\add(), ilCourseRegistrationGUI\add(), ilCourseRegistrationGUI\fillMaxMembers(), ilGroupRegistrationGUI\fillMaxMembers(), and getWaitingList().