|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
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... | |
| setRequired ($a_required) | |
| Set Required. More... | |
| getRequired () | |
| Get Required Required. 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... | |
| getFieldSettings () | |
| 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... | |
| setLocked ($locked) | |
| getLocked () | |
| 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 | |
| $required | |
| $order | |
| $unique | |
| $locked | |
| $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 104 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 136 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 120 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 479 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 792 of file class.ilDclBaseFieldModel.php.
References $records, and ilDclCache\getRecordFieldCache().
Here is the call graph for this function:| ilDclBaseFieldModel::allowFilterInListView | ( | ) |
Reimplemented in ilDclStandardField, ilDclFileuploadFieldModel, ilDclFormulaFieldModel, ilDclMobFieldModel, ilDclPluginFieldModel, and ilDclReferenceFieldModel.
Definition at line 837 of file class.ilDclBaseFieldModel.php.
| ilDclBaseFieldModel::buildFromDBRecord | ( | $rec | ) |
Builds model from db record.
| $rec |
Definition at line 436 of file class.ilDclBaseFieldModel.php.
References setDatatypeId(), setDescription(), setId(), setLocked(), setRequired(), 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 913 of file class.ilDclBaseFieldModel.php.
| ilDclBaseFieldModel::checkTitlesForImport | ( | array & | $titles, |
| array & | $import_fields | ||
| ) |
| array | $titles | |
| array | $import_fields |
Reimplemented in ilDclTextFieldModel.
Definition at line 953 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 729 of file class.ilDclBaseFieldModel.php.
References $table, 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 716 of file class.ilDclBaseFieldModel.php.
References $form, checkValidity(), and getId().
Here is the call graph for this function:| ilDclBaseFieldModel::cloneProperties | ( | ilDclBaseFieldModel | $originalField | ) |
| ilDclBaseFieldModel | $originalField |
Reimplemented in ilDclSelectionFieldModel.
Definition at line 802 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 770 of file class.ilDclBaseFieldModel.php.
References cloneProperties(), doCreate(), ilDclCache\getFieldCache(), getId(), ilDclCache\setCloneOf(), setDatatypeId(), setDescription(), setExportable(), setLocked(), setOrder(), setRequired(), 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 452 of file class.ilDclBaseFieldModel.php.
References $DIC, $id, $ilDB, $query, ilDclTable\_tableExists(), addToTableViews(), getDatatypeId(), getDescription(), getId(), getLocked(), getRequired(), getTableId(), getTitle(), isUnique(), setId(), setLocked(), 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 561 of file class.ilDclBaseFieldModel.php.
References $DIC, $ilDB, $query, getFieldSettings(), getId(), ilDclTableFieldSetting\getInstance(), and getTableId().
Here is the call graph for this function:| ilDclBaseFieldModel::doRead | ( | ) |
Read field.
Reimplemented in ilDclStandardField.
Definition at line 410 of file class.ilDclBaseFieldModel.php.
References $DIC, $ilDB, $query, getId(), loadProperties(), loadTableFieldSetting(), setDatatypeId(), setDescription(), setLocked(), setRequired(), 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 490 of file class.ilDclBaseFieldModel.php.
References $DIC, $ilDB, getDatatypeId(), getDescription(), getId(), getLocked(), getRequired(), 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 942 of file class.ilDclBaseFieldModel.php.
References $row, $worksheet, and getTitle().
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 993 of file class.ilDclBaseFieldModel.php.
References $form, getDatatypeId(), getDescription(), getId(), getProperty(), getRequired(), getTableId(), getTitle(), getValidFieldProperties(), and isUnique().
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 1037 of file class.ilDclBaseFieldModel.php.
| ilDclBaseFieldModel::getDatatype | ( | ) |
Definition at line 312 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 261 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 323 of file class.ilDclBaseFieldModel.php.
References loadDatatype().
Here is the call graph for this function:| ilDclBaseFieldModel::getDescription | ( | ) |
Get description.
Definition at line 237 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 369 of file class.ilDclBaseFieldModel.php.
References $exportable, and loadExportability().
Here is the call graph for this function:| ilDclBaseFieldModel::getFieldSettings | ( | ) |
Definition at line 580 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::getId | ( | ) |
Get field id.
Definition at line 167 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(), getFieldSettings(), 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(), ilDclStandardField\hasNumericSorting(), loadProperties(), loadTableFieldSetting(), ilDclSelectionFieldModel\multiPropertyChanged(), ilDclSelectionFieldModel\reorderExistingValues(), setProperty(), ilDclSelectionFieldModel\setProperty(), and updateTableFieldSetting().
Here is the caller graph for this function:| ilDclBaseFieldModel::getLocked | ( | ) |
Reimplemented in ilDclStandardField.
Definition at line 706 of file class.ilDclBaseFieldModel.php.
References $locked.
Referenced by doCreate(), and doUpdate().
Here is the caller graph for this function:| ilDclBaseFieldModel::getOrder | ( | ) |
Definition at line 588 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 635 of file class.ilDclBaseFieldModel.php.
References $key, and 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 650 of file class.ilDclBaseFieldModel.php.
References $key, 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 878 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 851 of file class.ilDclBaseFieldModel.php.
References $DIC, $ilDB, and getId().
Here is the call graph for this function:| ilDclBaseFieldModel::getRequired | ( | ) |
Get Required Required.
Definition at line 287 of file class.ilDclBaseFieldModel.php.
References $required.
Referenced by doCreate(), doUpdate(), fillPropertiesForm(), and ilDclSelectionFieldModel\fillPropertiesForm().
Here is the caller graph for this function:| ilDclBaseFieldModel::getSortField | ( | ) |
Returns the sort-field id.
Reimplemented in ilDclStandardField.
Definition at line 888 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 335 of file class.ilDclBaseFieldModel.php.
References getStorageLocationOverride(), and loadDatatype().
Here is the call graph for this function:| ilDclBaseFieldModel::getStorageLocationOverride | ( | ) |
Definition at line 922 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 189 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 215 of file class.ilDclBaseFieldModel.php.
References $title.
Referenced by checkTitlesForImport(), ilDclTextFieldModel\checkTitlesForImport(), doCreate(), doUpdate(), fillHeaderExcel(), ilDclTextFieldModel\fillHeaderExcel(), fillPropertiesForm(), ilDclSelectionFieldModel\fillPropertiesForm(), ilDclFieldFactory\getClassPathByInstance(), and getSortField().
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 689 of file class.ilDclBaseFieldModel.php.
Referenced by cloneProperties(), fillPropertiesForm(), and storePropertiesFromForm().
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 898 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 622 of file class.ilDclBaseFieldModel.php.
References $key, and 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 1024 of file class.ilDclBaseFieldModel.php.
| ilDclBaseFieldModel::isStandardField | ( | ) |
Reimplemented in ilDclStandardField.
Definition at line 401 of file class.ilDclBaseFieldModel.php.
Referenced by getDatatypeId().
Here is the caller graph for this function:| ilDclBaseFieldModel::isUnique | ( | ) |
Reimplemented in ilDclStandardField.
Definition at line 295 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 349 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 381 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 611 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 359 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 755 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 248 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 226 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 829 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 156 of file class.ilDclBaseFieldModel.php.
Referenced by buildFromDBRecord(), and doCreate().
Here is the caller graph for this function:| ilDclBaseFieldModel::setLocked | ( | $locked | ) |
| boolean | $locked |
Definition at line 697 of file class.ilDclBaseFieldModel.php.
References $locked.
Referenced by buildFromDBRecord(), cloneStructure(), ilDclStandardField\cloneStructure(), doCreate(), and doRead().
Here is the caller graph for this function:| ilDclBaseFieldModel::setOrder | ( | $order | ) |
| $order |
Definition at line 601 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 667 of file class.ilDclBaseFieldModel.php.
References $key, $property, getId(), and loadProperties().
Referenced by storePropertiesFromForm().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDclBaseFieldModel::setRequired | ( | $a_required | ) |
Set Required.
| boolean | $a_required | Required |
Definition at line 276 of file class.ilDclBaseFieldModel.php.
Referenced by buildFromDBRecord(), cloneStructure(), ilDclStandardField\cloneStructure(), and doRead().
Here is the caller graph for this function:| ilDclBaseFieldModel::setStorageLocationOverride | ( | $storage_location_override | ) |
| int | null | $storage_location_override |
Definition at line 931 of file class.ilDclBaseFieldModel.php.
References $storage_location_override.
| ilDclBaseFieldModel::setTableId | ( | $a_id | ) |
Set table id.
| int | $a_id |
Definition at line 178 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 200 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 304 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 971 of file class.ilDclBaseFieldModel.php.
References $form, $property, ilDclFieldFactory\getFieldRepresentationInstance(), getPropertyInstance(), getValidFieldProperties(), and setProperty().
Here is the call graph for this function:| ilDclBaseFieldModel::toArray | ( | ) |
Definition at line 392 of file class.ilDclBaseFieldModel.php.
| ilDclBaseFieldModel::updateProperties | ( | ) |
Update properties of this field in Database.
Definition at line 538 of file class.ilDclBaseFieldModel.php.
Referenced by doUpdate().
Here is the caller graph for this function:
|
protected |
update exportable and fieldorder
Definition at line 550 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 65 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 61 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 53 of file class.ilDclBaseFieldModel.php.
Referenced by getLocked(), and setLocked().
|
protected |
Definition at line 45 of file class.ilDclBaseFieldModel.php.
Referenced by getOrder(), and setOrder().
|
protected |
Definition at line 57 of file class.ilDclBaseFieldModel.php.
Referenced by setProperty(), storePropertiesFromForm(), and ilDclSelectionFieldModel\storePropertiesFromForm().
|
protected |
Definition at line 41 of file class.ilDclBaseFieldModel.php.
Referenced by getRequired().
|
protected |
Definition at line 70 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 49 of file class.ilDclBaseFieldModel.php.
Referenced by isUnique(), and setUnique().
| const ilDclBaseFieldModel::EDIT_VIEW = 2 |
Definition at line 98 of file class.ilDclBaseFieldModel.php.
| const ilDclBaseFieldModel::EXPORTABLE_VIEW = 4 |
Definition at line 99 of file class.ilDclBaseFieldModel.php.
| const ilDclBaseFieldModel::PROP_DATE_SELECTION_OPTIONS = "date_selection_options" |
Definition at line 93 of file class.ilDclBaseFieldModel.php.
| const ilDclBaseFieldModel::PROP_DATE_SELECTION_TYPE = "date_selection_type" |
Definition at line 94 of file class.ilDclBaseFieldModel.php.
| const ilDclBaseFieldModel::PROP_DISPLAY_COPY_LINK_ACTION_MENU = "display_action_menu" |
Definition at line 87 of file class.ilDclBaseFieldModel.php.
Referenced by ilDclIliasReferenceFieldRepresentation\buildFieldCreationInput(), ilDclIliasReferenceRecordRepresentation\getHTML(), and ilDclIliasReferenceFieldModel\getValidFieldProperties().
| const ilDclBaseFieldModel::PROP_FORMULA_EXPRESSION = "expression" |
Definition at line 86 of file class.ilDclBaseFieldModel.php.
Referenced by ilDclFormulaRecordFieldModel\__construct(), ilDclFormulaFieldRepresentation\buildFieldCreationInput(), and ilDclFormulaFieldModel\getValidFieldProperties().
| const ilDclBaseFieldModel::PROP_HEIGHT = "height" |
Definition at line 82 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 84 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 83 of file class.ilDclBaseFieldModel.php.
Referenced by ilDclRecordListTableGUI\buildData(), ilDclIliasReferenceFieldRepresentation\buildFieldCreationInput(), and ilDclIliasReferenceFieldModel\getValidFieldProperties().
| const ilDclBaseFieldModel::PROP_LENGTH = "lenght" |
General properties.
Definition at line 75 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 88 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 85 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 90 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 77 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 80 of file class.ilDclBaseFieldModel.php.
Referenced by ilDclReferenceFieldRepresentation\buildFieldCreationInput(), ilDclReferenceRecordRepresentation\getHTML(), and ilDclReferenceFieldModel\getValidFieldProperties().
| const ilDclBaseFieldModel::PROP_REGEX = "regex" |
Definition at line 76 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 89 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 91 of file class.ilDclBaseFieldModel.php.
| const ilDclBaseFieldModel::PROP_TEXT_SELECTION_TYPE = "text_selection_type" |
Definition at line 92 of file class.ilDclBaseFieldModel.php.
| const ilDclBaseFieldModel::PROP_TEXTAREA = "text_area" |
Definition at line 79 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 78 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 81 of file class.ilDclBaseFieldModel.php.
Referenced by ilDclMobFieldRepresentation\buildFieldCreationInput(), ilDclMobRecordRepresentation\getHTML(), ilDclMobFieldModel\getValidFieldProperties(), and ilDclMobRecordFieldModel\parseValue().