ILIAS
eassessment Revision 61809
|
Base class for Course and Group registration. More...
Public Member Functions | |
__construct ($a_container) | |
Constructor. | |
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 572 of file class.ilRegistrationGUI.php.
References getWaitingList(), isRegistrationPossible(), isWaitingListActive(), and ilUtil\sendQuestion().
Referenced by initForm().
ilRegistrationGUI::cancel | ( | ) |
cancel subscription
public
Definition at line 472 of file class.ilRegistrationGUI.php.
References ilUtil\redirect().
|
protected |
Definition at line 610 of file class.ilRegistrationGUI.php.
References ilUtil\redirect(), and ilUtil\sendSuccess().
|
protected |
set registration disabled
protected
bool |
Definition at line 106 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 261 of file class.ilRegistrationGUI.php.
References $tpl, ilExportFieldsInfo\_getInstanceByType(), ilCourseDefinedFieldDefinition\_hasFields(), ilObject\_lookupType(), isRegistrationPossible(), ilCustomInputGUI\setHtml(), ilFormPropertyGUI\setRequired(), and showCustomFields().
Referenced by initForm().
|
abstractprotected |
fill informations
protected
Reimplemented in ilGroupRegistrationGUI, and ilCourseRegistrationGUI.
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 207 of file class.ilRegistrationGUI.php.
References $obj_id, $ref_id, $title, $tpl, $type, 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().
|
abstractprotected |
Get title for property form.
protected
Reimplemented in ilGroupRegistrationGUI, and ilCourseRegistrationGUI.
Referenced by initForm().
|
protected |
Get waiting list object.
Definition at line 142 of file class.ilRegistrationGUI.php.
References $waiting_list.
Referenced by addCommandButtons(), ilGroupRegistrationGUI\executeCommand(), ilCourseRegistrationGUI\executeCommand(), ilGroupRegistrationGUI\fillMaxMembers(), ilCourseRegistrationGUI\fillMaxMembers(), ilGroupRegistrationGUI\fillRegistrationType(), ilCourseRegistrationGUI\getFormTitle(), ilGroupRegistrationGUI\getFormTitle(), ilGroupRegistrationGUI\isWaitingListActive(), ilCourseRegistrationGUI\isWaitingListActive(), and leaveWaitingList().
|
protected |
init registration form
protected
Definition at line 533 of file class.ilRegistrationGUI.php.
References 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 94 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 501 of file class.ilRegistrationGUI.php.
References initForm(), ilUtil\sendFailure(), show(), and validate().
|
protected |
Definition at line 147 of file class.ilRegistrationGUI.php.
References $ilCtrl, getWaitingList(), ilUtil\redirect(), and ilUtil\sendSuccess().
|
protected |
Set Agreement accepted.
private
bool |
Definition at line 450 of file class.ilRegistrationGUI.php.
References ilCourseDefinedFieldDefinition\_hasFields(), and ilMemberAgreement\setAccepted().
Referenced by ilGroupRegistrationGUI\add(), ilCourseRegistrationGUI\add(), and ilCourseRegistrationGUI\validate().
ilRegistrationGUI::show | ( | ) |
show registration form
public
@return |
Definition at line 487 of file class.ilRegistrationGUI.php.
References initForm().
Referenced by join().
|
protected |
Show course defined fields.
protected
Definition at line 322 of file class.ilRegistrationGUI.php.
References $_POST, ilCourseDefinedFieldDefinition\_getFields(), IL_CDF_TYPE_SELECT, IL_CDF_TYPE_TEXT, ilNonEditableValueGUI\setValue(), and ilUtil\stripSlashes().
Referenced by fillAgreement().
|
protected |
Update subscription message.
Definition at line 601 of file class.ilRegistrationGUI.php.
References $_POST, ilUtil\redirect(), ilUtil\sendSuccess(), and ilUtil\stripSlashes().
|
protected |
validate join request
protected
Reimplemented in ilCourseRegistrationGUI, and ilGroupRegistrationGUI.
Definition at line 522 of file class.ilRegistrationGUI.php.
Referenced by join().
|
protected |
Check Agreement.
protected
Definition at line 381 of file class.ilRegistrationGUI.php.
References $_POST.
Referenced by ilGroupRegistrationGUI\validate(), and ilCourseRegistrationGUI\validate().
|
protected |
Check required course fields.
protected
Definition at line 403 of file class.ilRegistrationGUI.php.
References $_POST, ilCourseDefinedFieldDefinition\_getFields(), IL_CDF_TYPE_SELECT, IL_CDF_TYPE_TEXT, ilCourseUserData\setValue(), and ilUtil\stripSlashes().
Referenced by ilGroupRegistrationGUI\validate(), and ilCourseRegistrationGUI\validate().
|
protected |
Definition at line 39 of file class.ilRegistrationGUI.php.
|
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().
|
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(), fillAgreement(), 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().