ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Class ilDclSelectionFieldModel. More...
Public Member Functions | ||||
getValidFieldProperties () | ||||
@inheritDoc More... | ||||
getRecordQueryFilterObject ($filter_value="", ilDclBaseFieldModel $sort_field=null) | ||||
Returns a query-object for building the record-loader-sql-query. More... | ||||
isMulti () | ||||
storePropertiesFromForm (ilPropertyFormGUI $form) | ||||
called when saving the 'edit field' form More... | ||||
fillPropertiesForm (ilPropertyFormGUI &$form) | ||||
setProperty ($key, $value) | ||||
reorderExistingValues () | ||||
sorts record field values by the new order More... | ||||
getProperty ($key) | ||||
getRecordQuerySortObject ($direction="asc", $sort_by_status=false) | ||||
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
| ||||
getConfirmationGUI (ilPropertyFormGUI $form) | ||||
called by ilDclFieldEditGUI if isConfirmationRequired returns true
| ||||
![]() | ||||
__construct ($a_id=0) | ||||
setId ($a_id) | ||||
Set field id. More... | ||||
getId () | ||||
Get field id. More... | ||||
setTableId ($a_id) | ||||
Set table id. More... | ||||
getTableId () | ||||
Get table id. More... | ||||
setTitle ($a_title) | ||||
Set title. More... | ||||
getTitle () | ||||
Get title. More... | ||||
setDescription ($a_desc) | ||||
Set description. More... | ||||
getDescription () | ||||
Get description. More... | ||||
setDatatypeId ($a_id) | ||||
Set datatype id. More... | ||||
getDatatypeId () | ||||
Get datatype_id. More... | ||||
isUnique () | ||||
setUnique ($unique) | ||||
getDatatype () | ||||
getDatatypeTitle () | ||||
getStorageLocation () | ||||
Get storage location for the model. More... | ||||
getExportable () | ||||
toArray () | ||||
isStandardField () | ||||
doRead () | ||||
Read field. More... | ||||
buildFromDBRecord ($rec) | ||||
Builds model from db record. More... | ||||
doCreate () | ||||
Create new field. More... | ||||
doUpdate () | ||||
Update field. More... | ||||
updateProperties () | ||||
Update properties of this field in Database. More... | ||||
doDelete () | ||||
Remove field and properties. More... | ||||
getViewSettings () | ||||
getViewSetting (int $tableview_id) | ||||
getOrder () | ||||
setOrder ($order) | ||||
hasProperty ($key) | ||||
Checks if a certain property for a field is set. More... | ||||
getProperty ($key) | ||||
Returns a certain property of a field. More... | ||||
getPropertyInstance ($key) | ||||
Return ActiveRecord of property. More... | ||||
setProperty ($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, $record_id=null) | ||||
checkValidity ($value, $record_id=null) | ||||
Check if input is valid. More... | ||||
cloneStructure ($original_id) | ||||
afterClone ($records) | ||||
cloneProperties (ilDclBaseFieldModel $originalField) | ||||
setExportable ($exportable) | ||||
allowFilterInListView () | ||||
getRecordQuerySortObject ($direction="asc", $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 ($storage_location_override) | ||||
fillHeaderExcel (ilExcel $worksheet, &$row, &$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 = '' |
![]() | |
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" |
const | PROP_SUPPORTED_FILE_TYPES = "supported_file_types" |
const | PROP_PLUGIN_HOOK_NAME = "plugin_hook_name" |
const | PROP_TEXT_SELECTION_OPTIONS = "text_selection_options" |
const | PROP_TEXT_SELECTION_TYPE = "text_selection_type" |
const | PROP_DATE_SELECTION_OPTIONS = "date_selection_options" |
const | PROP_DATE_SELECTION_TYPE = "date_selection_type" |
const | EDIT_VIEW = 2 |
const | EXPORTABLE_VIEW = 4 |
Protected Member Functions | |
multiPropertyChanged ($is_multi_now) | |
changes the values of all record fields, since the property "multi" has changed More... | |
![]() | |
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 | _getTitleInvalidChars ($a_as_regex=true) |
All valid chars for filed titles. More... | |
static | _getFieldIdByTitle ($title, $table_id) |
![]() | |
$id | |
$table_id | |
$title | |
$description | |
$datatypeId | |
$order | |
$unique | |
$property = array() | |
$exportable | |
$datatype | |
$storage_location_override = null | |
Class ilDclSelectionFieldModel.
Definition at line 9 of file class.ilDclSelectionFieldModel.php.
ilDclSelectionFieldModel::cloneProperties | ( | ilDclBaseFieldModel | $originalField | ) |
ilDclBaseFieldModel | $originalField |
Reimplemented from ilDclBaseFieldModel.
Definition at line 294 of file class.ilDclSelectionFieldModel.php.
References ilDclSelectionOption\getAllForField(), and ilDclBaseFieldModel\getId().
ilDclSelectionFieldModel::doDelete | ( | ) |
Remove field and properties.
Reimplemented from ilDclBaseFieldModel.
Definition at line 310 of file class.ilDclSelectionFieldModel.php.
References ilDclSelectionOption\getAllForField(), and ilDclBaseFieldModel\getId().
ilDclSelectionFieldModel::fillPropertiesForm | ( | ilPropertyFormGUI & | $form | ) |
ilPropertyFormGUI | $form |
Reimplemented from ilDclBaseFieldModel.
Definition at line 122 of file class.ilDclSelectionFieldModel.php.
References ilDclSelectionOption\getAllForField(), ilDclBaseFieldModel\getDatatypeId(), ilDclBaseFieldModel\getDescription(), ilDclBaseFieldModel\getId(), getProperty(), ilDclBaseFieldModel\getTableId(), ilDclBaseFieldModel\getTitle(), getValidFieldProperties(), ilDclBaseFieldModel\isUnique(), and ilPropertyFormGUI\setValuesByArray().
ilDclSelectionFieldModel::getConfirmationGUI | ( | ilPropertyFormGUI | $form | ) |
called by ilDclFieldEditGUI if isConfirmationRequired returns true
ilPropertyFormGUI | $form |
Reimplemented from ilDclBaseFieldModel.
Definition at line 333 of file class.ilDclSelectionFieldModel.php.
References $DIC, ilDclFieldFactory\getFieldRepresentationInstance(), and ilPropertyFormGUI\getInput().
ilDclSelectionFieldModel::getProperty | ( | $key | ) |
$key |
Reimplemented from ilDclBaseFieldModel.
Definition at line 245 of file class.ilDclSelectionFieldModel.php.
References ilDclSelectionOption\getAllForField(), and ilDclBaseFieldModel\getId().
Referenced by fillPropertiesForm(), isMulti(), and setProperty().
ilDclSelectionFieldModel::getRecordQueryFilterObject | ( | $filter_value = "" , |
|
ilDclBaseFieldModel | $sort_field = null |
||
) |
Returns a query-object for building the record-loader-sql-query.
string | $filter_value |
Reimplemented from ilDclBaseFieldModel.
Definition at line 35 of file class.ilDclSelectionFieldModel.php.
References $DIC, $ilDB, ilDclBaseFieldModel\getId(), and isMulti().
ilDclSelectionFieldModel::getRecordQuerySortObject | ( | $direction = "asc" , |
|
$sort_by_status = false |
|||
) |
string | $direction | |
bool | $sort_by_status |
Reimplemented from ilDclBaseFieldModel.
Definition at line 263 of file class.ilDclSelectionFieldModel.php.
References $DIC, $ilDB, ilDclBaseFieldModel\getId(), and isMulti().
ilDclSelectionFieldModel::getValidFieldProperties | ( | ) |
@inheritDoc
Reimplemented from ilDclBaseFieldModel.
Definition at line 22 of file class.ilDclSelectionFieldModel.php.
Referenced by fillPropertiesForm(), and storePropertiesFromForm().
ilDclSelectionFieldModel::isConfirmationRequired | ( | ilPropertyFormGUI | $form | ) |
called by ilDclFieldEditGUI when updating field properties if you overwrite this method, remember to also overwrite getConfirmationGUI
ilPropertyFormGUI | $form |
Reimplemented from ilDclBaseFieldModel.
Definition at line 322 of file class.ilDclSelectionFieldModel.php.
References ilPropertyFormGUI\getInput(), isMulti(), and SELECTION_TYPE_MULTI.
ilDclSelectionFieldModel::isMulti | ( | ) |
Definition at line 78 of file class.ilDclSelectionFieldModel.php.
References getProperty().
Referenced by getRecordQueryFilterObject(), getRecordQuerySortObject(), isConfirmationRequired(), and setProperty().
|
protected |
changes the values of all record fields, since the property "multi" has changed
$is_multi_now |
Definition at line 221 of file class.ilDclSelectionFieldModel.php.
References ilDclBaseFieldModel\getId(), ilDclCache\getTableCache(), and ilDclBaseFieldModel\getTableId().
Referenced by setProperty().
ilDclSelectionFieldModel::reorderExistingValues | ( | ) |
sorts record field values by the new order
Definition at line 193 of file class.ilDclSelectionFieldModel.php.
References ilDclSelectionOption\getAllForField(), ilDclBaseFieldModel\getId(), ilDclCache\getTableCache(), and ilDclBaseFieldModel\getTableId().
Referenced by setProperty().
ilDclSelectionFieldModel::setProperty | ( | $key, | |
$value | |||
) |
$key | |
$value |
Reimplemented from ilDclBaseFieldModel.
Definition at line 159 of file class.ilDclSelectionFieldModel.php.
References ilDclBaseFieldModel\$id, ilDclSelectionOption\flushOptions(), ilDclBaseFieldModel\getId(), getProperty(), isMulti(), multiPropertyChanged(), reorderExistingValues(), and SELECTION_TYPE_MULTI.
Referenced by storePropertiesFromForm().
ilDclSelectionFieldModel::storePropertiesFromForm | ( | ilPropertyFormGUI | $form | ) |
called when saving the 'edit field' form
ilPropertyFormGUI | $form |
ilDclException |
Reimplemented from ilDclBaseFieldModel.
Definition at line 91 of file class.ilDclSelectionFieldModel.php.
References ilDclBaseFieldModel\$property, ilDclFieldFactory\getFieldRepresentationInstance(), ilPropertyFormGUI\getInput(), ilDclBaseFieldModel\getPropertyInstance(), getValidFieldProperties(), and setProperty().
const ilDclSelectionFieldModel::PROP_SELECTION_OPTIONS = '' |
Definition at line 16 of file class.ilDclSelectionFieldModel.php.
const ilDclSelectionFieldModel::PROP_SELECTION_TYPE = '' |
Definition at line 15 of file class.ilDclSelectionFieldModel.php.
const ilDclSelectionFieldModel::SELECTION_TYPE_COMBOBOX = 'selection_type_combobox' |
Definition at line 13 of file class.ilDclSelectionFieldModel.php.
Referenced by ilDclSelectionFieldRepresentation\buildFieldCreationInput().
const ilDclSelectionFieldModel::SELECTION_TYPE_MULTI = 'selection_type_multi' |
Definition at line 12 of file class.ilDclSelectionFieldModel.php.
Referenced by ilDclSelectionFieldRepresentation\buildFieldCreationInput(), isConfirmationRequired(), and setProperty().
const ilDclSelectionFieldModel::SELECTION_TYPE_SINGLE = 'selection_type_single' |
Definition at line 11 of file class.ilDclSelectionFieldModel.php.
Referenced by ilDclSelectionFieldRepresentation\buildFieldCreationInput().