|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Class ilDclBaseFieldModel. More...
Inheritance diagram for ilDclBaseFieldModel:
Collaboration diagram for ilDclBaseFieldModel:Public Member Functions | |
| __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... | |
Static Public Member Functions | |
| static | _getTitleInvalidChars ($a_as_regex=true) |
| All valid chars for filed titles. More... | |
| static | _getFieldIdByTitle ($title, $table_id) |
Data Fields | |
| 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 | |
| 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) | |
Protected Attributes | |
| $id | |
| $table_id | |
| $title | |
| $description | |
| $datatypeId | |
| $order | |
| $unique | |
| $property = array() | |
| $exportable | |
| $datatype | |
| $storage_location_override = null | |
Private Member Functions | |
| loadExportability () | |
| Load exportability. More... | |
Class ilDclBaseFieldModel.
Definition at line 15 of file class.ilDclBaseFieldModel.php.
| ilDclBaseFieldModel::__construct | ( | $a_id = 0 | ) |
| int | $a_id |
Definition at line 93 of file class.ilDclBaseFieldModel.php.
References doRead().
Here is the call graph for this function:
|
static |
| $title | Title of the field |
| $table_id | ID of table where the field belongs to |
Definition at line 125 of file class.ilDclBaseFieldModel.php.
References $DIC, $id, $ilDB, $result, $table_id, and $title.
|
static |
All valid chars for filed titles.
| bool | $a_as_regex |
Definition at line 109 of file class.ilDclBaseFieldModel.php.
Referenced by ilDclFieldEditGUI\initForm().
Here is the caller graph for this function:
|
protected |
create ilDclTableViewFieldSettings for this field in each tableview
Definition at line 451 of file class.ilDclBaseFieldModel.php.
References ilDclTableView\getAllForTableId().
Referenced by doCreate().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDclBaseFieldModel::afterClone | ( | $records | ) |
| $records |
Reimplemented in ilDclStandardField.
Definition at line 765 of file class.ilDclBaseFieldModel.php.
References ilDclCache\getRecordFieldCache().
Here is the call graph for this function:| ilDclBaseFieldModel::allowFilterInListView | ( | ) |
Reimplemented in ilDclStandardField, ilDclFileuploadFieldModel, ilDclFormulaFieldModel, ilDclMobFieldModel, ilDclPluginFieldModel, and ilDclReferenceFieldModel.
Definition at line 812 of file class.ilDclBaseFieldModel.php.
| ilDclBaseFieldModel::buildFromDBRecord | ( | $rec | ) |
Builds model from db record.
| $rec |
Definition at line 411 of file class.ilDclBaseFieldModel.php.
References setDatatypeId(), setDescription(), setId(), setTableId(), setTitle(), and setUnique().
Here is the call graph for this function:| ilDclBaseFieldModel::checkFieldCreationInput | ( | ilPropertyFormGUI | $form | ) |
Checks input of specific fields befor saving.
| ilPropertyFormGUI | $form |
Reimplemented in ilDclTextFieldModel.
Definition at line 894 of file class.ilDclBaseFieldModel.php.
| ilDclBaseFieldModel::checkTitlesForImport | ( | array & | $titles, |
| array & | $import_fields | ||
| ) |
| array | $titles | |
| array | $import_fields |
Reimplemented in ilDclTextFieldModel.
Definition at line 934 of file class.ilDclBaseFieldModel.php.
References $title, getTitle(), and ilStr\isUtf8().
Here is the call graph for this function:| ilDclBaseFieldModel::checkValidity | ( | $value, | |
$record_id = null |
|||
| ) |
Check if input is valid.
| $value | ||
| null | $record_id |
| ilDclInputException |
Reimplemented in ilDclDatetimeFieldModel, ilDclFileuploadFieldModel, ilDclNumberFieldModel, and ilDclTextFieldModel.
Definition at line 705 of file class.ilDclBaseFieldModel.php.
References ilDclCache\getTableCache(), getTableId(), isUnique(), normalizeValue(), and ilDclInputException\UNIQUE_EXCEPTION.
Referenced by checkValidityFromForm().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDclBaseFieldModel::checkValidityFromForm | ( | ilPropertyFormGUI & | $form, |
$record_id = null |
|||
| ) |
| ilPropertyFormGUI | $form | |
| null | $record_id |
Reimplemented in ilDclTextFieldModel.
Definition at line 689 of file class.ilDclBaseFieldModel.php.
References checkValidity(), getId(), and ilPropertyFormGUI\getInput().
Here is the call graph for this function:| ilDclBaseFieldModel::cloneProperties | ( | ilDclBaseFieldModel | $originalField | ) |
| ilDclBaseFieldModel | $originalField |
Reimplemented in ilDclSelectionFieldModel.
Definition at line 776 of file class.ilDclBaseFieldModel.php.
References getDatatypeId(), getId(), getProperty(), getValidFieldProperties(), ilDclDatatype\INPUTFORMAT_REFERENCE, and PROP_REFERENCE.
Referenced by cloneStructure().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDclBaseFieldModel::cloneStructure | ( | $original_id | ) |
| $original_id |
| ilException |
Reimplemented in ilDclStandardField.
Definition at line 745 of file class.ilDclBaseFieldModel.php.
References cloneProperties(), doCreate(), ilDclCache\getFieldCache(), getId(), ilDclCache\setCloneOf(), setDatatypeId(), setDescription(), setExportable(), setOrder(), setTitle(), setUnique(), and ilDclCache\TYPE_FIELD.
Here is the call graph for this function:| ilDclBaseFieldModel::doCreate | ( | ) |
Create new field.
Reimplemented in ilDclStandardField.
Definition at line 425 of file class.ilDclBaseFieldModel.php.
References $DIC, $id, $ilDB, $query, ilDclTable\_tableExists(), addToTableViews(), getDatatypeId(), getDescription(), getId(), getTableId(), getTitle(), isUnique(), setId(), and updateTableFieldSetting().
Referenced by cloneStructure().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDclBaseFieldModel::doDelete | ( | ) |
Remove field and properties.
Reimplemented in ilDclSelectionFieldModel.
Definition at line 530 of file class.ilDclBaseFieldModel.php.
References $DIC, $ilDB, $query, getId(), ilDclTableFieldSetting\getInstance(), getTableId(), and getViewSettings().
Here is the call graph for this function:| ilDclBaseFieldModel::doRead | ( | ) |
Read field.
Reimplemented in ilDclStandardField.
Definition at line 386 of file class.ilDclBaseFieldModel.php.
References $DIC, $ilDB, $query, getId(), loadProperties(), loadTableFieldSetting(), setDatatypeId(), setDescription(), setTableId(), setTitle(), and setUnique().
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDclBaseFieldModel::doUpdate | ( | ) |
Update field.
Reimplemented in ilDclStandardField.
Definition at line 462 of file class.ilDclBaseFieldModel.php.
References $DIC, $ilDB, getDatatypeId(), getDescription(), getId(), getTableId(), getTitle(), isUnique(), updateProperties(), and updateTableFieldSetting().
Here is the call graph for this function:| ilDclBaseFieldModel::fillHeaderExcel | ( | ilExcel | $worksheet, |
| & | $row, | ||
| & | $col | ||
| ) |
| ilExcel | $worksheet | |
| $row | ||
| $col |
Reimplemented in ilDclStandardField, and ilDclTextFieldModel.
Definition at line 923 of file class.ilDclBaseFieldModel.php.
References getTitle(), and ilExcel\setCell().
Here is the call graph for this function:| ilDclBaseFieldModel::fillPropertiesForm | ( | ilPropertyFormGUI & | $form | ) |
called to fill the 'edit field' form
| ilPropertyFormGUI | $form |
Reimplemented in ilDclSelectionFieldModel.
Definition at line 974 of file class.ilDclBaseFieldModel.php.
References getDatatypeId(), getDescription(), getId(), getProperty(), getTableId(), getTitle(), getValidFieldProperties(), isUnique(), and ilPropertyFormGUI\setValuesByArray().
Here is the call graph for this function:| ilDclBaseFieldModel::getConfirmationGUI | ( | ilPropertyFormGUI | $form | ) |
called by ilDclFieldEditGUI if isConfirmationRequired returns true
| ilPropertyFormGUI | $form |
Reimplemented in ilDclSelectionFieldModel.
Definition at line 1017 of file class.ilDclBaseFieldModel.php.
References $DIC, ilFormGUI\getFormAction(), and ilPropertyFormGUI\getInput().
Here is the call graph for this function:| ilDclBaseFieldModel::getDatatype | ( | ) |
Definition at line 283 of file class.ilDclBaseFieldModel.php.
References $datatype, and loadDatatype().
Referenced by ilDclFieldFactory\getClassPathByInstance(), and ilDclFieldFactory\getFieldTypeByInstance().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDclBaseFieldModel::getDatatypeId | ( | ) |
Get datatype_id.
Definition at line 252 of file class.ilDclBaseFieldModel.php.
References $datatypeId, ilDclStandardField\_getDatatypeForId(), getId(), and isStandardField().
Referenced by cloneProperties(), doCreate(), doUpdate(), fillPropertiesForm(), ilDclSelectionFieldModel\fillPropertiesForm(), ilDclStandardField\getRecordQueryFilterObject(), and hasNumericSorting().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDclBaseFieldModel::getDatatypeTitle | ( | ) |
Definition at line 294 of file class.ilDclBaseFieldModel.php.
References loadDatatype().
Here is the call graph for this function:| ilDclBaseFieldModel::getDescription | ( | ) |
Get description.
Definition at line 228 of file class.ilDclBaseFieldModel.php.
References $description.
Referenced by doCreate(), doUpdate(), fillPropertiesForm(), and ilDclSelectionFieldModel\fillPropertiesForm().
Here is the caller graph for this function:| ilDclBaseFieldModel::getExportable | ( | ) |
Definition at line 344 of file class.ilDclBaseFieldModel.php.
References $exportable, and loadExportability().
Here is the call graph for this function:| ilDclBaseFieldModel::getId | ( | ) |
Get field id.
Definition at line 158 of file class.ilDclBaseFieldModel.php.
References $id.
Referenced by ilDclTextFieldModel\checkValidity(), checkValidityFromForm(), ilDclTextFieldModel\checkValidityOfURLField(), cloneProperties(), ilDclSelectionFieldModel\cloneProperties(), cloneStructure(), doCreate(), doDelete(), ilDclSelectionFieldModel\doDelete(), doRead(), doUpdate(), ilDclStandardField\fillHeaderExcel(), fillPropertiesForm(), ilDclSelectionFieldModel\fillPropertiesForm(), ilDclFieldFactory\getClassPathByInstance(), getDatatypeId(), ilDclFieldFactory\getFieldModelInstanceByClass(), ilDclCache\getFieldRepresentation(), ilDclFieldFactory\getFieldRepresentationInstance(), ilDclFieldFactory\getFieldTypeByInstance(), ilDclSelectionFieldModel\getProperty(), ilDclFieldFactory\getRecordFieldInstance(), ilDclBooleanFieldModel\getRecordQueryFilterObject(), ilDclDatetimeFieldModel\getRecordQueryFilterObject(), ilDclFileuploadFieldModel\getRecordQueryFilterObject(), ilDclIliasReferenceFieldModel\getRecordQueryFilterObject(), ilDclNumberFieldModel\getRecordQueryFilterObject(), ilDclReferenceFieldModel\getRecordQueryFilterObject(), ilDclSelectionFieldModel\getRecordQueryFilterObject(), ilDclTextFieldModel\getRecordQueryFilterObject(), getRecordQuerySortObject(), ilDclStandardField\getRecordQuerySortObject(), ilDclFileuploadFieldModel\getRecordQuerySortObject(), ilDclIliasReferenceFieldModel\getRecordQuerySortObject(), ilDclReferenceFieldModel\getRecordQuerySortObject(), ilDclSelectionFieldModel\getRecordQuerySortObject(), ilDclStandardField\getSortField(), getViewSetting(), getViewSettings(), ilDclStandardField\hasNumericSorting(), ilDclTableEditGUI\initForm(), loadProperties(), loadTableFieldSetting(), ilDclSelectionFieldModel\multiPropertyChanged(), ilDclSelectionFieldModel\reorderExistingValues(), setProperty(), ilDclSelectionFieldModel\setProperty(), and updateTableFieldSetting().
Here is the caller graph for this function:| ilDclBaseFieldModel::getOrder | ( | ) |
Definition at line 570 of file class.ilDclBaseFieldModel.php.
References $order, and loadTableFieldSetting().
Here is the call graph for this function:| ilDclBaseFieldModel::getProperty | ( | $key | ) |
Returns a certain property of a field.
| $key |
Reimplemented in ilDclSelectionFieldModel.
Definition at line 622 of file class.ilDclBaseFieldModel.php.
References getPropertyInstance().
Referenced by ilDclTextFieldModel\checkRegexAndLength(), ilDclTextFieldModel\checkValidity(), ilDclTextFieldModel\checkValidityFromForm(), cloneProperties(), ilDclTextFieldModel\fillHeaderExcel(), fillPropertiesForm(), ilDclFieldFactory\getClassPathByInstance(), ilDclReferenceFieldModel\getFieldRef(), ilDclFieldFactory\getFieldTypeByInstance(), ilDclReferenceFieldModel\getRecordQueryFilterObject(), ilDclReferenceFieldModel\getRecordQuerySortObject(), and ilDclFileuploadFieldModel\getSupportedExtensions().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDclBaseFieldModel::getPropertyInstance | ( | $key | ) |
Return ActiveRecord of property.
| $key |
Definition at line 637 of file class.ilDclBaseFieldModel.php.
References hasProperty(), and loadProperties().
Referenced by getProperty(), storePropertiesFromForm(), and ilDclSelectionFieldModel\storePropertiesFromForm().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDclBaseFieldModel::getRecordQueryFilterObject | ( | $filter_value = "", |
|
| ilDclBaseFieldModel | $sort_field = null |
||
| ) |
Returns a query-object for building the record-loader-sql-query.
| string | $filter_value | |
| ilDclBaseFieldModel | null | $sort_field |
Reimplemented in ilDclStandardField, ilDclBooleanFieldModel, ilDclDatetimeFieldModel, ilDclFileuploadFieldModel, ilDclIliasReferenceFieldModel, ilDclNumberFieldModel, ilDclRatingFieldModel, ilDclReferenceFieldModel, ilDclSelectionFieldModel, and ilDclTextFieldModel.
Definition at line 855 of file class.ilDclBaseFieldModel.php.
| ilDclBaseFieldModel::getRecordQuerySortObject | ( | $direction = "asc", |
|
$sort_by_status = false |
|||
| ) |
Returns a query-object for building the record-loader-sql-query.
| string | $direction | |
| boolean | $sort_by_status | The specific sort object is a status field |
Reimplemented in ilDclStandardField, ilDclFileuploadFieldModel, ilDclFormulaFieldModel, ilDclIliasReferenceFieldModel, ilDclRatingFieldModel, ilDclReferenceFieldModel, ilDclSelectionFieldModel, and ilDclTextFieldModel.
Definition at line 826 of file class.ilDclBaseFieldModel.php.
References $DIC, $ilDB, and getId().
Referenced by ilDclTableEditGUI\initForm().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDclBaseFieldModel::getSortField | ( | ) |
Returns the sort-field id.
Reimplemented in ilDclStandardField.
Definition at line 866 of file class.ilDclBaseFieldModel.php.
References getTitle().
Here is the call graph for this function:| ilDclBaseFieldModel::getStorageLocation | ( | ) |
Get storage location for the model.
Definition at line 307 of file class.ilDclBaseFieldModel.php.
References getStorageLocationOverride(), and loadDatatype().
Here is the call graph for this function:| ilDclBaseFieldModel::getStorageLocationOverride | ( | ) |
Definition at line 903 of file class.ilDclBaseFieldModel.php.
References $storage_location_override.
Referenced by getStorageLocation().
Here is the caller graph for this function:| ilDclBaseFieldModel::getTableId | ( | ) |
Get table id.
Definition at line 180 of file class.ilDclBaseFieldModel.php.
References $table_id.
Referenced by ilDclStandardField\allowFilterInListView(), checkValidity(), ilDclDatetimeFieldModel\checkValidity(), ilDclFileuploadFieldModel\checkValidity(), ilDclTextFieldModel\checkValidity(), ilDclTextFieldModel\checkValidityOfURLField(), doCreate(), doDelete(), doUpdate(), fillPropertiesForm(), ilDclSelectionFieldModel\fillPropertiesForm(), loadTableFieldSetting(), ilDclSelectionFieldModel\multiPropertyChanged(), ilDclSelectionFieldModel\reorderExistingValues(), and updateTableFieldSetting().
Here is the caller graph for this function:| ilDclBaseFieldModel::getTitle | ( | ) |
Get title.
Definition at line 206 of file class.ilDclBaseFieldModel.php.
References $title.
Referenced by checkTitlesForImport(), ilDclTextFieldModel\checkTitlesForImport(), doCreate(), doUpdate(), fillHeaderExcel(), ilDclTextFieldModel\fillHeaderExcel(), fillPropertiesForm(), ilDclSelectionFieldModel\fillPropertiesForm(), ilDclFieldFactory\getClassPathByInstance(), getSortField(), ilDclStandardField\getSortField(), and ilDclTableEditGUI\initForm().
Here is the caller graph for this function:| ilDclBaseFieldModel::getValidFieldProperties | ( | ) |
Returns all valid properties for a field-type.
Reimplemented in ilDclFileuploadFieldModel, ilDclFormulaFieldModel, ilDclIliasReferenceFieldModel, ilDclMobFieldModel, ilDclPluginFieldModel, ilDclReferenceFieldModel, ilDclSelectionFieldModel, and ilDclTextFieldModel.
Definition at line 679 of file class.ilDclBaseFieldModel.php.
Referenced by cloneProperties(), fillPropertiesForm(), and storePropertiesFromForm().
Here is the caller graph for this function:| ilDclBaseFieldModel::getViewSetting | ( | int | $tableview_id | ) |
| int | $tableview_id |
Definition at line 561 of file class.ilDclBaseFieldModel.php.
References getId(), and ActiveRecord\where().
Here is the call graph for this function:| ilDclBaseFieldModel::getViewSettings | ( | ) |
Definition at line 552 of file class.ilDclBaseFieldModel.php.
References getId(), and ActiveRecord\where().
Referenced by doDelete().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDclBaseFieldModel::hasNumericSorting | ( | ) |
Set to true, when the sorting should be handled numerical.
Reimplemented in ilDclStandardField, and ilDclNumberFieldModel.
Definition at line 877 of file class.ilDclBaseFieldModel.php.
References getDatatypeId(), and ilDclDatatype\INPUTFORMAT_NUMBER.
Here is the call graph for this function:| ilDclBaseFieldModel::hasProperty | ( | $key | ) |
Checks if a certain property for a field is set.
| $key |
Definition at line 607 of file class.ilDclBaseFieldModel.php.
References loadProperties().
Referenced by ilDclTextFieldModel\checkTitlesForImport(), ilDclFieldFactory\getClassPathByInstance(), ilDclFieldFactory\getFieldTypeByInstance(), getPropertyInstance(), ilDclReferenceFieldModel\getRecordQuerySortObject(), ilDclTextFieldModel\getRecordQuerySortObject(), and ilDclFileuploadFieldModel\getSupportedExtensions().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDclBaseFieldModel::isConfirmationRequired | ( | ilPropertyFormGUI | $form | ) |
called by ilDclFieldEditGUI when updating field properties if you overwrite this method, remember to also overwrite getConfirmationGUI
| ilPropertyFormGUI | $form |
Reimplemented in ilDclSelectionFieldModel.
Definition at line 1004 of file class.ilDclBaseFieldModel.php.
| ilDclBaseFieldModel::isStandardField | ( | ) |
Reimplemented in ilDclStandardField.
Definition at line 377 of file class.ilDclBaseFieldModel.php.
Referenced by getDatatypeId().
Here is the caller graph for this function:| ilDclBaseFieldModel::isUnique | ( | ) |
Reimplemented in ilDclStandardField.
Definition at line 265 of file class.ilDclBaseFieldModel.php.
References $unique.
Referenced by checkValidity(), ilDclDatetimeFieldModel\checkValidity(), ilDclFileuploadFieldModel\checkValidity(), ilDclTextFieldModel\checkValidity(), ilDclTextFieldModel\checkValidityOfURLField(), doCreate(), doUpdate(), fillPropertiesForm(), and ilDclSelectionFieldModel\fillPropertiesForm().
Here is the caller graph for this function:
|
protected |
Load datatype for model.
Definition at line 322 of file class.ilDclBaseFieldModel.php.
References ilDclCache\getDatatype().
Referenced by getDatatype(), getDatatypeTitle(), and getStorageLocation().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Load exportability.
Definition at line 357 of file class.ilDclBaseFieldModel.php.
References loadTableFieldSetting().
Referenced by getExportable().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Get all properties of a field.
Definition at line 594 of file class.ilDclBaseFieldModel.php.
References ilDclCache\getFieldProperties(), and getId().
Referenced by doRead(), getPropertyInstance(), hasProperty(), and setProperty().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
loadTableFieldSetting
Definition at line 333 of file class.ilDclBaseFieldModel.php.
References getId(), ilDclTableFieldSetting\getInstance(), and getTableId().
Referenced by doRead(), getOrder(), and loadExportability().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
| $value |
Definition at line 730 of file class.ilDclBaseFieldModel.php.
Referenced by checkValidity(), ilDclFileuploadFieldModel\checkValidity(), and ilDclTextFieldModel\checkValidity().
Here is the caller graph for this function:| ilDclBaseFieldModel::setDatatypeId | ( | $a_id | ) |
Set datatype id.
| int | $a_id |
Definition at line 239 of file class.ilDclBaseFieldModel.php.
Referenced by buildFromDBRecord(), cloneStructure(), and doRead().
Here is the caller graph for this function:| ilDclBaseFieldModel::setDescription | ( | $a_desc | ) |
Set description.
| string | $a_desc |
Definition at line 217 of file class.ilDclBaseFieldModel.php.
Referenced by buildFromDBRecord(), cloneStructure(), and doRead().
Here is the caller graph for this function:| ilDclBaseFieldModel::setExportable | ( | $exportable | ) |
| boolean | $exportable |
Definition at line 803 of file class.ilDclBaseFieldModel.php.
References $exportable.
Referenced by cloneStructure(), and ilDclStandardField\cloneStructure().
Here is the caller graph for this function:| ilDclBaseFieldModel::setId | ( | $a_id | ) |
Set field id.
| int | $a_id |
Definition at line 147 of file class.ilDclBaseFieldModel.php.
Referenced by buildFromDBRecord(), and doCreate().
Here is the caller graph for this function:| ilDclBaseFieldModel::setOrder | ( | $order | ) |
| $order |
Definition at line 583 of file class.ilDclBaseFieldModel.php.
References $order.
Referenced by cloneStructure(), and ilDclStandardField\cloneStructure().
Here is the caller graph for this function:| ilDclBaseFieldModel::setProperty | ( | $key, | |
| $value | |||
| ) |
Set a property for a field (does not save)
| $key | |
| $value |
Reimplemented in ilDclSelectionFieldModel.
Definition at line 656 of file class.ilDclBaseFieldModel.php.
References $property, getId(), and loadProperties().
Referenced by storePropertiesFromForm().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDclBaseFieldModel::setStorageLocationOverride | ( | $storage_location_override | ) |
| int | null | $storage_location_override |
Definition at line 912 of file class.ilDclBaseFieldModel.php.
References $storage_location_override.
| ilDclBaseFieldModel::setTableId | ( | $a_id | ) |
Set table id.
| int | $a_id |
Definition at line 169 of file class.ilDclBaseFieldModel.php.
Referenced by buildFromDBRecord(), and doRead().
Here is the caller graph for this function:| ilDclBaseFieldModel::setTitle | ( | $a_title | ) |
Set title.
| string | $a_title |
Definition at line 191 of file class.ilDclBaseFieldModel.php.
Referenced by buildFromDBRecord(), cloneStructure(), and doRead().
Here is the caller graph for this function:| ilDclBaseFieldModel::setUnique | ( | $unique | ) |
| bool | $unique |
Definition at line 274 of file class.ilDclBaseFieldModel.php.
References $unique.
Referenced by buildFromDBRecord(), cloneStructure(), ilDclStandardField\cloneStructure(), and doRead().
Here is the caller graph for this function:| ilDclBaseFieldModel::storePropertiesFromForm | ( | ilPropertyFormGUI | $form | ) |
called when saving the 'edit field' form
| ilPropertyFormGUI | $form |
Reimplemented in ilDclSelectionFieldModel.
Definition at line 952 of file class.ilDclBaseFieldModel.php.
References $property, ilDclFieldFactory\getFieldRepresentationInstance(), ilPropertyFormGUI\getInput(), getPropertyInstance(), getValidFieldProperties(), and setProperty().
Here is the call graph for this function:| ilDclBaseFieldModel::toArray | ( | ) |
Definition at line 368 of file class.ilDclBaseFieldModel.php.
| ilDclBaseFieldModel::updateProperties | ( | ) |
Update properties of this field in Database.
Definition at line 506 of file class.ilDclBaseFieldModel.php.
Referenced by doUpdate().
Here is the caller graph for this function:
|
protected |
update exportable and fieldorder
Definition at line 518 of file class.ilDclBaseFieldModel.php.
References getId(), ilDclTableFieldSetting\getInstance(), and getTableId().
Referenced by doCreate(), doUpdate(), and ilDclStandardField\doUpdate().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 57 of file class.ilDclBaseFieldModel.php.
Referenced by ilDclStandardField\_getDatatypeForId(), and getDatatype().
|
protected |
Definition at line 37 of file class.ilDclBaseFieldModel.php.
Referenced by getDatatypeId().
|
protected |
Definition at line 33 of file class.ilDclBaseFieldModel.php.
Referenced by getDescription().
|
protected |
Definition at line 53 of file class.ilDclBaseFieldModel.php.
Referenced by getExportable(), and setExportable().
|
protected |
Definition at line 21 of file class.ilDclBaseFieldModel.php.
Referenced by ilDclStandardField\_getDatatypeForId(), _getFieldIdByTitle(), ilDclStandardField\_getImportableStandardFieldTitle(), ilDclStandardField\_getNonImportableStandardFieldTitles(), doCreate(), getId(), and ilDclSelectionFieldModel\setProperty().
|
protected |
Definition at line 41 of file class.ilDclBaseFieldModel.php.
Referenced by getOrder(), and setOrder().
|
protected |
Definition at line 49 of file class.ilDclBaseFieldModel.php.
Referenced by setProperty(), storePropertiesFromForm(), and ilDclSelectionFieldModel\storePropertiesFromForm().
|
protected |
Definition at line 61 of file class.ilDclBaseFieldModel.php.
Referenced by getStorageLocationOverride(), and setStorageLocationOverride().
|
protected |
Definition at line 25 of file class.ilDclBaseFieldModel.php.
Referenced by _getFieldIdByTitle(), ilDclStandardField\_getStandardFields(), and getTableId().
|
protected |
Definition at line 29 of file class.ilDclBaseFieldModel.php.
Referenced by _getFieldIdByTitle(), checkTitlesForImport(), ilDclTextFieldModel\checkTitlesForImport(), ilDclFileuploadFieldModel\checkValidity(), and getTitle().
|
protected |
Definition at line 45 of file class.ilDclBaseFieldModel.php.
Referenced by isUnique(), and setUnique().
| const ilDclBaseFieldModel::EDIT_VIEW = 2 |
Definition at line 86 of file class.ilDclBaseFieldModel.php.
| const ilDclBaseFieldModel::EXPORTABLE_VIEW = 4 |
Definition at line 87 of file class.ilDclBaseFieldModel.php.
| const ilDclBaseFieldModel::PROP_DATE_SELECTION_OPTIONS = "date_selection_options" |
Definition at line 83 of file class.ilDclBaseFieldModel.php.
| const ilDclBaseFieldModel::PROP_DATE_SELECTION_TYPE = "date_selection_type" |
Definition at line 84 of file class.ilDclBaseFieldModel.php.
| const ilDclBaseFieldModel::PROP_DISPLAY_COPY_LINK_ACTION_MENU = "display_action_menu" |
Definition at line 77 of file class.ilDclBaseFieldModel.php.
Referenced by ilDclIliasReferenceFieldRepresentation\buildFieldCreationInput(), ilDclIliasReferenceRecordRepresentation\getHTML(), and ilDclIliasReferenceFieldModel\getValidFieldProperties().
| const ilDclBaseFieldModel::PROP_FORMULA_EXPRESSION = "expression" |
Definition at line 76 of file class.ilDclBaseFieldModel.php.
Referenced by ilDclFormulaRecordFieldModel\__construct(), ilDclFormulaFieldRepresentation\buildFieldCreationInput(), and ilDclFormulaFieldModel\getValidFieldProperties().
| const ilDclBaseFieldModel::PROP_HEIGHT = "height" |
Definition at line 72 of file class.ilDclBaseFieldModel.php.
Referenced by ilDclMobFieldRepresentation\buildFieldCreationInput(), ilDclMobRecordRepresentation\getHTML(), ilDclMobFieldModel\getValidFieldProperties(), and ilDclMobRecordFieldModel\parseValue().
| const ilDclBaseFieldModel::PROP_ILIAS_REFERENCE_LINK = "ILIAS_reference_link" |
Definition at line 74 of file class.ilDclBaseFieldModel.php.
Referenced by ilDclIliasReferenceFieldRepresentation\buildFieldCreationInput(), ilDclIliasReferenceRecordRepresentation\getHTML(), ilDclIliasReferenceRecordRepresentation\getLinkHTML(), ilDclIliasReferenceRecordRepresentation\getSingleHTML(), and ilDclIliasReferenceFieldModel\getValidFieldProperties().
| const ilDclBaseFieldModel::PROP_LEARNING_PROGRESS = "learning_progress" |
Definition at line 73 of file class.ilDclBaseFieldModel.php.
Referenced by ilDclRecordListTableGUI\buildData(), ilDclIliasReferenceFieldRepresentation\buildFieldCreationInput(), and ilDclIliasReferenceFieldModel\getValidFieldProperties().
| const ilDclBaseFieldModel::PROP_LENGTH = "lenght" |
General properties.
Definition at line 65 of file class.ilDclBaseFieldModel.php.
Referenced by ilDclTextFieldRepresentation\buildFieldCreationInput(), ilDclTextFieldModel\checkFieldCreationInput(), ilDclTextFieldModel\checkRegexAndLength(), ilDclTextFieldRepresentation\getInputField(), and ilDclTextFieldModel\getValidFieldProperties().
| const ilDclBaseFieldModel::PROP_LINK_DETAIL_PAGE_TEXT = "link_detail_page" |
Definition at line 78 of file class.ilDclBaseFieldModel.php.
Referenced by ilDclMobFieldRepresentation\buildFieldCreationInput(), ilDclTextFieldRepresentation\buildFieldCreationInput(), ilDclMobRecordRepresentation\getHTML(), ilDclTextRecordRepresentation\getHTML(), ilDclMobFieldModel\getValidFieldProperties(), and ilDclTextFieldModel\getValidFieldProperties().
| const ilDclBaseFieldModel::PROP_N_REFERENCE = "multiple_selection" |
Definition at line 75 of file class.ilDclBaseFieldModel.php.
Referenced by ilDclReferenceFieldRepresentation\buildFieldCreationInput(), ilDclReferenceRecordFieldModel\getExportValue(), ilDclReferenceFieldRepresentation\getInputField(), ilDclReferenceFieldModel\getRecordQueryFilterObject(), ilDclReferenceFieldModel\getValidFieldProperties(), ilDclReferenceRecordFieldModel\getValueFromExcel(), and ilDclReferenceFieldRepresentation\passThroughFilter().
| const ilDclBaseFieldModel::PROP_PLUGIN_HOOK_NAME = "plugin_hook_name" |
Definition at line 80 of file class.ilDclBaseFieldModel.php.
Referenced by ilDclPluginFieldRepresentation\buildFieldCreationInput(), ilDclFieldFactory\getClassPathByInstance(), ilDclFieldFactory\getFieldTypeByInstance(), and ilDclPluginFieldModel\getValidFieldProperties().
| const ilDclBaseFieldModel::PROP_REFERENCE = "table_id" |
Definition at line 67 of file class.ilDclBaseFieldModel.php.
Referenced by ilDclReferenceFieldRepresentation\addFilterInputFieldToTable(), ilDclReferenceFieldRepresentation\buildFieldCreationInput(), cloneProperties(), ilDclReferenceRecordFieldModel\getExportValue(), ilDclReferenceFieldModel\getFieldRef(), ilDclReferenceRecordRepresentation\getHTML(), ilDclReferenceFieldRepresentation\getInputField(), ilDclReferenceRecordRepresentation\getLinkHTML(), ilDclReferenceRecordFieldModel\getReferenceFromValue(), and ilDclReferenceFieldModel\getValidFieldProperties().
| const ilDclBaseFieldModel::PROP_REFERENCE_LINK = "reference_link" |
Definition at line 70 of file class.ilDclBaseFieldModel.php.
Referenced by ilDclReferenceFieldRepresentation\buildFieldCreationInput(), ilDclReferenceRecordRepresentation\getHTML(), and ilDclReferenceFieldModel\getValidFieldProperties().
| const ilDclBaseFieldModel::PROP_REGEX = "regex" |
Definition at line 66 of file class.ilDclBaseFieldModel.php.
Referenced by ilDclTextFieldRepresentation\buildFieldCreationInput(), ilDclTextInputGUI\checkInput(), ilDclTextFieldModel\checkRegexAndLength(), and ilDclTextFieldModel\getValidFieldProperties().
| const ilDclBaseFieldModel::PROP_SUPPORTED_FILE_TYPES = "supported_file_types" |
Definition at line 79 of file class.ilDclBaseFieldModel.php.
Referenced by ilDclFileuploadFieldRepresentation\buildFieldCreationInput(), ilDclFileuploadFieldModel\getSupportedExtensions(), and ilDclFileuploadFieldModel\getValidFieldProperties().
| const ilDclBaseFieldModel::PROP_TEXT_SELECTION_OPTIONS = "text_selection_options" |
Definition at line 81 of file class.ilDclBaseFieldModel.php.
| const ilDclBaseFieldModel::PROP_TEXT_SELECTION_TYPE = "text_selection_type" |
Definition at line 82 of file class.ilDclBaseFieldModel.php.
| const ilDclBaseFieldModel::PROP_TEXTAREA = "text_area" |
Definition at line 69 of file class.ilDclBaseFieldModel.php.
Referenced by ilDclTextFieldRepresentation\buildFieldCreationInput(), ilDclTextFieldModel\checkFieldCreationInput(), ilDclTextRecordRepresentation\fillFormInput(), ilDclTextFieldRepresentation\getInputField(), ilDclTextFieldModel\getValidFieldProperties(), and ilDclTextRecordFieldModel\parseValue().
| const ilDclBaseFieldModel::PROP_URL = "url" |
Definition at line 68 of file class.ilDclBaseFieldModel.php.
Referenced by ilDclTextRecordFieldModel\addHiddenItemsToConfirmation(), ilDclTextFieldRepresentation\buildFieldCreationInput(), ilDclTextFieldModel\checkTitlesForImport(), ilDclTextFieldModel\checkValidity(), ilDclTextFieldModel\checkValidityFromForm(), ilDclTextRecordFieldModel\fillExcelExport(), ilDclTextRecordRepresentation\fillFormInput(), ilDclTextFieldModel\fillHeaderExcel(), ilDclTextRecordFieldModel\getExportValue(), ilDclTextRecordRepresentation\getHTML(), ilDclReferenceFieldRepresentation\getInputField(), ilDclTextFieldRepresentation\getInputField(), ilDclTextFieldModel\getRecordQuerySortObject(), ilDclTextFieldModel\getValidFieldProperties(), ilDclTextRecordFieldModel\getValueFromExcel(), ilDclTextRecordFieldModel\parseSortingValue(), ilDclTextRecordFieldModel\parseValue(), and ilDclTextRecordFieldModel\setValueFromForm().
| const ilDclBaseFieldModel::PROP_WIDTH = "width" |
Definition at line 71 of file class.ilDclBaseFieldModel.php.
Referenced by ilDclMobFieldRepresentation\buildFieldCreationInput(), ilDclMobRecordRepresentation\getHTML(), ilDclMobFieldModel\getValidFieldProperties(), and ilDclMobRecordFieldModel\parseValue().