ILIAS
Release_4_0_x_branch Revision 61816
|
GUI class for course registrations. More...
Public Member Functions | |
__construct ($a_container) | |
Constructor. | |
executeCommand () | |
Execute command. | |
Public Member Functions inherited from ilRegistrationGUI | |
cancel () | |
cancel subscription | |
show () | |
show registration form | |
join () | |
join |
Protected Member Functions | |
getFormTitle () | |
get form title | |
fillInformations () | |
fill informations | |
fillRegistrationPeriod () | |
show informations about the registration period | |
fillMaxMembers () | |
fill max members | |
fillRegistrationType () | |
fill registration type | |
addCommandButtons () | |
Add group specific command buttons. | |
fillAgreement () | |
Show user agreement. | |
showCourseDefinedFields () | |
Show course defined fields. | |
validate () | |
Validate subscription request. | |
add () | |
add user | |
initParticipants () | |
Init course participants. | |
initWaitingList () | |
isWaitingListActive () | |
Protected Member Functions inherited from ilRegistrationGUI | |
isRegistrationPossible () | |
check if registration is possible | |
enableRegistration ($a_status) | |
set registration disabled | |
getWaitingList () | |
Get waiting list object. | |
leaveWaitingList () | |
fillMembershipLimitation () | |
Show membership limitations. | |
initForm () | |
init registration form | |
updateSubscriptionRequest () | |
Update subscription message. | |
cancelSubscriptionRequest () |
Protected Attributes | |
$privacy = null | |
Protected Attributes inherited from ilRegistrationGUI | |
$container = null | |
$ref_id | |
$obj_id | |
$participants | |
$waiting_list = null | |
$form | |
$registration_possible = true | |
$join_error = '' | |
$tpl | |
$lng | |
$ctrl |
Private Member Functions | |
validateAgreement () | |
Check Agreement. | |
validateCourseDefinedFields () | |
Check required course fields. | |
setAccepted ($a_status) | |
Set Agreement accepted. |
GUI class for course registrations.
Definition at line 38 of file class.ilCourseRegistrationGUI.php.
ilCourseRegistrationGUI::__construct | ( | $a_container | ) |
Constructor.
public
object | course object |
Reimplemented from ilRegistrationGUI.
Definition at line 48 of file class.ilCourseRegistrationGUI.php.
References ilPrivacySettings\_getInstance().
|
protected |
add user
protected
@return |
Definition at line 651 of file class.ilCourseRegistrationGUI.php.
References $_POST, ilRegistrationGUI\$waiting_list, ilWaitingList\addToList(), IL_CRS_MEMBER, IL_CRS_SUBSCRIPTION_CONFIRMATION, ilUtil\redirect(), ilUtil\sendSuccess(), setAccepted(), and ilUtil\stripSlashes().
|
protected |
Add group specific command buttons.
Reimplemented from ilRegistrationGUI.
Definition at line 368 of file class.ilCourseRegistrationGUI.php.
References IL_CRS_SUBSCRIPTION_CONFIRMATION, and ilRegistrationGUI\isRegistrationPossible().
ilCourseRegistrationGUI::executeCommand | ( | ) |
Execute command.
public
Definition at line 60 of file class.ilCourseRegistrationGUI.php.
References $cmd, and ilRegistrationGUI\getWaitingList().
|
protected |
Show user agreement.
protected
Reimplemented from ilRegistrationGUI.
Definition at line 405 of file class.ilCourseRegistrationGUI.php.
References $section, ilRegistrationGUI\$tpl, ilExportFieldsInfo\_getInstance(), ilPrivacySettings\_getInstance(), ilCourseDefinedFieldDefinition\_hasFields(), ilRegistrationGUI\isRegistrationPossible(), ilCustomInputGUI\setHtml(), ilFormPropertyGUI\setRequired(), and showCourseDefinedFields().
|
protected |
fill informations
protected
@return |
Reimplemented from ilRegistrationGUI.
Definition at line 104 of file class.ilCourseRegistrationGUI.php.
References ilUtil\makeClickable().
|
protected |
fill max members
protected
@return |
Reimplemented from ilRegistrationGUI.
Definition at line 199 of file class.ilCourseRegistrationGUI.php.
References ilRegistrationGUI\$tpl, ilRegistrationGUI\$waiting_list, elseif(), ilRegistrationGUI\enableRegistration(), ilRegistrationGUI\getWaitingList(), ilUtil\sendFailure(), and ilCustomInputGUI\setHtml().
|
protected |
show informations about the registration period
protected
Reimplemented from ilRegistrationGUI.
Definition at line 128 of file class.ilCourseRegistrationGUI.php.
References $start, ilRegistrationGUI\$tpl, ilDateTime\_after(), ilDateTime\_before(), elseif(), ilRegistrationGUI\enableRegistration(), ilDatePresentation\formatDate(), IL_CAL_UNIX, IL_CRS_SUBSCRIPTION_DEACTIVATED, ilUtil\sendFailure(), ilCustomInputGUI\setHtml(), and ilNonEditableValueGUI\setValue().
|
protected |
fill registration type
protected
Reimplemented from ilRegistrationGUI.
Definition at line 280 of file class.ilCourseRegistrationGUI.php.
References $_POST, $pass, ilRegistrationGUI\enableRegistration(), IL_CRS_SUBSCRIPTION_CONFIRMATION, IL_CRS_SUBSCRIPTION_DEACTIVATED, IL_CRS_SUBSCRIPTION_DIRECT, IL_CRS_SUBSCRIPTION_PASSWORD, isWaitingListActive(), ilUtil\sendFailure(), ilFormPropertyGUI\setAlert(), ilNonEditableValueGUI\setValue(), and ilTextAreaInputGUI\setValue().
|
protected |
get form title
protected
Reimplemented from ilRegistrationGUI.
Definition at line 86 of file class.ilCourseRegistrationGUI.php.
References ilRegistrationGUI\getWaitingList().
|
protected |
Init course participants.
protected
Reimplemented from ilRegistrationGUI.
Definition at line 728 of file class.ilCourseRegistrationGUI.php.
References ilCourseParticipants\_getInstanceByObjId().
|
protected |
Reimplemented from ilRegistrationGUI.
Definition at line 739 of file class.ilCourseRegistrationGUI.php.
|
protected |
Reimplemented from ilRegistrationGUI.
Definition at line 748 of file class.ilCourseRegistrationGUI.php.
References ilRegistrationGUI\getWaitingList().
Referenced by fillRegistrationType().
|
private |
Set Agreement accepted.
private
bool |
Definition at line 704 of file class.ilCourseRegistrationGUI.php.
References ilCourseDefinedFieldDefinition\_hasFields(), and ilCourseAgreement\setAccepted().
Referenced by add(), and validate().
|
protected |
Show course defined fields.
protected
Definition at line 466 of file class.ilCourseRegistrationGUI.php.
References $_POST, ilCourseDefinedFieldDefinition\_getFields(), IL_CDF_TYPE_SELECT, IL_CDF_TYPE_TEXT, ilNonEditableValueGUI\setValue(), and ilUtil\stripSlashes().
Referenced by fillAgreement().
|
protected |
Validate subscription request.
protected
@return |
Reimplemented from ilRegistrationGUI.
Definition at line 528 of file class.ilCourseRegistrationGUI.php.
References $_POST, $pass, IL_CRS_SUBSCRIPTION_PASSWORD, ilRegistrationGUI\isRegistrationPossible(), setAccepted(), ilUtil\stripSlashes(), validateAgreement(), and validateCourseDefinedFields().
|
private |
Check Agreement.
protected
Definition at line 579 of file class.ilCourseRegistrationGUI.php.
References $_POST, and ilCourseDefinedFieldDefinition\_hasFields().
Referenced by validate().
|
private |
Check required course fields.
protected
Definition at line 601 of file class.ilCourseRegistrationGUI.php.
References $_POST, ilCourseDefinedFieldDefinition\_getFields(), IL_CDF_TYPE_SELECT, IL_CDF_TYPE_TEXT, ilCourseUserData\setValue(), and ilUtil\stripSlashes().
Referenced by validate().
|
protected |
Definition at line 40 of file class.ilCourseRegistrationGUI.php.