ILIAS
Release_5_0_x_branch Revision 61816
|
Public Member Functions | |
__construct () | |
Constructor. | |
executeCommand () | |
Execute command. | |
showRecords () | |
show record list | |
showPresentation () | |
updateSubstitutions () | |
Update substitution. | |
exportRecords () | |
Export records. | |
showFiles () | |
show export files | |
downloadFile () | |
Download XML file. | |
confirmDeleteFiles () | |
confirm delete files | |
deleteFiles () | |
Delete files. | |
confirmDeleteRecords () | |
Confirm delete. | |
deleteRecords () | |
Permanently delete records. | |
updateRecords () | |
Save records (assigned object typed) | |
confirmDeleteFields () | |
show delete fields confirmation screen | |
deleteFields () | |
delete fields | |
editRecord () | |
Edit one record. | |
editFields () | |
updateFields () | |
Update fields. | |
updateRecord () | |
Update record. | |
createRecord () | |
Show. | |
importRecords () | |
importRecord () | |
import xml file | |
saveRecord () | |
Save record. | |
editField (ilPropertyFormGUI $a_form=null) | |
Edit field. | |
updateField () | |
Update field. | |
createField (ilPropertyFormGUI $a_form=null) | |
Show field type selection. | |
saveField () | |
create field |
Protected Member Functions | |
getPermissions () | |
initImportForm () | |
show import form | |
initFieldForm (ilAdvancedMDFieldDefinition $a_definition) | |
init field form | |
initForm ($a_mode) | |
Init Form. | |
getSubstitutionFieldPermissions ($a_obj_type, $a_field_id) | |
initFormSubstitutions () | |
init form table 'substitutions' | |
loadRecordFormData () | |
load record form data | |
initRecordObject () | |
Init record object. | |
setSubTabs () | |
Set sub tabs. | |
getRecordObjects () | |
Get and cache record objects. |
Protected Attributes | |
$lng | |
$tpl | |
$ctrl | |
$tabs | |
$permissions |
Definition at line 16 of file class.ilAdvancedMDSettingsGUI.php.
ilAdvancedMDSettingsGUI::__construct | ( | ) |
Constructor.
public
Definition at line 30 of file class.ilAdvancedMDSettingsGUI.php.
References $ilCtrl, $lng, $tpl, and ilClaimingPermissionHelper\getInstance().
ilAdvancedMDSettingsGUI::confirmDeleteFields | ( | ) |
show delete fields confirmation screen
public
Definition at line 545 of file class.ilAdvancedMDSettingsGUI.php.
References $_POST, editFields(), ilAdvancedMDFieldDefinition\getInstance(), and ilUtil\sendFailure().
ilAdvancedMDSettingsGUI::confirmDeleteFiles | ( | ) |
confirm delete files
public
Definition at line 356 of file class.ilAdvancedMDSettingsGUI.php.
References $_POST, ilUtil\sendFailure(), and showFiles().
ilAdvancedMDSettingsGUI::confirmDeleteRecords | ( | ) |
Confirm delete.
public
Definition at line 421 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 990 of file class.ilAdvancedMDSettingsGUI.php.
References $_REQUEST, editFields(), ilAdvancedMDFieldDefinition\getInstance(), and initFieldForm().
Referenced by saveField().
ilAdvancedMDSettingsGUI::createRecord | ( | ) |
Show.
public
Definition at line 791 of file class.ilAdvancedMDSettingsGUI.php.
References initForm(), and initRecordObject().
Referenced by importRecord(), and saveRecord().
ilAdvancedMDSettingsGUI::deleteFields | ( | ) |
delete fields
public
Definition at line 581 of file class.ilAdvancedMDSettingsGUI.php.
References $_POST, ilAdvancedMDPermissionHelper\ACTION_FIELD_DELETE, ilAdvancedMDPermissionHelper\CONTEXT_FIELD, editFields(), ilAdvancedMDFieldDefinition\getInstance(), getPermissions(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
ilAdvancedMDSettingsGUI::deleteFiles | ( | ) |
Delete files.
public
Definition at line 395 of file class.ilAdvancedMDSettingsGUI.php.
References $_POST, ilUtil\sendFailure(), ilUtil\sendSuccess(), and showFiles().
ilAdvancedMDSettingsGUI::deleteRecords | ( | ) |
Permanently delete records.
public
Definition at line 454 of file class.ilAdvancedMDSettingsGUI.php.
References $_POST, ilAdvancedMDRecord\_getInstanceByRecordId(), ilAdvancedMDPermissionHelper\ACTION_RECORD_DELETE, ilAdvancedMDPermissionHelper\CONTEXT_RECORD, getPermissions(), ilUtil\sendFailure(), ilUtil\sendSuccess(), and showRecords().
ilAdvancedMDSettingsGUI::downloadFile | ( | ) |
Download XML file.
public
Definition at line 334 of file class.ilAdvancedMDSettingsGUI.php.
References $_POST, ilUtil\deliverFile(), ilUtil\sendFailure(), and showFiles().
ilAdvancedMDSettingsGUI::editField | ( | ilPropertyFormGUI | $a_form = null | ) |
Edit field.
public
Definition at line 917 of file class.ilAdvancedMDSettingsGUI.php.
References $_REQUEST, editFields(), ilAdvancedMDFieldDefinition\getInstance(), and initFieldForm().
Referenced by updateField().
ilAdvancedMDSettingsGUI::editFields | ( | ) |
Definition at line 636 of file class.ilAdvancedMDSettingsGUI.php.
References $options, ilAdvancedMDPermissionHelper\ACTION_RECORD_CREATE_FIELD, ilAdvancedMDPermissionHelper\ACTION_RECORD_FIELD_POSITIONS, ilAdvancedMDPermissionHelper\CONTEXT_RECORD, ilSubmitButton\getInstance(), ilAdvancedMDFieldDefinition\getInstance(), ilAdvancedMDFieldDefinition\getInstancesByRecordId(), getPermissions(), ilAdvancedMDFieldDefinition\getValidTypes(), and initRecordObject().
Referenced by confirmDeleteFields(), createField(), deleteFields(), editField(), saveField(), updateField(), and updateFields().
ilAdvancedMDSettingsGUI::editRecord | ( | ) |
Edit one record.
public
Definition at line 627 of file class.ilAdvancedMDSettingsGUI.php.
References initForm(), and initRecordObject().
Referenced by updateRecord().
ilAdvancedMDSettingsGUI::executeCommand | ( | ) |
Execute command.
public
Definition at line 55 of file class.ilAdvancedMDSettingsGUI.php.
References $cmd, and setSubTabs().
ilAdvancedMDSettingsGUI::exportRecords | ( | ) |
Export records.
public
Definition at line 260 of file class.ilAdvancedMDSettingsGUI.php.
References $_POST, ilAdvancedMDRecord\_getInstanceByRecordId(), ilAdvancedMDPermissionHelper\ACTION_RECORD_EXPORT, ilAdvancedMDPermissionHelper\CONTEXT_RECORD, getPermissions(), ilUtil\sendFailure(), ilUtil\sendSuccess(), showFiles(), and showRecords().
|
protected |
Definition at line 43 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 |
Get and cache record objects.
protected
Definition at line 1492 of file class.ilAdvancedMDSettingsGUI.php.
References ilAdvancedMDRecord\_getRecords().
Referenced by showRecords(), and updateRecords().
|
protected |
Definition at line 1184 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\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 841 of file class.ilAdvancedMDSettingsGUI.php.
References createRecord(), initImportForm(), ilAdvancedMDRecordParser\MODE_INSERT, ilAdvancedMDRecordParser\MODE_INSERT_VALIDATION, ilUtil\sendFailure(), ilUtil\sendSuccess(), and ilAdvancedMDRecordParser\setMode().
ilAdvancedMDSettingsGUI::importRecords | ( | ) |
Definition at line 799 of file class.ilAdvancedMDSettingsGUI.php.
References initImportForm().
|
protected |
init field form
protected
Definition at line 1051 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 1085 of file class.ilAdvancedMDSettingsGUI.php.
References $section, $t, ilAdvancedMDRecord\_getAssignableObjectTypes(), ilAdvancedMDPermissionHelper\ACTION_RECORD_EDIT_PROPERTY, ilAdvancedMDPermissionHelper\ACTION_RECORD_TOGGLE_ACTIVATION, ilAdvancedMDPermissionHelper\CONTEXT_RECORD, getPermissions(), ilCheckboxInputGUI\setChecked(), ilTextInputGUI\setValue(), 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 1229 of file class.ilAdvancedMDSettingsGUI.php.
References $records, $section, 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(), and ilCheckboxInputGUI\setValue().
Referenced by showPresentation().
|
protected |
show import form
protected
Definition at line 811 of file class.ilAdvancedMDSettingsGUI.php.
References $file.
Referenced by importRecord(), and importRecords().
|
protected |
Init record object.
protected
Definition at line 1446 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 1396 of file class.ilAdvancedMDSettingsGUI.php.
References $_POST, $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 1016 of file class.ilAdvancedMDSettingsGUI.php.
References $_REQUEST, $ilErr, createField(), editFields(), ilAdvancedMDFieldDefinition\getInstance(), getPermissions(), initFieldForm(), and ilUtil\sendSuccess().
ilAdvancedMDSettingsGUI::saveRecord | ( | ) |
Save record.
public
Definition at line 893 of file class.ilAdvancedMDSettingsGUI.php.
References $ilErr, createRecord(), initRecordObject(), loadRecordFormData(), ilUtil\sendFailure(), ilUtil\sendSuccess(), and showRecords().
|
protected |
Set sub tabs.
protected
Definition at line 1464 of file class.ilAdvancedMDSettingsGUI.php.
References ilAdvancedMDRecord\_getAllRecordsByObjectType().
Referenced by executeCommand().
ilAdvancedMDSettingsGUI::showFiles | ( | ) |
show export files
public
Definition at line 307 of file class.ilAdvancedMDSettingsGUI.php.
Referenced by confirmDeleteFiles(), deleteFiles(), downloadFile(), and exportRecords().
ilAdvancedMDSettingsGUI::showPresentation | ( | ) |
Definition at line 134 of file class.ilAdvancedMDSettingsGUI.php.
References initFormSubstitutions(), and showRecords().
ilAdvancedMDSettingsGUI::showRecords | ( | ) |
show record list
public
Definition at line 79 of file class.ilAdvancedMDSettingsGUI.php.
References $_REQUEST, ilAdvancedMDPermissionHelper\ACTION_MD_CREATE_RECORD, ilAdvancedMDPermissionHelper\ACTION_MD_IMPORT_RECORDS, ilAdvancedMDPermissionHelper\CONTEXT_MD, ilLinkButton\getInstance(), getPermissions(), and getRecordObjects().
Referenced by confirmDeleteRecords(), deleteRecords(), exportRecords(), saveRecord(), showPresentation(), and updateRecord().
ilAdvancedMDSettingsGUI::updateField | ( | ) |
Update field.
public
Definition at line 941 of file class.ilAdvancedMDSettingsGUI.php.
References $_REQUEST, $ilErr, editField(), editFields(), ilAdvancedMDFieldDefinition\getInstance(), getPermissions(), initFieldForm(), ilUtil\sendInfo(), and ilUtil\sendSuccess().
ilAdvancedMDSettingsGUI::updateFields | ( | ) |
Update fields.
public
Definition at line 699 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 758 of file class.ilAdvancedMDSettingsGUI.php.
References $_GET, $ilErr, editRecord(), initRecordObject(), loadRecordFormData(), ilUtil\sendFailure(), ilUtil\sendSuccess(), and showRecords().
ilAdvancedMDSettingsGUI::updateRecords | ( | ) |
Save records (assigned object typed)
public
Definition at line 498 of file class.ilAdvancedMDSettingsGUI.php.
References $_POST, $t, ilAdvancedMDPermissionHelper\ACTION_RECORD_EDIT_PROPERTY, ilAdvancedMDPermissionHelper\ACTION_RECORD_TOGGLE_ACTIVATION, ilAdvancedMDPermissionHelper\CONTEXT_RECORD, getPermissions(), getRecordObjects(), ilUtil\sendSuccess(), ilUtil\stripSlashes(), and ilAdvancedMDPermissionHelper\SUBACTION_RECORD_OBJECT_TYPES.
ilAdvancedMDSettingsGUI::updateSubstitutions | ( | ) |
Update substitution.
public
Definition at line 153 of file class.ilAdvancedMDSettingsGUI.php.
References $_POST, 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(), 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 22 of file class.ilAdvancedMDSettingsGUI.php.
Referenced by getPermissions().
|
protected |
Definition at line 21 of file class.ilAdvancedMDSettingsGUI.php.
|
protected |
Definition at line 19 of file class.ilAdvancedMDSettingsGUI.php.
Referenced by __construct().