ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
__construct ($a_ref_id=null, $a_obj_type=null, $a_sub_type=null) | |
Constructor. More... | |
executeCommand () | |
Execute command. More... | |
showRecords () | |
show record list More... | |
showPresentation () | |
updateSubstitutions () | |
Update substitution. More... | |
exportRecords () | |
Export records. More... | |
showFiles () | |
show export files More... | |
downloadFile () | |
Download XML file. More... | |
confirmDeleteFiles () | |
confirm delete files More... | |
deleteFiles () | |
Delete files. More... | |
confirmDeleteRecords () | |
Confirm delete. More... | |
deleteRecords () | |
Permanently delete records. More... | |
updateRecords () | |
Save records (assigned object typed) More... | |
confirmDeleteFields () | |
show delete fields confirmation screen More... | |
deleteFields () | |
delete fields More... | |
editRecord () | |
Edit one record. More... | |
editFields () | |
updateFields () | |
Update fields. More... | |
updateRecord () | |
Update record. More... | |
createRecord () | |
Show. More... | |
importRecords () | |
importRecord () | |
import xml file More... | |
saveRecord () | |
Save record. More... | |
editField (ilPropertyFormGUI $a_form=null) | |
Edit field. More... | |
updateField () | |
Update field. More... | |
createField (ilPropertyFormGUI $a_form=null) | |
Show field type selection. More... | |
saveField () | |
create field More... | |
Data Fields | |
const | MODE_ADMINISTRATION = 1 |
const | MODE_OBJECT = 2 |
Protected Member Functions | |
getPermissions () | |
initImportForm () | |
show import form More... | |
initFieldForm (ilAdvancedMDFieldDefinition $a_definition) | |
init field form More... | |
initForm ($a_mode) | |
Init Form. More... | |
getSubstitutionFieldPermissions ($a_obj_type, $a_field_id) | |
initFormSubstitutions () | |
init form table 'substitutions' More... | |
loadRecordFormData () | |
load record form data More... | |
initRecordObject () | |
Init record object. More... | |
setSubTabs () | |
Set sub tabs. More... | |
getParsedRecordObjects () | |
Get and cache record objects. More... | |
Protected Attributes | |
$lng | |
$tpl | |
$ctrl | |
$tabs | |
$permissions | |
$ref_id = null | |
$obj_id = null | |
$obj_type = null | |
$sub_type = null | |
Private Attributes | |
$mode = null | |
$logger = null | |
ilAdvancedMDSettingsGUI: ilPropertyFormGUI
Definition at line 16 of file class.ilAdvancedMDSettingsGUI.php.
ilAdvancedMDSettingsGUI::__construct | ( | $a_ref_id = null , |
|
$a_obj_type = null , |
|||
$a_sub_type = null |
|||
) |
Constructor.
public
Definition at line 49 of file class.ilAdvancedMDSettingsGUI.php.
References $DIC, $GLOBALS, $ilCtrl, $lng, $tpl, ilObject\_lookupObjId(), ilObject\_lookupType(), and ilClaimingPermissionHelper\getInstance().
ilAdvancedMDSettingsGUI::confirmDeleteFields | ( | ) |
show delete fields confirmation screen
public
Definition at line 637 of file class.ilAdvancedMDSettingsGUI.php.
References $_POST, editFields(), ilAdvancedMDFieldDefinition\getInstance(), and ilUtil\sendFailure().
ilAdvancedMDSettingsGUI::confirmDeleteFiles | ( | ) |
confirm delete files
public
Definition at line 405 of file class.ilAdvancedMDSettingsGUI.php.
References $_POST, $files, $info, ilUtil\sendFailure(), and showFiles().
ilAdvancedMDSettingsGUI::confirmDeleteRecords | ( | ) |
Confirm delete.
public
Definition at line 471 of file class.ilAdvancedMDSettingsGUI.php.
References $_POST, ilAdvancedMDRecord\_getInstanceByRecordId(), ilUtil\sendFailure(), and showRecords().
ilAdvancedMDSettingsGUI::createField | ( | ilPropertyFormGUI | $a_form = null | ) |
Show field type selection.
public
Definition at line 1075 of file class.ilAdvancedMDSettingsGUI.php.
References editFields(), ilAdvancedMDFieldDefinition\getInstance(), and initFieldForm().
Referenced by saveField().
ilAdvancedMDSettingsGUI::createRecord | ( | ) |
Show.
public
Definition at line 880 of file class.ilAdvancedMDSettingsGUI.php.
References initForm(), and initRecordObject().
Referenced by importRecord(), and saveRecord().
ilAdvancedMDSettingsGUI::deleteFields | ( | ) |
delete fields
public
Definition at line 671 of file class.ilAdvancedMDSettingsGUI.php.
References $_POST, ilAdvancedMDPermissionHelper\ACTION_FIELD_DELETE, ilAdvancedMDPermissionHelper\CONTEXT_FIELD, editFields(), ilAdvancedMDFieldDefinition\getInstance(), getPermissions(), and ilUtil\sendFailure().
ilAdvancedMDSettingsGUI::deleteFiles | ( | ) |
Delete files.
public
Definition at line 442 of file class.ilAdvancedMDSettingsGUI.php.
References $_POST, $files, $GLOBALS, ilUtil\sendFailure(), and showFiles().
ilAdvancedMDSettingsGUI::deleteRecords | ( | ) |
Permanently delete records.
public
Definition at line 502 of file class.ilAdvancedMDSettingsGUI.php.
References $_POST, ilAdvancedMDRecord\_getInstanceByRecordId(), ilAdvancedMDPermissionHelper\ACTION_RECORD_DELETE, ilAdvancedMDPermissionHelper\CONTEXT_RECORD, getPermissions(), ilUtil\sendFailure(), and showRecords().
ilAdvancedMDSettingsGUI::downloadFile | ( | ) |
Download XML file.
public
Definition at line 384 of file class.ilAdvancedMDSettingsGUI.php.
References $_POST, $files, ilUtil\deliverFile(), ilUtil\sendFailure(), and showFiles().
ilAdvancedMDSettingsGUI::editField | ( | ilPropertyFormGUI | $a_form = null | ) |
Edit field.
public
Definition at line 1012 of file class.ilAdvancedMDSettingsGUI.php.
References editFields(), ilAdvancedMDFieldDefinition\getInstance(), and initFieldForm().
Referenced by updateField().
ilAdvancedMDSettingsGUI::editFields | ( | ) |
Definition at line 721 of file class.ilAdvancedMDSettingsGUI.php.
References $DIC, PHPMailer\PHPMailer\$options, $type, ilAdvancedMDPermissionHelper\ACTION_RECORD_CREATE_FIELD, ilAdvancedMDPermissionHelper\ACTION_RECORD_FIELD_POSITIONS, ilAdvancedMDPermissionHelper\CONTEXT_RECORD, ilSubmitButton\getInstance(), ilAdvancedMDFieldDefinition\getInstance(), ilAdvancedMDFieldDefinition\getInstancesByRecordId(), getPermissions(), ilAdvancedMDFieldDefinition\getValidTypes(), initRecordObject(), and ilUtil\sendInfo().
Referenced by confirmDeleteFields(), createField(), deleteFields(), editField(), saveField(), updateField(), and updateFields().
ilAdvancedMDSettingsGUI::editRecord | ( | ) |
Edit one record.
public
Definition at line 713 of file class.ilAdvancedMDSettingsGUI.php.
References initForm(), and initRecordObject().
Referenced by updateRecord().
ilAdvancedMDSettingsGUI::executeCommand | ( | ) |
Execute command.
public
Definition at line 104 of file class.ilAdvancedMDSettingsGUI.php.
References $GLOBALS, initForm(), initRecordObject(), and setSubTabs().
ilAdvancedMDSettingsGUI::exportRecords | ( | ) |
Export records.
public
Definition at line 310 of file class.ilAdvancedMDSettingsGUI.php.
References $_POST, ilAdvancedMDRecord\_getInstanceByRecordId(), ilAdvancedMDPermissionHelper\ACTION_RECORD_EXPORT, ilAdvancedMDPermissionHelper\CONTEXT_RECORD, getPermissions(), ilUtil\sendFailure(), showFiles(), and showRecords().
|
protected |
Get and cache record objects.
protected
Definition at line 1694 of file class.ilAdvancedMDSettingsGUI.php.
References $records, $res, ilAdvancedMDRecord\_getRecords(), ilAdvancedMDPermissionHelper\ACTION_RECORD_EDIT, ilAdvancedMDPermissionHelper\ACTION_RECORD_EDIT_FIELDS, ilAdvancedMDPermissionHelper\ACTION_RECORD_EDIT_PROPERTY, ilAdvancedMDPermissionHelper\ACTION_RECORD_TOGGLE_ACTIVATION, ilAdvancedMDPermissionHelper\CONTEXT_RECORD, ilAdvancedMDRecord\getObjRecSelection(), ilAdvancedMDRecord\isFilteredByScope(), and ilAdvancedMDPermissionHelper\SUBACTION_RECORD_OBJECT_TYPES.
Referenced by showRecords(), and updateRecords().
|
protected |
Definition at line 92 of file class.ilAdvancedMDSettingsGUI.php.
References $permissions.
Referenced by deleteFields(), deleteRecords(), editFields(), exportRecords(), getSubstitutionFieldPermissions(), initFieldForm(), initForm(), initFormSubstitutions(), loadRecordFormData(), saveField(), showRecords(), updateField(), updateFields(), updateRecords(), and updateSubstitutions().
|
protected |
Definition at line 1318 of file class.ilAdvancedMDSettingsGUI.php.
References ilAdvancedMDPermissionHelper\ACTION_SUBSTITUTION_CATEGORY_EDIT_FIELD_PROPERTY, ilAdvancedMDPermissionHelper\ACTION_SUBSTITUTION_CATEGORY_SHOW_FIELD, ilAdvancedMDPermissionHelper\ACTION_SUBSTITUTION_COURSE_EDIT_FIELD_PROPERTY, ilAdvancedMDPermissionHelper\ACTION_SUBSTITUTION_COURSE_SHOW_FIELD, ilAdvancedMDPermissionHelper\ACTION_SUBSTITUTION_GROUP_EDIT_FIELD_PROPERTY, ilAdvancedMDPermissionHelper\ACTION_SUBSTITUTION_GROUP_SHOW_FIELD, ilAdvancedMDPermissionHelper\ACTION_SUBSTITUTION_IASS_EDIT_FIELD_PROPERTY, ilAdvancedMDPermissionHelper\ACTION_SUBSTITUTION_IASS_SHOW_FIELD, ilAdvancedMDPermissionHelper\ACTION_SUBSTITUTION_SESSION_EDIT_FIELD_PROPERTY, ilAdvancedMDPermissionHelper\ACTION_SUBSTITUTION_SESSION_SHOW_FIELD, ilAdvancedMDPermissionHelper\CONTEXT_SUBSTITUTION_CATEGORY, ilAdvancedMDPermissionHelper\CONTEXT_SUBSTITUTION_COURSE, ilAdvancedMDPermissionHelper\CONTEXT_SUBSTITUTION_GROUP, ilAdvancedMDPermissionHelper\CONTEXT_SUBSTITUTION_IASS, ilAdvancedMDPermissionHelper\CONTEXT_SUBSTITUTION_SESSION, getPermissions(), ilAdvancedMDPermissionHelper\SUBACTION_SUBSTITUTION_BOLD, and ilAdvancedMDPermissionHelper\SUBACTION_SUBSTITUTION_NEWLINE.
Referenced by initFormSubstitutions(), and updateSubstitutions().
ilAdvancedMDSettingsGUI::importRecord | ( | ) |
import xml file
public
Definition at line 929 of file class.ilAdvancedMDSettingsGUI.php.
References $parser, createRecord(), initImportForm(), ilAdvancedMDRecordParser\MODE_INSERT, ilAdvancedMDRecordParser\MODE_INSERT_VALIDATION, and ilUtil\sendFailure().
ilAdvancedMDSettingsGUI::importRecords | ( | ) |
Definition at line 888 of file class.ilAdvancedMDSettingsGUI.php.
References initImportForm().
|
protected |
init field form
protected
Definition at line 1129 of file class.ilAdvancedMDSettingsGUI.php.
References $form, $type, ilAdvancedMDFieldDefinition\addToFieldDefinitionForm(), ilAdvancedMDFieldDefinition\getFieldId(), getPermissions(), and ilAdvancedMDFieldDefinition\getTypeTitle().
Referenced by createField(), editField(), saveField(), and updateField().
|
protected |
Init Form.
protected
Definition at line 1160 of file class.ilAdvancedMDSettingsGUI.php.
References $GLOBALS, PHPMailer\PHPMailer\$options, $section, $t, $title, $type, ilAdvancedMDRecord\_getAssignableObjectTypes(), ilAdvancedMDPermissionHelper\ACTION_RECORD_EDIT_PROPERTY, ilAdvancedMDPermissionHelper\ACTION_RECORD_TOGGLE_ACTIVATION, ilAdvancedMDPermissionHelper\CONTEXT_RECORD, getPermissions(), ilCheckboxInputGUI\setChecked(), ilExplorerSelectInputGUI\setValue(), ilTextAreaInputGUI\setValue(), ilAdvancedMDPermissionHelper\SUBACTION_RECORD_DESCRIPTION, ilAdvancedMDPermissionHelper\SUBACTION_RECORD_OBJECT_TYPES, and ilAdvancedMDPermissionHelper\SUBACTION_RECORD_TITLE.
Referenced by createRecord(), editRecord(), and executeCommand().
|
protected |
init form table 'substitutions'
protected
Definition at line 1413 of file class.ilAdvancedMDSettingsGUI.php.
References $def, $DIC, $obj_type, $records, $section, $title, ilAdvancedMDRecord\_getAllRecordsByObjectType(), ilAdvancedMDSubstitution\_getInstanceByObjectType(), ilAdvancedMDRecord\_lookupTitle(), ilAdvancedMDPermissionHelper\ACTION_SUBSTITUTION_FIELD_POSITIONS, ilAdvancedMDPermissionHelper\ACTION_SUBSTITUTION_SHOW_DESCRIPTION, ilAdvancedMDPermissionHelper\ACTION_SUBSTITUTION_SHOW_FIELDNAMES, ilAdvancedMDPermissionHelper\CONTEXT_SUBSTITUTION, ilAdvancedMDFieldDefinition\getInstancesByObjType(), getPermissions(), getSubstitutionFieldPermissions(), ilNumberInputGUI\setSize(), and ilCheckboxInputGUI\setValue().
Referenced by showPresentation().
|
protected |
show import form
protected
Definition at line 900 of file class.ilAdvancedMDSettingsGUI.php.
References ilFileInputGUI\setSuffixes().
Referenced by importRecord(), and importRecords().
|
protected |
Init record object.
protected
Definition at line 1638 of file class.ilAdvancedMDSettingsGUI.php.
References $_GET, and ilAdvancedMDRecord\_getInstanceByRecordId().
Referenced by createRecord(), editFields(), editRecord(), executeCommand(), saveRecord(), and updateRecord().
|
protected |
load record form data
protected
Definition at line 1578 of file class.ilAdvancedMDSettingsGUI.php.
References $_POST, $ref_id, $t, ilAdvancedMDPermissionHelper\ACTION_RECORD_EDIT_PROPERTY, ilAdvancedMDPermissionHelper\ACTION_RECORD_TOGGLE_ACTIVATION, ilAdvancedMDPermissionHelper\CONTEXT_RECORD, getPermissions(), ilUtil\stripSlashes(), ilAdvancedMDPermissionHelper\SUBACTION_RECORD_DESCRIPTION, ilAdvancedMDPermissionHelper\SUBACTION_RECORD_OBJECT_TYPES, and ilAdvancedMDPermissionHelper\SUBACTION_RECORD_TITLE.
Referenced by saveRecord(), and updateRecord().
ilAdvancedMDSettingsGUI::saveField | ( | ) |
create field
public
Definition at line 1098 of file class.ilAdvancedMDSettingsGUI.php.
References $form, createField(), editFields(), ilAdvancedMDFieldDefinition\getInstance(), getPermissions(), and initFieldForm().
ilAdvancedMDSettingsGUI::saveRecord | ( | ) |
Save record.
public
Definition at line 981 of file class.ilAdvancedMDSettingsGUI.php.
References createRecord(), initRecordObject(), loadRecordFormData(), ilUtil\sendFailure(), and showRecords().
|
protected |
Set sub tabs.
protected
Definition at line 1661 of file class.ilAdvancedMDSettingsGUI.php.
References ilAdvancedMDRecord\_getAllRecordsByObjectType().
Referenced by executeCommand().
ilAdvancedMDSettingsGUI::showFiles | ( | ) |
show export files
public
Definition at line 354 of file class.ilAdvancedMDSettingsGUI.php.
References $files, and $GLOBALS.
Referenced by confirmDeleteFiles(), deleteFiles(), downloadFile(), and exportRecords().
ilAdvancedMDSettingsGUI::showPresentation | ( | ) |
Definition at line 192 of file class.ilAdvancedMDSettingsGUI.php.
References initFormSubstitutions(), and showRecords().
ilAdvancedMDSettingsGUI::showRecords | ( | ) |
show record list
public
Definition at line 137 of file class.ilAdvancedMDSettingsGUI.php.
References $DIC, ilAdvancedMDPermissionHelper\ACTION_MD_CREATE_RECORD, ilAdvancedMDPermissionHelper\ACTION_MD_IMPORT_RECORDS, ilAdvancedMDPermissionHelper\CONTEXT_MD, ilLinkButton\getInstance(), getParsedRecordObjects(), and getPermissions().
Referenced by confirmDeleteRecords(), deleteRecords(), exportRecords(), saveRecord(), showPresentation(), and updateRecord().
ilAdvancedMDSettingsGUI::updateField | ( | ) |
Update field.
public
Definition at line 1034 of file class.ilAdvancedMDSettingsGUI.php.
References $form, editField(), editFields(), ilAdvancedMDFieldDefinition\getInstance(), getPermissions(), initFieldForm(), and ilUtil\sendInfo().
ilAdvancedMDSettingsGUI::updateFields | ( | ) |
Update fields.
public
Definition at line 794 of file class.ilAdvancedMDSettingsGUI.php.
References $_GET, $_POST, ilAdvancedMDPermissionHelper\ACTION_FIELD_EDIT_PROPERTY, ilAdvancedMDPermissionHelper\ACTION_RECORD_FIELD_POSITIONS, ilAdvancedMDPermissionHelper\CONTEXT_FIELD, ilAdvancedMDPermissionHelper\CONTEXT_RECORD, editFields(), ilAdvancedMDFieldDefinition\getInstancesByRecordId(), getPermissions(), ilUtil\sendFailure(), and ilAdvancedMDPermissionHelper\SUBACTION_FIELD_SEARCHABLE.
ilAdvancedMDSettingsGUI::updateRecord | ( | ) |
Update record.
public
Definition at line 849 of file class.ilAdvancedMDSettingsGUI.php.
References $_GET, $_POST, editRecord(), initRecordObject(), loadRecordFormData(), ilUtil\sendFailure(), and showRecords().
ilAdvancedMDSettingsGUI::updateRecords | ( | ) |
Save records (assigned object typed)
public
Definition at line 550 of file class.ilAdvancedMDSettingsGUI.php.
References $_POST, $DIC, $i, $type, ilAdvancedMDRecord\_getInstanceByRecordId(), ilAdvancedMDPermissionHelper\ACTION_RECORD_EDIT_PROPERTY, ilAdvancedMDPermissionHelper\ACTION_RECORD_TOGGLE_ACTIVATION, ilAdvancedMDPermissionHelper\CONTEXT_RECORD, getParsedRecordObjects(), getPermissions(), ilAdvancedMDRecord\saveObjRecSelection(), ilUtil\stripSlashes(), and ilAdvancedMDPermissionHelper\SUBACTION_RECORD_OBJECT_TYPES.
ilAdvancedMDSettingsGUI::updateSubstitutions | ( | ) |
Update substitution.
public
Definition at line 209 of file class.ilAdvancedMDSettingsGUI.php.
References $_POST, $def, $DIC, $obj_type, ilAdvancedMDRecord\_getActivatedObjTypes(), ilAdvancedMDSubstitution\_getInstanceByObjectType(), ilAdvancedMDPermissionHelper\ACTION_SUBSTITUTION_FIELD_POSITIONS, ilAdvancedMDPermissionHelper\ACTION_SUBSTITUTION_SHOW_DESCRIPTION, ilAdvancedMDPermissionHelper\ACTION_SUBSTITUTION_SHOW_FIELDNAMES, ilAdvancedMDPermissionHelper\CONTEXT_SUBSTITUTION, ilAdvancedMDFieldDefinition\getInstancesByObjType(), getPermissions(), getSubstitutionFieldPermissions(), and ilUtil\sortArray().
|
protected |
Definition at line 30 of file class.ilAdvancedMDSettingsGUI.php.
|
protected |
Definition at line 28 of file class.ilAdvancedMDSettingsGUI.php.
Referenced by __construct().
|
private |
Definition at line 41 of file class.ilAdvancedMDSettingsGUI.php.
|
private |
Definition at line 25 of file class.ilAdvancedMDSettingsGUI.php.
|
protected |
Definition at line 34 of file class.ilAdvancedMDSettingsGUI.php.
|
protected |
Definition at line 35 of file class.ilAdvancedMDSettingsGUI.php.
Referenced by initFormSubstitutions(), and updateSubstitutions().
|
protected |
Definition at line 32 of file class.ilAdvancedMDSettingsGUI.php.
Referenced by getPermissions().
|
protected |
Definition at line 33 of file class.ilAdvancedMDSettingsGUI.php.
Referenced by loadRecordFormData().
|
protected |
Definition at line 36 of file class.ilAdvancedMDSettingsGUI.php.
|
protected |
Definition at line 31 of file class.ilAdvancedMDSettingsGUI.php.
|
protected |
Definition at line 29 of file class.ilAdvancedMDSettingsGUI.php.
Referenced by __construct().
const ilAdvancedMDSettingsGUI::MODE_ADMINISTRATION = 1 |
Definition at line 18 of file class.ilAdvancedMDSettingsGUI.php.
const ilAdvancedMDSettingsGUI::MODE_OBJECT = 2 |
Definition at line 19 of file class.ilAdvancedMDSettingsGUI.php.