ILIAS
Release_4_4_x_branch Revision 61816
|
Base class for Course and Group registration. More...
Public Member Functions | |
__construct ($a_container) | |
Constructor. | |
getContainer () | |
Parent object. | |
getRefId () | |
Get ref. | |
cancel () | |
cancel subscription | |
show () | |
show registration form | |
join () | |
join |
Protected Member Functions | |
isRegistrationPossible () | |
check if registration is possible | |
enableRegistration ($a_status) | |
set registration disabled | |
initParticipants () | |
Init participants object (course or group participants) | |
initWaitingList () | |
Init waiting list (course or group waiting list) | |
isWaitingListActive () | |
Check if the waiting list is active Maximum of members exceeded or any user on the waiting list. | |
getWaitingList () | |
Get waiting list object. | |
leaveWaitingList () | |
getFormTitle () | |
Get title for property form. | |
fillInformations () | |
fill informations | |
fillRegistrationPeriod () | |
show informations about the registration period | |
fillMaxMembers () | |
show informations about the maximum number of user. | |
fillRegistrationType () | |
show informations about registration procedure | |
fillMembershipLimitation () | |
Show membership limitations. | |
fillAgreement () | |
Show user agreement. | |
showCustomFields () | |
Show course defined fields. | |
validateAgreement () | |
Check Agreement. | |
validateCustomFields () | |
Check required course fields. | |
setAccepted ($a_status) | |
Set Agreement accepted. | |
validate () | |
validate join request | |
initForm () | |
init registration form | |
addCommandButtons () | |
Add command buttons. | |
updateSubscriptionRequest () | |
Update subscription message. | |
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 |
Reimplemented in ilCourseRegistrationGUI, and ilGroupRegistrationGUI.
Definition at line 62 of file class.ilRegistrationGUI.php.
References $ilCtrl, $lng, $tpl, ilPrivacySettings\_getInstance(), ilObject\_lookupObjId(), ilObject\_lookupType(), initParticipants(), and initWaitingList().
|
protected |
Add command buttons.
Reimplemented in ilCourseRegistrationGUI, and ilGroupRegistrationGUI.
Definition at line 593 of file class.ilRegistrationGUI.php.
References $ilUser, getWaitingList(), isRegistrationPossible(), isWaitingListActive(), and ilUtil\sendQuestion().
Referenced by initForm().
ilRegistrationGUI::cancel | ( | ) |
cancel subscription
public
Definition at line 487 of file class.ilRegistrationGUI.php.
References $ilCtrl.
|
protected |
Definition at line 634 of file class.ilRegistrationGUI.php.
References $ilCtrl, $ilUser, and ilUtil\sendSuccess().
|
protected |
set registration disabled
protected
bool |
Definition at line 124 of file class.ilRegistrationGUI.php.
Referenced by ilGroupRegistrationGUI\fillMaxMembers(), ilCourseRegistrationGUI\fillMaxMembers(), fillMembershipLimitation(), ilGroupRegistrationGUI\fillRegistrationPeriod(), ilCourseRegistrationGUI\fillRegistrationPeriod(), ilGroupRegistrationGUI\fillRegistrationType(), and ilCourseRegistrationGUI\fillRegistrationType().
|
protected |
Show user agreement.
protected
Definition at line 284 of file class.ilRegistrationGUI.php.
References $ilUser, $section, ilExportFieldsInfo\_getInstanceByType(), ilCourseDefinedFieldDefinition\_hasFields(), ilObject\_lookupType(), ilMemberAgreementGUI\addAgreement(), ilMemberAgreementGUI\addCustomFields(), ilMemberAgreementGUI\addExportFieldInfo(), and isRegistrationPossible().
Referenced by initForm().
|
abstractprotected |
fill informations
protected
Reimplemented in ilCourseRegistrationGUI, and ilGroupRegistrationGUI.
Referenced by initForm().
|
abstractprotected |
show informations about the maximum number of user.
protected
@return |
Reimplemented in ilCourseRegistrationGUI, and ilGroupRegistrationGUI.
Referenced by initForm().
|
protected |
Show membership limitations.
protected
Definition at line 227 of file class.ilRegistrationGUI.php.
References $_GET, $ilCtrl, $obj_id, $ref_id, $tpl, ilObjCourseGrouping\_checkGroupingDependencies(), ilObjCourseGrouping\_getGroupingItems(), ilObject\_lookupObjId(), ilObject\_lookupTitle(), ilObject\_lookupType(), enableRegistration(), ilUtil\getTypeIconPath(), and ilCustomInputGUI\setHtml().
Referenced by initForm().
|
abstractprotected |
show informations about the registration period
protected
Reimplemented in ilCourseRegistrationGUI, and ilGroupRegistrationGUI.
Referenced by initForm().
|
abstractprotected |
show informations about registration procedure
protected
Reimplemented in ilCourseRegistrationGUI, and ilGroupRegistrationGUI.
Referenced by initForm().
ilRegistrationGUI::getContainer | ( | ) |
Parent object.
Definition at line 92 of file class.ilRegistrationGUI.php.
References $container.
|
abstractprotected |
Get title for property form.
protected
Reimplemented in ilCourseRegistrationGUI, and ilGroupRegistrationGUI.
Referenced by initForm().
ilRegistrationGUI::getRefId | ( | ) |
Get ref.
Definition at line 101 of file class.ilRegistrationGUI.php.
References $ref_id.
Referenced by ilCourseRegistrationGUI\executeCommand().
|
protected |
Get waiting list object.
Definition at line 160 of file class.ilRegistrationGUI.php.
References $waiting_list.
Referenced by addCommandButtons(), ilGroupRegistrationGUI\executeCommand(), ilCourseRegistrationGUI\executeCommand(), ilGroupRegistrationGUI\fillMaxMembers(), ilCourseRegistrationGUI\fillMaxMembers(), ilGroupRegistrationGUI\fillRegistrationType(), ilGroupRegistrationGUI\getFormTitle(), ilCourseRegistrationGUI\getFormTitle(), ilGroupRegistrationGUI\isWaitingListActive(), ilCourseRegistrationGUI\isWaitingListActive(), and leaveWaitingList().
|
protected |
init registration form
protected
Definition at line 554 of file class.ilRegistrationGUI.php.
References $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
Reimplemented in ilCourseRegistrationGUI, and ilGroupRegistrationGUI.
Referenced by __construct().
|
abstractprotected |
Init waiting list (course or group waiting list)
protected
Reimplemented in ilCourseRegistrationGUI, and ilGroupRegistrationGUI.
Referenced by __construct().
|
protected |
check if registration is possible
protected
Definition at line 112 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.
Reimplemented in ilCourseRegistrationGUI, and ilGroupRegistrationGUI.
Referenced by addCommandButtons().
ilRegistrationGUI::join | ( | ) |
join
public
@return |
Definition at line 522 of file class.ilRegistrationGUI.php.
References initForm(), ilUtil\sendFailure(), show(), and validate().
|
protected |
Definition at line 165 of file class.ilRegistrationGUI.php.
References $ilCtrl, $ilUser, getWaitingList(), and ilUtil\sendSuccess().
|
protected |
Set Agreement accepted.
private
bool |
Definition at line 465 of file class.ilRegistrationGUI.php.
References $ilUser, ilCourseDefinedFieldDefinition\_hasFields(), and ilMemberAgreement\setAccepted().
Referenced by ilGroupRegistrationGUI\add(), ilCourseRegistrationGUI\add(), and ilCourseRegistrationGUI\validate().
ilRegistrationGUI::show | ( | ) |
show registration form
public
@return |
Definition at line 503 of file class.ilRegistrationGUI.php.
References $_SESSION, initForm(), and ilUtil\sendInfo().
Referenced by join().
|
protected |
Show course defined fields.
protected
Definition at line 332 of file class.ilRegistrationGUI.php.
References $_POST, $ilUser, ilCourseDefinedFieldDefinition\_getFields(), IL_CDF_TYPE_SELECT, IL_CDF_TYPE_TEXT, ilNonEditableValueGUI\setValue(), and ilUtil\stripSlashes().
|
protected |
Update subscription message.
Definition at line 622 of file class.ilRegistrationGUI.php.
References $_POST, $ilCtrl, $ilUser, ilUtil\sendSuccess(), and ilUtil\stripSlashes().
|
protected |
validate join request
protected
Reimplemented in ilCourseRegistrationGUI, and ilGroupRegistrationGUI.
Definition at line 543 of file class.ilRegistrationGUI.php.
Referenced by join().
|
protected |
Check Agreement.
protected
Definition at line 391 of file class.ilRegistrationGUI.php.
References $_POST, and $ilUser.
Referenced by ilGroupRegistrationGUI\validate(), and ilCourseRegistrationGUI\validate().
|
protected |
Check required course fields.
protected
Definition at line 413 of file class.ilRegistrationGUI.php.
References $_POST, $GLOBALS, $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 53 of file class.ilRegistrationGUI.php.
|
protected |
Definition at line 45 of file class.ilRegistrationGUI.php.
|
protected |
Definition at line 48 of file class.ilRegistrationGUI.php.
|
protected |
Definition at line 52 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 43 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 47 of file class.ilRegistrationGUI.php.
Referenced by isRegistrationPossible().
|
protected |
Definition at line 51 of file class.ilRegistrationGUI.php.
Referenced by __construct(), ilGroupRegistrationGUI\fillMaxMembers(), ilCourseRegistrationGUI\fillMaxMembers(), fillMembershipLimitation(), ilGroupRegistrationGUI\fillRegistrationPeriod(), and ilCourseRegistrationGUI\fillRegistrationPeriod().
|
protected |
Definition at line 44 of file class.ilRegistrationGUI.php.
Referenced by ilGroupRegistrationGUI\add(), ilCourseRegistrationGUI\add(), ilGroupRegistrationGUI\fillMaxMembers(), ilCourseRegistrationGUI\fillMaxMembers(), and getWaitingList().