|
ILIAS
release_8 Revision v8.24
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Inheritance diagram for ilDclSelectionFieldModel:
Collaboration diagram for ilDclSelectionFieldModel:Public Member Functions | |
| getValidFieldProperties () | |
| Returns all valid properties for a field-type. More... | |
| getRecordQueryFilterObject ( $filter_value="", ?ilDclBaseFieldModel $sort_field=null) | |
| Returns a query-object for building the record-loader-sql-query. More... | |
| isMulti () | |
| checkFieldCreationInput (ilPropertyFormGUI $form) | |
| Checks input of specific fields befor saving. More... | |
| storePropertiesFromForm (ilPropertyFormGUI $form) | |
| called when saving the 'edit field' form More... | |
| fillPropertiesForm (ilPropertyFormGUI &$form) | |
| setProperty (string $key, $value) | |
| reorderExistingValues () | |
| sorts record field values by the new order More... | |
| getProperty (string $key) | |
| getRecordQuerySortObject (string $direction="asc", bool $sort_by_status=false) | |
| Returns a query-object for building the record-loader-sql-query. More... | |
| cloneProperties (ilDclBaseFieldModel $originalField) | |
| doDelete () | |
| Remove field and properties. More... | |
| isConfirmationRequired (ilPropertyFormGUI $form) | |
| called by ilDclFieldEditGUI when updating field properties if you overwrite this method, remember to also overwrite getConfirmationGUI More... | |
| getConfirmationGUI (ilPropertyFormGUI $form) | |
| called by ilDclFieldEditGUI if isConfirmationRequired returns true More... | |
Public Member Functions inherited from ilDclBaseFieldModel | |
| __construct (int $a_id=0) | |
| setId ($a_id) | |
| Set field id. More... | |
| getId () | |
| Get field id. More... | |
| setTableId (int $a_id) | |
| Set table id. More... | |
| getTableId () | |
| Get table id. More... | |
| setTitle (string $a_title) | |
| Set title. More... | |
| getTitle () | |
| Get title. More... | |
| setDescription (string $a_desc) | |
| Set description. More... | |
| getDescription () | |
| Get description. More... | |
| setDatatypeId (int $a_id) | |
| Set datatype id. More... | |
| getDatatypeId () | |
| Get datatype_id. More... | |
| isUnique () | |
| setUnique (?bool $unique) | |
| getDatatype () | |
| getDatatypeTitle () | |
| getPresentationTitle () | |
| getPresentationDescription () | |
| getStorageLocation () | |
| Get storage location for the model. More... | |
| getExportable () | |
| toArray () | |
| isStandardField () | |
| doRead () | |
| buildFromDBRecord (array $rec) | |
| Builds model from db record. More... | |
| doCreate () | |
| doUpdate () | |
| updateProperties () | |
| Update properties of this field in Database. More... | |
| doDelete () | |
| Remove field and properties. More... | |
| getViewSettings () | |
| getViewSetting (int $tableview_id) | |
| getOrder () | |
| setOrder (string $order) | |
| hasProperty (string $key) | |
| Checks if a certain property for a field is set. More... | |
| getProperty (string $key) | |
| Returns a certain property of a field. More... | |
| getPropertyInstance (string $key) | |
| Return ActiveRecord of property. More... | |
| setProperty (string $key, $value) | |
| Set a property for a field (does not save) More... | |
| getValidFieldProperties () | |
| Returns all valid properties for a field-type. More... | |
| checkValidityFromForm (ilPropertyFormGUI &$form, ?int $record_id=null) | |
| checkValidity ($value, ?int $record_id=null) | |
| Check if input is valid. More... | |
| cloneStructure (int $original_id) | |
| afterClone (array $records) | |
| cloneProperties (ilDclBaseFieldModel $originalField) | |
| setExportable (bool $exportable) | |
| allowFilterInListView () | |
| getRecordQuerySortObject (string $direction="asc", bool $sort_by_status=false) | |
| Returns a query-object for building the record-loader-sql-query. More... | |
| getRecordQueryFilterObject ( $filter_value="", ?ilDclBaseFieldModel $sort_field=null) | |
| Returns a query-object for building the record-loader-sql-query. More... | |
| getSortField () | |
| Returns the sort-field id. More... | |
| hasNumericSorting () | |
| Set to true, when the sorting should be handled numerical. More... | |
| checkFieldCreationInput (ilPropertyFormGUI $form) | |
| Checks input of specific fields befor saving. More... | |
| getStorageLocationOverride () | |
| setStorageLocationOverride (?int $storage_location_override) | |
| fillHeaderExcel (ilExcel $worksheet, int &$row, int &$col) | |
| checkTitlesForImport (array &$titles, array &$import_fields) | |
| storePropertiesFromForm (ilPropertyFormGUI $form) | |
| called when saving the 'edit field' form More... | |
| fillPropertiesForm (ilPropertyFormGUI &$form) | |
| called to fill the 'edit field' form More... | |
| isConfirmationRequired (ilPropertyFormGUI $form) | |
| called by ilDclFieldEditGUI when updating field properties if you overwrite this method, remember to also overwrite getConfirmationGUI More... | |
| getConfirmationGUI (ilPropertyFormGUI $form) | |
| called by ilDclFieldEditGUI if isConfirmationRequired returns true More... | |
Data Fields | |
| const | SELECTION_TYPE_SINGLE = 'selection_type_single' |
| const | SELECTION_TYPE_MULTI = 'selection_type_multi' |
| const | SELECTION_TYPE_COMBOBOX = 'selection_type_combobox' |
| const | PROP_SELECTION_TYPE = '' |
| const | PROP_SELECTION_OPTIONS = '' |
Data Fields inherited from ilDclBaseFieldModel | |
| const | PROP_LENGTH = "lenght" |
| General properties. More... | |
| const | PROP_REGEX = "regex" |
| const | PROP_REFERENCE = "table_id" |
| const | PROP_URL = "url" |
| const | PROP_TEXTAREA = "text_area" |
| const | PROP_REFERENCE_LINK = "reference_link" |
| const | PROP_WIDTH = "width" |
| const | PROP_HEIGHT = "height" |
| const | PROP_LEARNING_PROGRESS = "learning_progress" |
| const | PROP_ILIAS_REFERENCE_LINK = "ILIAS_reference_link" |
| const | PROP_N_REFERENCE = "multiple_selection" |
| const | PROP_FORMULA_EXPRESSION = "expression" |
| const | PROP_DISPLAY_COPY_LINK_ACTION_MENU = "display_action_menu" |
| const | PROP_LINK_DETAIL_PAGE_TEXT = "link_detail_page_text" |
| const | PROP_LINK_DETAIL_PAGE_MOB = "link_detail_page_mob" |
| const | PROP_SUPPORTED_FILE_TYPES = "supported_file_types" |
| const | PROP_PLUGIN_HOOK_NAME = "plugin_hook_name" |
| const | EDIT_VIEW = 2 |
| const | EXPORTABLE_VIEW = 4 |
Protected Member Functions | |
| multiPropertyChanged (bool $is_multi_now) | |
| changes the values of all record fields, since the property "multi" has changed More... | |
Protected Member Functions inherited from ilDclBaseFieldModel | |
| loadDatatype () | |
| Load datatype for model. More... | |
| loadTableFieldSetting () | |
| loadTableFieldSetting More... | |
| addToTableViews () | |
| create ilDclTableViewFieldSettings for this field in each tableview More... | |
| updateTableFieldSetting () | |
| update exportable and fieldorder More... | |
| loadProperties () | |
| Get all properties of a field. More... | |
| normalizeValue ($value) | |
Additional Inherited Members | |
Static Public Member Functions inherited from ilDclBaseFieldModel | |
| static | _getTitleInvalidChars (bool $a_as_regex=true) |
| All valid chars for filed titles. More... | |
| static | _getFieldIdByTitle (string $title, int $table_id) |
Protected Attributes inherited from ilDclBaseFieldModel | |
| string | $id = "" |
| int | $table_id = 0 |
| string | $title = "" |
| string | $description = "" |
| int | $datatypeId = 0 |
| int | $order = null |
| bool | $unique = false |
| array | $property = [] |
| bool | $exportable = false |
| ilDclDatatype | $datatype = null |
| int | $storage_location_override = null |
| With this property the datatype-storage-location can be overwritten. More... | |
| ilDBInterface | $db |
| ilLanguage | $lng |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning
Definition at line 19 of file class.ilDclSelectionFieldModel.php.
| ilDclSelectionFieldModel::checkFieldCreationInput | ( | ilPropertyFormGUI | $form | ) |
Checks input of specific fields befor saving.
| ilPropertyFormGUI | $form |
Reimplemented from ilDclBaseFieldModel.
Definition at line 86 of file class.ilDclSelectionFieldModel.php.
References ilPropertyFormGUI\getInput(), ilPropertyFormGUI\getItemByPostVar(), and ILIAS\Repository\lng().
Here is the call graph for this function:| ilDclSelectionFieldModel::cloneProperties | ( | ilDclBaseFieldModel | $originalField | ) |
Reimplemented from ilDclBaseFieldModel.
Definition at line 288 of file class.ilDclSelectionFieldModel.php.
References ilDclSelectionOption\getAllForField(), ilDclBaseFieldModel\getId(), and ILIAS\Survey\Mode\getId().
Here is the call graph for this function:| ilDclSelectionFieldModel::doDelete | ( | ) |
Remove field and properties.
Reimplemented from ilDclBaseFieldModel.
Definition at line 300 of file class.ilDclSelectionFieldModel.php.
References ilDclSelectionOption\getAllForField(), and ILIAS\Survey\Mode\getId().
Here is the call graph for this function:| ilDclSelectionFieldModel::fillPropertiesForm | ( | ilPropertyFormGUI & | $form | ) |
| ilPropertyFormGUI | $form |
Reimplemented from ilDclBaseFieldModel.
Definition at line 133 of file class.ilDclSelectionFieldModel.php.
References ilDclSelectionOption\getAllForField(), ILIAS\Survey\Mode\getId(), and ilPropertyFormGUI\setValuesByArray().
Here is the call graph for this function:| ilDclSelectionFieldModel::getConfirmationGUI | ( | ilPropertyFormGUI | $form | ) |
called by ilDclFieldEditGUI if isConfirmationRequired returns true
Reimplemented from ilDclBaseFieldModel.
Definition at line 315 of file class.ilDclSelectionFieldModel.php.
References $DIC, ILIAS\LTI\ToolProvider\$key, ilDclFieldFactory\getFieldRepresentationInstance(), and ilPropertyFormGUI\getInput().
Here is the call graph for this function:| ilDclSelectionFieldModel::getProperty | ( | string | $key | ) |
| $key |
Reimplemented from ilDclBaseFieldModel.
Definition at line 250 of file class.ilDclSelectionFieldModel.php.
References ILIAS\LTI\ToolProvider\$key, ilDclSelectionOption\getAllForField(), and ILIAS\Survey\Mode\getId().
Here is the call graph for this function:| ilDclSelectionFieldModel::getRecordQueryFilterObject | ( | $filter_value = "", |
|
| ?ilDclBaseFieldModel | $sort_field = null |
||
| ) |
Returns a query-object for building the record-loader-sql-query.
| string | int | $filter_value |
Reimplemented from ilDclBaseFieldModel.
Definition at line 37 of file class.ilDclSelectionFieldModel.php.
References $ilDB.
| ilDclSelectionFieldModel::getRecordQuerySortObject | ( | string | $direction = "asc", |
| bool | $sort_by_status = false |
||
| ) |
Returns a query-object for building the record-loader-sql-query.
| bool | $sort_by_status | The specific sort object is a status field |
Reimplemented from ilDclBaseFieldModel.
Definition at line 260 of file class.ilDclSelectionFieldModel.php.
| ilDclSelectionFieldModel::getValidFieldProperties | ( | ) |
Returns all valid properties for a field-type.
Reimplemented from ilDclBaseFieldModel.
Definition at line 28 of file class.ilDclSelectionFieldModel.php.
| ilDclSelectionFieldModel::isConfirmationRequired | ( | ilPropertyFormGUI | $form | ) |
called by ilDclFieldEditGUI when updating field properties if you overwrite this method, remember to also overwrite getConfirmationGUI
Reimplemented from ilDclBaseFieldModel.
Definition at line 308 of file class.ilDclSelectionFieldModel.php.
References ilPropertyFormGUI\getInput().
Here is the call graph for this function:| ilDclSelectionFieldModel::isMulti | ( | ) |
Definition at line 81 of file class.ilDclSelectionFieldModel.php.
|
protected |
changes the values of all record fields, since the property "multi" has changed
Definition at line 228 of file class.ilDclSelectionFieldModel.php.
References ILIAS\Survey\Mode\getId(), and ilDclCache\getTableCache().
Here is the call graph for this function:| ilDclSelectionFieldModel::reorderExistingValues | ( | ) |
sorts record field values by the new order
Definition at line 203 of file class.ilDclSelectionFieldModel.php.
References ilDclSelectionOption\getAllForField(), ILIAS\Survey\Mode\getId(), and ilDclCache\getTableCache().
Here is the call graph for this function:| ilDclSelectionFieldModel::setProperty | ( | string | $key, |
| $value | |||
| ) |
| array | $value |
Reimplemented from ilDclBaseFieldModel.
Definition at line 168 of file class.ilDclSelectionFieldModel.php.
References $id, ILIAS\LTI\ToolProvider\$key, ilDclSelectionOption\flushOptions(), and ILIAS\Survey\Mode\getId().
Here is the call graph for this function:| ilDclSelectionFieldModel::storePropertiesFromForm | ( | ilPropertyFormGUI | $form | ) |
called when saving the 'edit field' form
| ilDclException |
Reimplemented from ilDclBaseFieldModel.
Definition at line 104 of file class.ilDclSelectionFieldModel.php.
References ilDclFieldFactory\getFieldRepresentationInstance(), and ilPropertyFormGUI\getInput().
Here is the call graph for this function:| const ilDclSelectionFieldModel::PROP_SELECTION_OPTIONS = '' |
Definition at line 26 of file class.ilDclSelectionFieldModel.php.
| const ilDclSelectionFieldModel::PROP_SELECTION_TYPE = '' |
Definition at line 25 of file class.ilDclSelectionFieldModel.php.
| const ilDclSelectionFieldModel::SELECTION_TYPE_COMBOBOX = 'selection_type_combobox' |
Definition at line 23 of file class.ilDclSelectionFieldModel.php.
Referenced by ilDclSelectionFieldRepresentation\buildFieldCreationInput().
| const ilDclSelectionFieldModel::SELECTION_TYPE_MULTI = 'selection_type_multi' |
Definition at line 22 of file class.ilDclSelectionFieldModel.php.
Referenced by ilDclSelectionFieldRepresentation\buildFieldCreationInput().
| const ilDclSelectionFieldModel::SELECTION_TYPE_SINGLE = 'selection_type_single' |
Definition at line 21 of file class.ilDclSelectionFieldModel.php.
Referenced by ilDclSelectionFieldRepresentation\buildFieldCreationInput().