|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class ilDclBaseFieldModel. More...
Inheritance diagram for ilDclStandardField:
Collaboration diagram for ilDclStandardField:Public Member Functions | |
| doRead () | |
| Read field. More... | |
| doCreate () | |
| Create new field. More... | |
| doUpdate () | |
| Update field. More... | |
| cloneStructure ($original_record) | |
| getLocked () | |
| isStandardField () | |
| isUnique () | |
| 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 () | |
| hasNumericSorting () | |
| allowFilterInListView () | |
| fillHeaderExcel (ilExcel $worksheet, &$row, &$col) | |
| getValueFromExcel ($excel, $row, $col) | |
| afterClone ($records) | |
Public Member Functions inherited from ilDclBaseFieldModel | |
| __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 | _getStandardFieldsAsArray () |
| static | _getStandardFields ($table_id) |
| static | _getNonImportableStandardFieldTitles () |
| static | _getImportableStandardFieldTitle () |
| static | _isStandardField ($field_id) |
| static | _getDatatypeForId ($id) |
| gives you the datatype id of a specified standard field. More... | |
Static Public Member Functions inherited from ilDclBaseFieldModel | |
| static | _getTitleInvalidChars ($a_as_regex=true) |
| All valid chars for filed titles. More... | |
| static | _getFieldIdByTitle ($title, $table_id) |
Additional Inherited Members | |
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" |
| 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 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) | |
Protected Attributes inherited from ilDclBaseFieldModel | |
| $id | |
| $table_id | |
| $title | |
| $description | |
| $datatypeId | |
| $required | |
| $order | |
| $unique | |
| $locked | |
| $property = array() | |
| $exportable | |
| $datatype | |
| $storage_location_override = null | |
|
static |
gives you the datatype id of a specified standard field.
| int | $id | the id of the standardfield eg. "create_date" |
Definition at line 230 of file class.ilDclStandardField.php.
References ilDclBaseFieldModel\$datatype, and ilDclBaseFieldModel\$id.
Referenced by ilDclBaseFieldModel\getDatatypeId(), and ilDclTableViewFieldSetting\getFieldObject().
Here is the caller graph for this function:
|
static |
Definition at line 183 of file class.ilDclStandardField.php.
References $DIC, ilDclBaseFieldModel\$id, and $ilDB.
Referenced by ilDclContentImporter\getImportFieldsFromTitles().
Here is the caller graph for this function:
|
static |
Definition at line 149 of file class.ilDclStandardField.php.
References $DIC, ilDclBaseFieldModel\$id, and $ilDB.
Referenced by ilDclContentImporter\getImportFieldsFromTitles().
Here is the caller graph for this function:
|
static |
| $table_id |
Definition at line 130 of file class.ilDclStandardField.php.
References ilDclBaseFieldModel\$table_id.
|
static |
Definition at line 70 of file class.ilDclStandardField.php.
References $DIC, $lng, ilDclDatatype\INPUTFORMAT_DATETIME, ilDclDatatype\INPUTFORMAT_NONE, ilDclDatatype\INPUTFORMAT_NUMBER, and ilDclDatatype\INPUTFORMAT_TEXT.
|
static |
| $field_id |
Definition at line 210 of file class.ilDclStandardField.php.
Referenced by ilDclTableView\createFieldSetting(), ilDclBaseRecordModel\fillRecordFieldExcelExport(), ilDclBaseRecordModel\fillRecordFieldFormInput(), ilDclBaseRecordModel\getRecordFieldExportValue(), ilDclBaseRecordModel\getRecordFieldFormulaValue(), ilDclBaseRecordModel\getRecordFieldHTML(), ilDclBaseRecordModel\getRecordFieldPlainText(), ilDclBaseRecordModel\getRecordFieldRepresentationValue(), ilDclBaseRecordModel\getRecordFieldSortingValue(), ilDclBaseRecordModel\getRecordFieldValue(), ilDclBaseRecordModel\setRecordFieldValue(), and ilDclBaseRecordModel\setRecordFieldValueFromForm().
Here is the caller graph for this function:| ilDclStandardField::afterClone | ( | $records | ) |
| $records |
Reimplemented from ilDclBaseFieldModel.
Definition at line 427 of file class.ilDclStandardField.php.
| ilDclStandardField::allowFilterInListView | ( | ) |
Reimplemented from ilDclBaseFieldModel.
Definition at line 380 of file class.ilDclStandardField.php.
References ilDclCache\getTableCache(), and ilDclBaseFieldModel\getTableId().
Here is the call graph for this function:| ilDclStandardField::cloneStructure | ( | $original_record | ) |
| ilDclStandardField | $original_record |
Reimplemented from ilDclBaseFieldModel.
Definition at line 46 of file class.ilDclStandardField.php.
References doUpdate(), ilDclBaseFieldModel\setExportable(), ilDclBaseFieldModel\setLocked(), ilDclBaseFieldModel\setOrder(), ilDclBaseFieldModel\setRequired(), and ilDclBaseFieldModel\setUnique().
Here is the call graph for this function:| ilDclStandardField::doCreate | ( | ) |
Create new field.
Reimplemented from ilDclBaseFieldModel.
Definition at line 27 of file class.ilDclStandardField.php.
References $DIC, $ilLog, $message, and ilUtil\sendFailure().
Here is the call graph for this function:| ilDclStandardField::doRead | ( | ) |
Read field.
Reimplemented from ilDclBaseFieldModel.
Definition at line 17 of file class.ilDclStandardField.php.
References $DIC, $ilLog, $message, and ilUtil\sendFailure().
Here is the call graph for this function:| ilDclStandardField::doUpdate | ( | ) |
Update field.
Reimplemented from ilDclBaseFieldModel.
Definition at line 37 of file class.ilDclStandardField.php.
References ilDclBaseFieldModel\updateTableFieldSetting().
Referenced by cloneStructure().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDclStandardField::fillHeaderExcel | ( | ilExcel | $worksheet, |
| & | $row, | ||
| & | $col | ||
| ) |
| \ilExcel | $worksheet | |
| $row | ||
| $col |
Reimplemented from ilDclBaseFieldModel.
Definition at line 393 of file class.ilDclStandardField.php.
References $DIC, $lng, $row, ilDclBaseFieldModel\getId(), and ilExcel\setCell().
Here is the call graph for this function:| ilDclStandardField::getLocked | ( | ) |
Reimplemented from ilDclBaseFieldModel.
Definition at line 61 of file class.ilDclStandardField.php.
| ilDclStandardField::getRecordQueryFilterObject | ( | $filter_value = "", |
|
| ilDclBaseFieldModel | $sort_field = null |
||
| ) |
Returns a query-object for building the record-loader-sql-query.
| string | $filter_value | |
| ilDclBaseFieldModel | $sort_field |
Reimplemented from ilDclBaseFieldModel.
Definition at line 301 of file class.ilDclStandardField.php.
References $DIC, $from, $ilDB, ilDclBaseFieldModel\getDatatypeId(), ilDclDatatype\INPUTFORMAT_DATETIME, ilDclDatatype\INPUTFORMAT_NUMBER, and ilDclDatatype\INPUTFORMAT_TEXT.
Here is the call graph for this function:| ilDclStandardField::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 from ilDclBaseFieldModel.
Definition at line 270 of file class.ilDclStandardField.php.
References ilDclBaseFieldModel\getId().
Here is the call graph for this function:| ilDclStandardField::getSortField | ( | ) |
Reimplemented from ilDclBaseFieldModel.
Definition at line 355 of file class.ilDclStandardField.php.
References ilDclBaseFieldModel\getId().
Here is the call graph for this function:| ilDclStandardField::getValueFromExcel | ( | $excel, | |
| $row, | |||
| $col | |||
| ) |
| $excel | ilExcel |
| $row | |
| $col |
Definition at line 412 of file class.ilDclStandardField.php.
References $row, and ilObjUser\_lookupId().
Here is the call graph for this function:| ilDclStandardField::hasNumericSorting | ( | ) |
Reimplemented from ilDclBaseFieldModel.
Definition at line 367 of file class.ilDclStandardField.php.
References ilDclBaseFieldModel\getId().
Here is the call graph for this function:| ilDclStandardField::isStandardField | ( | ) |
Reimplemented from ilDclBaseFieldModel.
Definition at line 247 of file class.ilDclStandardField.php.
| ilDclStandardField::isUnique | ( | ) |
Reimplemented from ilDclBaseFieldModel.
Definition at line 256 of file class.ilDclStandardField.php.