ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Public Member Functions | |
__construct ($a_obj_id) | |
Constructor. More... | |
executeCommand () | |
Execute Command. More... | |
getObjId () | |
Get obj_id of container. More... | |
Data Fields | |
const | MODE_CREATE = 1 |
const | MODE_UPDATE = 2 |
Protected Member Functions | |
show () | |
Show list of custom fields. More... | |
listFields () | |
List existing custom fields. More... | |
saveFields () | |
Save Field settings (currently only required status) More... | |
confirmDeleteFields () | |
Show delete confirmation screen. More... | |
deleteFields () | |
Delete selected fields. More... | |
addField () | |
Show field creation form. More... | |
saveField () | |
Save field. More... | |
editField () | |
Edit one field. More... | |
updateField () | |
Update field definition. More... | |
initFieldForm ($a_mode) | |
Init/create property form for fields. More... | |
editMember (ilPropertyFormGUI $form=null) | |
Edit Member. More... | |
cancelEditMember () | |
Cancel editing. More... | |
initMemberForm () | |
Init member form. More... | |
saveMember () | |
Private Attributes | |
$form = null | |
$lng | |
$tpl | |
$ctrl | |
$tabs_gui | |
$obj_id | |
$ref_id | |
$cdf | |
Definition at line 35 of file class.ilObjectCustomUserFieldsGUI.php.
ilObjectCustomUserFieldsGUI::__construct | ( | $a_obj_id | ) |
Constructor.
public
Definition at line 59 of file class.ilObjectCustomUserFieldsGUI.php.
References $ilCtrl, $lng, $tpl, ilObject\_getAllReferences(), and ilObject\_lookupType().
|
protected |
Show field creation form.
Definition at line 219 of file class.ilObjectCustomUserFieldsGUI.php.
References array, and initFieldForm().
|
protected |
Cancel editing.
Definition at line 420 of file class.ilObjectCustomUserFieldsGUI.php.
References $GLOBALS.
|
protected |
Show delete confirmation screen.
Definition at line 171 of file class.ilObjectCustomUserFieldsGUI.php.
References $_POST, getObjId(), listFields(), and ilUtil\sendFailure().
|
protected |
Delete selected fields.
Definition at line 200 of file class.ilObjectCustomUserFieldsGUI.php.
References $_POST, ilMemberAgreement\_deleteByObjId(), array, listFields(), and ilUtil\sendSuccess().
|
protected |
Edit one field.
object | $a_mode |
Definition at line 265 of file class.ilObjectCustomUserFieldsGUI.php.
References getObjId(), initFieldForm(), and listFields().
|
protected |
Edit Member.
ilPropertyFormGUI | $form |
Definition at line 394 of file class.ilObjectCustomUserFieldsGUI.php.
References $form, $GLOBALS, getObjId(), initMemberForm(), and ilMemberAgreementGUI\setCourseDefinedFieldValues().
Referenced by saveMember().
ilObjectCustomUserFieldsGUI::executeCommand | ( | ) |
Execute Command.
public
Definition at line 84 of file class.ilObjectCustomUserFieldsGUI.php.
References $cmd, $ilErr, and $lng.
ilObjectCustomUserFieldsGUI::getObjId | ( | ) |
Get obj_id of container.
Definition at line 111 of file class.ilObjectCustomUserFieldsGUI.php.
References $obj_id.
Referenced by confirmDeleteFields(), editField(), editMember(), initMemberForm(), listFields(), saveField(), saveFields(), saveMember(), show(), and updateField().
|
protected |
Init/create property form for fields.
Definition at line 323 of file class.ilObjectCustomUserFieldsGUI.php.
References IL_CDF_TYPE_SELECT, IL_CDF_TYPE_TEXT, ilTextWizardInputGUI\setAllowMove(), ilFormPropertyGUI\setRequired(), ilTextInputGUI\setSize(), and ilCheckboxInputGUI\setValue().
Referenced by addField(), editField(), saveField(), and updateField().
|
protected |
Init member form.
Definition at line 429 of file class.ilObjectCustomUserFieldsGUI.php.
References $form, $GLOBALS, $title, ilObjUser\_lookupName(), ilObject\_lookupType(), ilMemberAgreementGUI\addCustomFields(), and getObjId().
Referenced by editMember(), and saveMember().
|
protected |
List existing custom fields.
Definition at line 133 of file class.ilObjectCustomUserFieldsGUI.php.
References ilCourseDefinedFieldDefinition\_getFields(), and getObjId().
Referenced by confirmDeleteFields(), deleteFields(), editField(), saveField(), saveFields(), show(), and updateField().
|
protected |
Save field.
Definition at line 232 of file class.ilObjectCustomUserFieldsGUI.php.
References $_POST, $GLOBALS, ilMemberAgreement\_deleteByObjId(), getObjId(), initFieldForm(), listFields(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
|
protected |
Save Field settings (currently only required status)
Definition at line 152 of file class.ilObjectCustomUserFieldsGUI.php.
References $_POST, ilMemberAgreement\_deleteByObjId(), ilCourseDefinedFieldDefinition\_getFields(), getObjId(), listFields(), and ilUtil\sendSuccess().
|
protected |
Definition at line 448 of file class.ilObjectCustomUserFieldsGUI.php.
References $form, $GLOBALS, $ilUser, editMember(), getObjId(), IL_CAL_UNIX, initMemberForm(), ilMemberAgreementGUI\saveCourseDefinedFields(), ilUtil\sendFailure(), ilUtil\sendSuccess(), and time.
|
protected |
Show list of custom fields.
Definition at line 120 of file class.ilObjectCustomUserFieldsGUI.php.
References ilMemberAgreement\_hasAgreementsByObjId(), getObjId(), listFields(), and ilUtil\sendInfo().
|
protected |
Update field definition.
Definition at line 289 of file class.ilObjectCustomUserFieldsGUI.php.
References $_POST, $GLOBALS, ilMemberAgreement\_deleteByObjId(), getObjId(), initFieldForm(), listFields(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
|
private |
Definition at line 50 of file class.ilObjectCustomUserFieldsGUI.php.
|
private |
Definition at line 44 of file class.ilObjectCustomUserFieldsGUI.php.
|
private |
Definition at line 40 of file class.ilObjectCustomUserFieldsGUI.php.
Referenced by editMember(), initMemberForm(), and saveMember().
|
private |
Definition at line 42 of file class.ilObjectCustomUserFieldsGUI.php.
Referenced by __construct(), and executeCommand().
|
private |
Definition at line 47 of file class.ilObjectCustomUserFieldsGUI.php.
Referenced by getObjId().
|
private |
Definition at line 48 of file class.ilObjectCustomUserFieldsGUI.php.
|
private |
Definition at line 45 of file class.ilObjectCustomUserFieldsGUI.php.
|
private |
Definition at line 43 of file class.ilObjectCustomUserFieldsGUI.php.
Referenced by __construct().
const ilObjectCustomUserFieldsGUI::MODE_CREATE = 1 |
Definition at line 37 of file class.ilObjectCustomUserFieldsGUI.php.
const ilObjectCustomUserFieldsGUI::MODE_UPDATE = 2 |
Definition at line 38 of file class.ilObjectCustomUserFieldsGUI.php.