ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Public Member Functions | |
__construct ($a_obj_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... | |
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 | |
$obj_id | |
$obj_type | |
$sub_type | |
Definition at line 16 of file class.ilAdvancedMDSettingsGUI.php.
ilAdvancedMDSettingsGUI::__construct | ( | $a_obj_id = null , |
|
$a_obj_type = null , |
|||
$a_sub_type = null |
|||
) |
Constructor.
public
Definition at line 33 of file class.ilAdvancedMDSettingsGUI.php.
References $ilCtrl, $lng, $tpl, ilObject\_lookupType(), and ilClaimingPermissionHelper\getInstance().
ilAdvancedMDSettingsGUI::confirmDeleteFields | ( | ) |
show delete fields confirmation screen
public
Definition at line 617 of file class.ilAdvancedMDSettingsGUI.php.
References $_POST, editFields(), ilAdvancedMDFieldDefinition\getInstance(), and ilUtil\sendFailure().
ilAdvancedMDSettingsGUI::confirmDeleteFiles | ( | ) |
confirm delete files
public
Definition at line 386 of file class.ilAdvancedMDSettingsGUI.php.
References $_POST, $files, $info, ilUtil\sendFailure(), and showFiles().
ilAdvancedMDSettingsGUI::confirmDeleteRecords | ( | ) |
Confirm delete.
public
Definition at line 451 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 1085 of file class.ilAdvancedMDSettingsGUI.php.
References editFields(), ilAdvancedMDFieldDefinition\getInstance(), and initFieldForm().
Referenced by saveField().
ilAdvancedMDSettingsGUI::createRecord | ( | ) |
Show.
public
Definition at line 873 of file class.ilAdvancedMDSettingsGUI.php.
References initForm(), and initRecordObject().
Referenced by importRecord(), and saveRecord().
ilAdvancedMDSettingsGUI::deleteFields | ( | ) |
delete fields
public
Definition at line 653 of file class.ilAdvancedMDSettingsGUI.php.
References $_POST, ilAdvancedMDPermissionHelper\ACTION_FIELD_DELETE, array, ilAdvancedMDPermissionHelper\CONTEXT_FIELD, editFields(), ilAdvancedMDFieldDefinition\getInstance(), getPermissions(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
ilAdvancedMDSettingsGUI::deleteFiles | ( | ) |
Delete files.
public
Definition at line 425 of file class.ilAdvancedMDSettingsGUI.php.
References $_POST, $files, ilUtil\sendFailure(), ilUtil\sendSuccess(), and showFiles().
ilAdvancedMDSettingsGUI::deleteRecords | ( | ) |
Permanently delete records.
public
Definition at line 484 of file class.ilAdvancedMDSettingsGUI.php.
References $_POST, ilAdvancedMDRecord\_getInstanceByRecordId(), ilAdvancedMDPermissionHelper\ACTION_RECORD_DELETE, array, ilAdvancedMDPermissionHelper\CONTEXT_RECORD, getPermissions(), ilUtil\sendFailure(), ilUtil\sendSuccess(), and showRecords().
ilAdvancedMDSettingsGUI::downloadFile | ( | ) |
Download XML file.
public
Definition at line 364 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 1014 of file class.ilAdvancedMDSettingsGUI.php.
References editFields(), ilAdvancedMDFieldDefinition\getInstance(), and initFieldForm().
Referenced by updateField().
ilAdvancedMDSettingsGUI::editFields | ( | ) |
Definition at line 708 of file class.ilAdvancedMDSettingsGUI.php.
References $options, ilAdvancedMDPermissionHelper\ACTION_RECORD_CREATE_FIELD, ilAdvancedMDPermissionHelper\ACTION_RECORD_FIELD_POSITIONS, array, 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 699 of file class.ilAdvancedMDSettingsGUI.php.
References initForm(), and initRecordObject().
Referenced by updateRecord().
ilAdvancedMDSettingsGUI::executeCommand | ( | ) |
Execute command.
public
Definition at line 70 of file class.ilAdvancedMDSettingsGUI.php.
References $cmd, and setSubTabs().
ilAdvancedMDSettingsGUI::exportRecords | ( | ) |
Export records.
public
Definition at line 290 of file class.ilAdvancedMDSettingsGUI.php.
References $_POST, ilAdvancedMDRecord\_getInstanceByRecordId(), ilAdvancedMDPermissionHelper\ACTION_RECORD_EXPORT, array, ilAdvancedMDPermissionHelper\CONTEXT_RECORD, getPermissions(), ilUtil\sendFailure(), ilUtil\sendSuccess(), showFiles(), and showRecords().
|
protected |
Get and cache record objects.
protected
Definition at line 1651 of file class.ilAdvancedMDSettingsGUI.php.
References $res, ilAdvancedMDRecord\_getRecords(), ilAdvancedMDPermissionHelper\ACTION_RECORD_EDIT, ilAdvancedMDPermissionHelper\ACTION_RECORD_EDIT_FIELDS, ilAdvancedMDPermissionHelper\ACTION_RECORD_EDIT_PROPERTY, ilAdvancedMDPermissionHelper\ACTION_RECORD_TOGGLE_ACTIVATION, array, ilAdvancedMDPermissionHelper\CONTEXT_RECORD, ilAdvancedMDRecord\getObjRecSelection(), and ilAdvancedMDPermissionHelper\SUBACTION_RECORD_OBJECT_TYPES.
Referenced by showRecords(), and updateRecords().
|
protected |
Definition at line 58 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 1321 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, array, ilAdvancedMDPermissionHelper\CONTEXT_SUBSTITUTION_CATEGORY, ilAdvancedMDPermissionHelper\CONTEXT_SUBSTITUTION_COURSE, getPermissions(), ilAdvancedMDPermissionHelper\SUBACTION_SUBSTITUTION_BOLD, and ilAdvancedMDPermissionHelper\SUBACTION_SUBSTITUTION_NEWLINE.
Referenced by initFormSubstitutions(), and updateSubstitutions().
ilAdvancedMDSettingsGUI::importRecord | ( | ) |
import xml file
public
Definition at line 923 of file class.ilAdvancedMDSettingsGUI.php.
References $parser, createRecord(), initImportForm(), ilAdvancedMDRecordParser\MODE_INSERT, ilAdvancedMDRecordParser\MODE_INSERT_VALIDATION, ilUtil\sendFailure(), and ilUtil\sendSuccess().
ilAdvancedMDSettingsGUI::importRecords | ( | ) |
Definition at line 881 of file class.ilAdvancedMDSettingsGUI.php.
References initImportForm().
|
protected |
init field form
protected
Definition at line 1144 of file class.ilAdvancedMDSettingsGUI.php.
References ilAdvancedMDFieldDefinition\addToFieldDefinitionForm(), ilAdvancedMDFieldDefinition\getFieldId(), getPermissions(), ilAdvancedMDFieldDefinition\getTypeTitle(), and ilNonEditableValueGUI\setValue().
Referenced by createField(), editField(), saveField(), and updateField().
|
protected |
Init Form.
protected
Definition at line 1178 of file class.ilAdvancedMDSettingsGUI.php.
References $options, $section, $t, $title, ilAdvancedMDRecord\_getAssignableObjectTypes(), ilAdvancedMDPermissionHelper\ACTION_RECORD_EDIT_PROPERTY, ilAdvancedMDPermissionHelper\ACTION_RECORD_TOGGLE_ACTIVATION, array, ilAdvancedMDPermissionHelper\CONTEXT_RECORD, getPermissions(), ilCheckboxInputGUI\setChecked(), ilTextAreaInputGUI\setValue(), ilAdvancedMDPermissionHelper\SUBACTION_RECORD_DESCRIPTION, ilAdvancedMDPermissionHelper\SUBACTION_RECORD_OBJECT_TYPES, and ilAdvancedMDPermissionHelper\SUBACTION_RECORD_TITLE.
Referenced by createRecord(), and editRecord().
|
protected |
init form table 'substitutions'
protected
Definition at line 1366 of file class.ilAdvancedMDSettingsGUI.php.
References $counter, $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, array, ilAdvancedMDPermissionHelper\CONTEXT_SUBSTITUTION, ilAdvancedMDFieldDefinition\getInstancesByObjType(), getPermissions(), getSubstitutionFieldPermissions(), and ilCheckboxInputGUI\setValue().
Referenced by showPresentation().
|
protected |
show import form
protected
Definition at line 893 of file class.ilAdvancedMDSettingsGUI.php.
Referenced by importRecord(), and importRecords().
|
protected |
Init record object.
protected
Definition at line 1598 of file class.ilAdvancedMDSettingsGUI.php.
References $_GET, and ilAdvancedMDRecord\_getInstanceByRecordId().
Referenced by createRecord(), editFields(), editRecord(), saveRecord(), and updateRecord().
|
protected |
load record form data
protected
Definition at line 1540 of file class.ilAdvancedMDSettingsGUI.php.
References $_POST, $t, ilAdvancedMDPermissionHelper\ACTION_RECORD_EDIT_PROPERTY, ilAdvancedMDPermissionHelper\ACTION_RECORD_TOGGLE_ACTIVATION, array, 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 1111 of file class.ilAdvancedMDSettingsGUI.php.
References createField(), editFields(), ilAdvancedMDFieldDefinition\getInstance(), getPermissions(), initFieldForm(), and ilUtil\sendSuccess().
ilAdvancedMDSettingsGUI::saveRecord | ( | ) |
Save record.
public
Definition at line 981 of file class.ilAdvancedMDSettingsGUI.php.
References array, createRecord(), initRecordObject(), loadRecordFormData(), ilUtil\sendFailure(), ilUtil\sendSuccess(), and showRecords().
|
protected |
Set sub tabs.
protected
Definition at line 1623 of file class.ilAdvancedMDSettingsGUI.php.
References ilAdvancedMDRecord\_getAllRecordsByObjectType().
Referenced by executeCommand().
ilAdvancedMDSettingsGUI::showFiles | ( | ) |
show export files
public
Definition at line 337 of file class.ilAdvancedMDSettingsGUI.php.
References $files.
Referenced by confirmDeleteFiles(), deleteFiles(), downloadFile(), and exportRecords().
ilAdvancedMDSettingsGUI::showPresentation | ( | ) |
Definition at line 157 of file class.ilAdvancedMDSettingsGUI.php.
References initFormSubstitutions(), and showRecords().
ilAdvancedMDSettingsGUI::showRecords | ( | ) |
show record list
public
Definition at line 98 of file class.ilAdvancedMDSettingsGUI.php.
References ilAdvancedMDPermissionHelper\ACTION_MD_CREATE_RECORD, ilAdvancedMDPermissionHelper\ACTION_MD_IMPORT_RECORDS, array, 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 1038 of file class.ilAdvancedMDSettingsGUI.php.
References editField(), editFields(), ilAdvancedMDFieldDefinition\getInstance(), getPermissions(), initFieldForm(), ilUtil\sendInfo(), and ilUtil\sendSuccess().
ilAdvancedMDSettingsGUI::updateFields | ( | ) |
Update fields.
public
Definition at line 783 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(), ilUtil\sendSuccess(), and ilAdvancedMDPermissionHelper\SUBACTION_FIELD_SEARCHABLE.
ilAdvancedMDSettingsGUI::updateRecord | ( | ) |
Update record.
public
Definition at line 842 of file class.ilAdvancedMDSettingsGUI.php.
References $_GET, editRecord(), initRecordObject(), loadRecordFormData(), ilUtil\sendFailure(), ilUtil\sendSuccess(), and showRecords().
ilAdvancedMDSettingsGUI::updateRecords | ( | ) |
Save records (assigned object typed)
public
Definition at line 538 of file class.ilAdvancedMDSettingsGUI.php.
References $_POST, ilAdvancedMDRecord\_getInstanceByRecordId(), ilAdvancedMDPermissionHelper\ACTION_RECORD_EDIT_PROPERTY, ilAdvancedMDPermissionHelper\ACTION_RECORD_TOGGLE_ACTIVATION, array, ilAdvancedMDPermissionHelper\CONTEXT_RECORD, getParsedRecordObjects(), getPermissions(), ilAdvancedMDRecord\saveObjRecSelection(), ilUtil\sendSuccess(), ilUtil\stripSlashes(), and ilAdvancedMDPermissionHelper\SUBACTION_RECORD_OBJECT_TYPES.
ilAdvancedMDSettingsGUI::updateSubstitutions | ( | ) |
Update substitution.
public
Definition at line 176 of file class.ilAdvancedMDSettingsGUI.php.
References $_POST, $counter, $obj_type, $old, ilAdvancedMDRecord\_getActivatedObjTypes(), ilAdvancedMDSubstitution\_getInstanceByObjectType(), ilAdvancedMDPermissionHelper\ACTION_SUBSTITUTION_FIELD_POSITIONS, ilAdvancedMDPermissionHelper\ACTION_SUBSTITUTION_SHOW_DESCRIPTION, ilAdvancedMDPermissionHelper\ACTION_SUBSTITUTION_SHOW_FIELDNAMES, array, ilAdvancedMDPermissionHelper\CONTEXT_SUBSTITUTION, ilAdvancedMDFieldDefinition\getInstancesByObjType(), getPermissions(), getSubstitutionFieldPermissions(), ilUtil\sendSuccess(), and ilUtil\sortArray().
|
protected |
Definition at line 20 of file class.ilAdvancedMDSettingsGUI.php.
|
protected |
Definition at line 18 of file class.ilAdvancedMDSettingsGUI.php.
Referenced by __construct().
|
protected |
Definition at line 23 of file class.ilAdvancedMDSettingsGUI.php.
|
protected |
Definition at line 24 of file class.ilAdvancedMDSettingsGUI.php.
Referenced by initFormSubstitutions(), and updateSubstitutions().
|
protected |
Definition at line 22 of file class.ilAdvancedMDSettingsGUI.php.
Referenced by getPermissions().
|
protected |
Definition at line 25 of file class.ilAdvancedMDSettingsGUI.php.
|
protected |
Definition at line 21 of file class.ilAdvancedMDSettingsGUI.php.
|
protected |
Definition at line 19 of file class.ilAdvancedMDSettingsGUI.php.
Referenced by __construct().