ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class ilDclBaseFieldModel. More...
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 101 of file class.ilDclBaseFieldModel.php.
References doRead().
|
static |
$title | Title of the field |
$table_id | ID of table where the field belongs to |
Definition at line 133 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 117 of file class.ilDclBaseFieldModel.php.
Referenced by ilDclFieldEditGUI\initForm().
|
protected |
create ilDclTableViewFieldSettings for this field in each tableview
Definition at line 487 of file class.ilDclBaseFieldModel.php.
References ilDclTableView\getAllForTableId().
Referenced by doCreate().
ilDclBaseFieldModel::afterClone | ( | $records | ) |
$records |
Definition at line 818 of file class.ilDclBaseFieldModel.php.
References $records, and ilDclCache\getRecordFieldCache().
Referenced by ilDclReferenceFieldModel\getFieldRef().
ilDclBaseFieldModel::allowFilterInListView | ( | ) |
Definition at line 865 of file class.ilDclBaseFieldModel.php.
ilDclBaseFieldModel::buildFromDBRecord | ( | $rec | ) |
Builds model from db record.
$rec |
Definition at line 443 of file class.ilDclBaseFieldModel.php.
References setDatatypeId(), setDescription(), setId(), setLocked(), setRequired(), setTableId(), setTitle(), and setUnique().
ilDclBaseFieldModel::checkFieldCreationInput | ( | ilPropertyFormGUI | $form | ) |
Checks input of specific fields befor saving.
ilPropertyFormGUI | $form |
Definition at line 947 of file class.ilDclBaseFieldModel.php.
ilDclBaseFieldModel::checkTitlesForImport | ( | array & | $titles, |
array & | $import_fields | ||
) |
array | $titles | |
array | $import_fields |
Definition at line 987 of file class.ilDclBaseFieldModel.php.
References $title, getTitle(), and ilStr\isUtf8().
ilDclBaseFieldModel::checkValidity | ( | $value, | |
$record_id = null |
|||
) |
Check if input is valid.
$value | ||
null | $record_id |
ilDclInputException |
Definition at line 756 of file class.ilDclBaseFieldModel.php.
References $table, ilDclCache\getTableCache(), getTableId(), isUnique(), normalizeValue(), and ilDclInputException\UNIQUE_EXCEPTION.
Referenced by checkValidityFromForm().
ilDclBaseFieldModel::checkValidityFromForm | ( | ilPropertyFormGUI & | $form, |
$record_id = null |
|||
) |
ilPropertyFormGUI | $form | |
null | $record_id |
Definition at line 740 of file class.ilDclBaseFieldModel.php.
References checkValidity(), getId(), and ilPropertyFormGUI\getInput().
ilDclBaseFieldModel::cloneProperties | ( | ilDclBaseFieldModel | $originalField | ) |
ilDclBaseFieldModel | $originalField |
Definition at line 829 of file class.ilDclBaseFieldModel.php.
References getDatatypeId(), getId(), getProperty(), getValidFieldProperties(), ilDclDatatype\INPUTFORMAT_REFERENCE, and PROP_REFERENCE.
Referenced by cloneStructure().
ilDclBaseFieldModel::cloneStructure | ( | $original_id | ) |
$original_id |
ilException |
Definition at line 796 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.
ilDclBaseFieldModel::doCreate | ( | ) |
Create new field.
Definition at line 459 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().
ilDclBaseFieldModel::doDelete | ( | ) |
Remove field and properties.
Definition at line 574 of file class.ilDclBaseFieldModel.php.
References $DIC, $ilDB, $query, getFieldSettings(), getId(), ilDclTableFieldSetting\getInstance(), and getTableId().
ilDclBaseFieldModel::doRead | ( | ) |
Read field.
Definition at line 416 of file class.ilDclBaseFieldModel.php.
References $DIC, $ilDB, $query, getId(), loadProperties(), loadTableFieldSetting(), setDatatypeId(), setDescription(), setLocked(), setRequired(), setTableId(), setTitle(), and setUnique().
Referenced by __construct().
ilDclBaseFieldModel::doUpdate | ( | ) |
Update field.
Definition at line 498 of file class.ilDclBaseFieldModel.php.
References $DIC, $ilDB, getDatatypeId(), getDescription(), getId(), getLocked(), getRequired(), getTableId(), getTitle(), isUnique(), updateProperties(), and updateTableFieldSetting().
ilDclBaseFieldModel::fillHeaderExcel | ( | ilExcel | $worksheet, |
& | $row, | ||
& | $col | ||
) |
ilExcel | $worksheet | |
$row | ||
$col |
Definition at line 976 of file class.ilDclBaseFieldModel.php.
References $row, getTitle(), and ilExcel\setCell().
ilDclBaseFieldModel::fillPropertiesForm | ( | ilPropertyFormGUI & | $form | ) |
called to fill the 'edit field' form
ilPropertyFormGUI | $form |
Definition at line 1027 of file class.ilDclBaseFieldModel.php.
References $values, getDatatypeId(), getDescription(), getId(), getProperty(), getRequired(), getTableId(), getTitle(), getValidFieldProperties(), isUnique(), and ilPropertyFormGUI\setValuesByArray().
ilDclBaseFieldModel::getConfirmationGUI | ( | ilPropertyFormGUI | $form | ) |
called by ilDclFieldEditGUI if isConfirmationRequired returns true
ilPropertyFormGUI | $form |
Definition at line 1071 of file class.ilDclBaseFieldModel.php.
References $DIC, ilFormGUI\getFormAction(), and ilPropertyFormGUI\getInput().
ilDclBaseFieldModel::getDatatype | ( | ) |
Definition at line 313 of file class.ilDclBaseFieldModel.php.
References $datatype, and loadDatatype().
Referenced by ilDclFieldFactory\getClassPathByInstance(), and ilDclFieldFactory\getFieldTypeByInstance().
ilDclBaseFieldModel::getDatatypeId | ( | ) |
Get datatype_id.
Definition at line 260 of file class.ilDclBaseFieldModel.php.
References $datatypeId, ilDclStandardField\_getDatatypeForId(), getId(), and isStandardField().
Referenced by cloneProperties(), doCreate(), doUpdate(), ilDclSelectionFieldModel\fillPropertiesForm(), fillPropertiesForm(), ilDclStandardField\getRecordQueryFilterObject(), and hasNumericSorting().
ilDclBaseFieldModel::getDatatypeTitle | ( | ) |
Definition at line 324 of file class.ilDclBaseFieldModel.php.
References loadDatatype().
ilDclBaseFieldModel::getDescription | ( | ) |
Get description.
Definition at line 236 of file class.ilDclBaseFieldModel.php.
References $description.
Referenced by doCreate(), doUpdate(), ilDclSelectionFieldModel\fillPropertiesForm(), fillPropertiesForm(), and ilDclBaseFieldRepresentation\setupInputField().
ilDclBaseFieldModel::getExportable | ( | ) |
Definition at line 374 of file class.ilDclBaseFieldModel.php.
References $exportable, and loadExportability().
ilDclBaseFieldModel::getFieldSettings | ( | ) |
Definition at line 594 of file class.ilDclBaseFieldModel.php.
References getId(), and ActiveRecord\where().
Referenced by doDelete().
ilDclBaseFieldModel::getId | ( | ) |
Get field id.
Definition at line 166 of file class.ilDclBaseFieldModel.php.
References $id.
Referenced by ilDclTextFieldModel\checkValidity(), checkValidityFromForm(), ilDclTextFieldModel\checkValidityOfURLField(), ilDclSelectionFieldModel\cloneProperties(), cloneProperties(), cloneStructure(), doCreate(), ilDclSelectionFieldModel\doDelete(), doDelete(), doRead(), doUpdate(), ilDclStandardField\fillHeaderExcel(), ilDclSelectionFieldModel\fillPropertiesForm(), fillPropertiesForm(), ilDclFieldFactory\getClassPathByInstance(), getDatatypeId(), ilDclFieldFactory\getFieldModelInstanceByClass(), ilDclReferenceFieldModel\getFieldRef(), ilDclCache\getFieldRepresentation(), ilDclFieldFactory\getFieldRepresentationInstance(), getFieldSettings(), ilDclFieldFactory\getFieldTypeByInstance(), ilDclSelectionFieldModel\getProperty(), ilDclFieldFactory\getRecordFieldInstance(), ilDclTextFieldModel\getRecordQueryFilterObject(), ilDclBooleanFieldModel\getRecordQueryFilterObject(), ilDclDatetimeFieldModel\getRecordQueryFilterObject(), ilDclNumberFieldModel\getRecordQueryFilterObject(), ilDclSelectionFieldModel\getRecordQueryFilterObject(), ilDclFileuploadFieldModel\getRecordQueryFilterObject(), ilDclIliasReferenceFieldModel\getRecordQueryFilterObject(), ilDclReferenceFieldModel\getRecordQueryFilterObject(), ilDclIliasReferenceFieldModel\getRecordQuerySortObject(), ilDclFileuploadFieldModel\getRecordQuerySortObject(), ilDclReferenceFieldModel\getRecordQuerySortObject(), ilDclSelectionFieldModel\getRecordQuerySortObject(), ilDclStandardField\getRecordQuerySortObject(), getRecordQuerySortObject(), ilDclStandardField\getSortField(), ilDclStandardField\hasNumericSorting(), loadProperties(), loadTableFieldSetting(), ilDclSelectionFieldModel\multiPropertyChanged(), ilDclSelectionFieldModel\reorderExistingValues(), ilDclSelectionFieldModel\setProperty(), setProperty(), and updateTableFieldSetting().
ilDclBaseFieldModel::getLocked | ( | ) |
Definition at line 730 of file class.ilDclBaseFieldModel.php.
References $locked.
Referenced by doCreate(), and doUpdate().
ilDclBaseFieldModel::getOrder | ( | ) |
Definition at line 603 of file class.ilDclBaseFieldModel.php.
References $order, and loadTableFieldSetting().
ilDclBaseFieldModel::getProperty | ( | $key | ) |
Returns a certain property of a field.
$key |
Definition at line 655 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().
ilDclBaseFieldModel::getPropertyInstance | ( | $key | ) |
Return ActiveRecord of property.
$key |
Definition at line 670 of file class.ilDclBaseFieldModel.php.
References $key, hasProperty(), and loadProperties().
Referenced by getProperty(), ilDclSelectionFieldModel\storePropertiesFromForm(), and storePropertiesFromForm().
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 |
Definition at line 908 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 |
Definition at line 879 of file class.ilDclBaseFieldModel.php.
References $DIC, $ilDB, and getId().
ilDclBaseFieldModel::getRequired | ( | ) |
Get Required Required.
Definition at line 286 of file class.ilDclBaseFieldModel.php.
References $required.
Referenced by doCreate(), doUpdate(), ilDclSelectionFieldModel\fillPropertiesForm(), fillPropertiesForm(), and ilDclBaseFieldRepresentation\setupInputField().
ilDclBaseFieldModel::getSortField | ( | ) |
Returns the sort-field id.
Definition at line 919 of file class.ilDclBaseFieldModel.php.
References getTitle().
ilDclBaseFieldModel::getStorageLocation | ( | ) |
Get storage location for the model.
Definition at line 337 of file class.ilDclBaseFieldModel.php.
References getStorageLocationOverride(), and loadDatatype().
ilDclBaseFieldModel::getStorageLocationOverride | ( | ) |
Definition at line 956 of file class.ilDclBaseFieldModel.php.
References $storage_location_override.
Referenced by getStorageLocation().
ilDclBaseFieldModel::getTableId | ( | ) |
Get table id.
Definition at line 188 of file class.ilDclBaseFieldModel.php.
References $table_id.
Referenced by ilDclStandardField\allowFilterInListView(), ilDclDatetimeFieldModel\checkValidity(), ilDclTextFieldModel\checkValidity(), ilDclFileuploadFieldModel\checkValidity(), checkValidity(), ilDclTextFieldModel\checkValidityOfURLField(), doCreate(), doDelete(), doUpdate(), ilDclSelectionFieldModel\fillPropertiesForm(), fillPropertiesForm(), loadTableFieldSetting(), ilDclSelectionFieldModel\multiPropertyChanged(), ilDclSelectionFieldModel\reorderExistingValues(), and updateTableFieldSetting().
ilDclBaseFieldModel::getTitle | ( | ) |
Get title.
Definition at line 214 of file class.ilDclBaseFieldModel.php.
References $title.
Referenced by ilDclTextFieldModel\checkTitlesForImport(), checkTitlesForImport(), doCreate(), doUpdate(), ilDclTextFieldModel\fillHeaderExcel(), fillHeaderExcel(), ilDclSelectionFieldModel\fillPropertiesForm(), fillPropertiesForm(), ilDclFieldFactory\getClassPathByInstance(), and getSortField().
ilDclBaseFieldModel::getValidFieldProperties | ( | ) |
Returns all valid properties for a field-type.
Definition at line 712 of file class.ilDclBaseFieldModel.php.
Referenced by cloneProperties(), fillPropertiesForm(), and storePropertiesFromForm().
ilDclBaseFieldModel::hasNumericSorting | ( | ) |
Set to true, when the sorting should be handled numerical.
Definition at line 930 of file class.ilDclBaseFieldModel.php.
References getDatatypeId(), and ilDclDatatype\INPUTFORMAT_NUMBER.
ilDclBaseFieldModel::hasProperty | ( | $key | ) |
Checks if a certain property for a field is set.
$key |
Definition at line 640 of file class.ilDclBaseFieldModel.php.
References $key, loadProperties(), and Sabre\VObject\property.
Referenced by ilDclTextFieldModel\checkTitlesForImport(), ilDclFieldFactory\getClassPathByInstance(), ilDclFieldFactory\getFieldTypeByInstance(), getPropertyInstance(), ilDclReferenceFieldModel\getRecordQuerySortObject(), ilDclTextFieldModel\getRecordQuerySortObject(), and ilDclFileuploadFieldModel\getSupportedExtensions().
ilDclBaseFieldModel::isConfirmationRequired | ( | ilPropertyFormGUI | $form | ) |
called by ilDclFieldEditGUI when updating field properties if you overwrite this method, remember to also overwrite getConfirmationGUI
ilPropertyFormGUI | $form |
Definition at line 1058 of file class.ilDclBaseFieldModel.php.
ilDclBaseFieldModel::isStandardField | ( | ) |
Definition at line 407 of file class.ilDclBaseFieldModel.php.
Referenced by getDatatypeId().
ilDclBaseFieldModel::isUnique | ( | ) |
Definition at line 295 of file class.ilDclBaseFieldModel.php.
References $unique.
Referenced by ilDclDatetimeFieldModel\checkValidity(), ilDclTextFieldModel\checkValidity(), ilDclFileuploadFieldModel\checkValidity(), checkValidity(), ilDclTextFieldModel\checkValidityOfURLField(), doCreate(), doUpdate(), ilDclSelectionFieldModel\fillPropertiesForm(), and fillPropertiesForm().
|
protected |
Load datatype for model.
Definition at line 352 of file class.ilDclBaseFieldModel.php.
References ilDclCache\getDatatype().
Referenced by getDatatype(), getDatatypeTitle(), and getStorageLocation().
|
private |
Load exportability.
Definition at line 387 of file class.ilDclBaseFieldModel.php.
References loadTableFieldSetting().
Referenced by getExportable().
|
protected |
Get all properties of a field.
Definition at line 627 of file class.ilDclBaseFieldModel.php.
References ilDclCache\getFieldProperties(), and getId().
Referenced by doRead(), getPropertyInstance(), hasProperty(), and setProperty().
|
protected |
loadTableFieldSetting
Definition at line 363 of file class.ilDclBaseFieldModel.php.
References getId(), ilDclTableFieldSetting\getInstance(), and getTableId().
Referenced by doRead(), getOrder(), and loadExportability().
|
protected |
$value |
Definition at line 781 of file class.ilDclBaseFieldModel.php.
Referenced by ilDclTextFieldModel\checkValidity(), ilDclFileuploadFieldModel\checkValidity(), and checkValidity().
ilDclBaseFieldModel::setDatatypeId | ( | $a_id | ) |
Set datatype id.
int | $a_id |
Definition at line 247 of file class.ilDclBaseFieldModel.php.
Referenced by buildFromDBRecord(), cloneStructure(), and doRead().
ilDclBaseFieldModel::setDescription | ( | $a_desc | ) |
Set description.
string | $a_desc |
Definition at line 225 of file class.ilDclBaseFieldModel.php.
Referenced by buildFromDBRecord(), cloneStructure(), and doRead().
ilDclBaseFieldModel::setExportable | ( | $exportable | ) |
boolean | $exportable |
Definition at line 856 of file class.ilDclBaseFieldModel.php.
References $exportable.
Referenced by ilDclStandardField\cloneStructure(), and cloneStructure().
ilDclBaseFieldModel::setId | ( | $a_id | ) |
Set field id.
int | $a_id |
Definition at line 155 of file class.ilDclBaseFieldModel.php.
Referenced by buildFromDBRecord(), and doCreate().
ilDclBaseFieldModel::setLocked | ( | $locked | ) |
boolean | $locked |
Definition at line 721 of file class.ilDclBaseFieldModel.php.
References $locked.
Referenced by buildFromDBRecord(), ilDclStandardField\cloneStructure(), cloneStructure(), doCreate(), and doRead().
ilDclBaseFieldModel::setOrder | ( | $order | ) |
$order |
Definition at line 616 of file class.ilDclBaseFieldModel.php.
References $order.
Referenced by ilDclStandardField\cloneStructure(), and cloneStructure().
ilDclBaseFieldModel::setProperty | ( | $key, | |
$value | |||
) |
Set a property for a field (does not save)
$key | |
$value |
Definition at line 689 of file class.ilDclBaseFieldModel.php.
References $key, $property, getId(), loadProperties(), and Sabre\VObject\property.
Referenced by ilDclReferenceFieldModel\getFieldRef(), and storePropertiesFromForm().
ilDclBaseFieldModel::setRequired | ( | $a_required | ) |
Set Required.
boolean | $a_required | Required |
Definition at line 275 of file class.ilDclBaseFieldModel.php.
Referenced by buildFromDBRecord(), ilDclStandardField\cloneStructure(), cloneStructure(), and doRead().
ilDclBaseFieldModel::setStorageLocationOverride | ( | $storage_location_override | ) |
int | null | $storage_location_override |
Definition at line 965 of file class.ilDclBaseFieldModel.php.
References $storage_location_override.
ilDclBaseFieldModel::setTableId | ( | $a_id | ) |
Set table id.
int | $a_id |
Definition at line 177 of file class.ilDclBaseFieldModel.php.
Referenced by buildFromDBRecord(), and doRead().
ilDclBaseFieldModel::setTitle | ( | $a_title | ) |
Set title.
string | $a_title |
Definition at line 199 of file class.ilDclBaseFieldModel.php.
Referenced by buildFromDBRecord(), cloneStructure(), and doRead().
ilDclBaseFieldModel::setUnique | ( | $unique | ) |
bool | $unique |
Definition at line 304 of file class.ilDclBaseFieldModel.php.
References $unique.
Referenced by buildFromDBRecord(), ilDclStandardField\cloneStructure(), cloneStructure(), and doRead().
ilDclBaseFieldModel::storePropertiesFromForm | ( | ilPropertyFormGUI | $form | ) |
called when saving the 'edit field' form
ilPropertyFormGUI | $form |
Definition at line 1005 of file class.ilDclBaseFieldModel.php.
References $property, ilDclFieldFactory\getFieldRepresentationInstance(), ilPropertyFormGUI\getInput(), getPropertyInstance(), getValidFieldProperties(), and setProperty().
ilDclBaseFieldModel::toArray | ( | ) |
Definition at line 398 of file class.ilDclBaseFieldModel.php.
ilDclBaseFieldModel::updateProperties | ( | ) |
Update properties of this field in Database.
Definition at line 550 of file class.ilDclBaseFieldModel.php.
References Sabre\VObject\property.
Referenced by doUpdate(), and ilDclReferenceFieldModel\getFieldRef().
|
protected |
update exportable and fieldorder
Definition at line 562 of file class.ilDclBaseFieldModel.php.
References getId(), ilDclTableFieldSetting\getInstance(), and getTableId().
Referenced by doCreate(), ilDclStandardField\doUpdate(), and doUpdate().
|
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(), ilDclSelectionFieldModel\storePropertiesFromForm(), and storePropertiesFromForm().
|
protected |
Definition at line 41 of file class.ilDclBaseFieldModel.php.
Referenced by getRequired().
|
protected |
Definition at line 69 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(), ilDclTextFieldModel\checkTitlesForImport(), 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 94 of file class.ilDclBaseFieldModel.php.
const ilDclBaseFieldModel::EXPORTABLE_VIEW = 4 |
Definition at line 95 of file class.ilDclBaseFieldModel.php.
const ilDclBaseFieldModel::PROP_DATE_SELECTION_OPTIONS = "date_selection_options" |
Definition at line 91 of file class.ilDclBaseFieldModel.php.
const ilDclBaseFieldModel::PROP_DATE_SELECTION_TYPE = "date_selection_type" |
Definition at line 92 of file class.ilDclBaseFieldModel.php.
const ilDclBaseFieldModel::PROP_DISPLAY_COPY_LINK_ACTION_MENU = "display_action_menu" |
Definition at line 85 of file class.ilDclBaseFieldModel.php.
Referenced by ilDclIliasReferenceFieldRepresentation\buildFieldCreationInput(), ilDclIliasReferenceRecordRepresentation\getHTML(), and ilDclIliasReferenceFieldModel\getValidFieldProperties().
const ilDclBaseFieldModel::PROP_FORMULA_EXPRESSION = "expression" |
Definition at line 84 of file class.ilDclBaseFieldModel.php.
Referenced by ilDclFormulaRecordFieldModel\__construct(), ilDclFormulaFieldRepresentation\buildFieldCreationInput(), and ilDclFormulaFieldModel\getValidFieldProperties().
const ilDclBaseFieldModel::PROP_HEIGHT = "height" |
Definition at line 80 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 82 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 81 of file class.ilDclBaseFieldModel.php.
Referenced by ilDclRecordListTableGUI\buildData(), ilDclIliasReferenceFieldRepresentation\buildFieldCreationInput(), and ilDclIliasReferenceFieldModel\getValidFieldProperties().
const ilDclBaseFieldModel::PROP_LENGTH = "lenght" |
General properties.
Definition at line 73 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 86 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 83 of file class.ilDclBaseFieldModel.php.
Referenced by ilDclReferenceFieldRepresentation\buildFieldCreationInput(), ilDclReferenceRecordFieldModel\getExportValue(), ilDclReferenceFieldRepresentation\getInputField(), ilDclReferenceFieldModel\getRecordQueryFilterObject(), ilDclReferenceFieldModel\getValidFieldProperties(), ilDclReferenceRecordFieldModel\getValueFromExcel(), ilDataCollectionDataSet\getXmlNamespace(), and ilDclReferenceFieldRepresentation\passThroughFilter().
const ilDclBaseFieldModel::PROP_PLUGIN_HOOK_NAME = "plugin_hook_name" |
Definition at line 88 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 75 of file class.ilDclBaseFieldModel.php.
Referenced by ilDclReferenceFieldRepresentation\addFilterInputFieldToTable(), ilDclReferenceFieldRepresentation\buildFieldCreationInput(), cloneProperties(), ilDclReferenceRecordFieldModel\getExportValue(), ilDclReferenceFieldModel\getFieldRef(), ilDclReferenceRecordRepresentation\getHTML(), ilDclReferenceFieldRepresentation\getInputField(), ilDclReferenceRecordRepresentation\getLinkHTML(), ilDclReferenceRecordFieldModel\getReferenceFromValue(), ilDclReferenceFieldModel\getValidFieldProperties(), and ilDataCollectionDataSet\getXmlNamespace().
const ilDclBaseFieldModel::PROP_REFERENCE_LINK = "reference_link" |
Definition at line 78 of file class.ilDclBaseFieldModel.php.
Referenced by ilDclReferenceFieldRepresentation\buildFieldCreationInput(), ilDclReferenceRecordRepresentation\getHTML(), and ilDclReferenceFieldModel\getValidFieldProperties().
const ilDclBaseFieldModel::PROP_REGEX = "regex" |
Definition at line 74 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 87 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 89 of file class.ilDclBaseFieldModel.php.
const ilDclBaseFieldModel::PROP_TEXT_SELECTION_TYPE = "text_selection_type" |
Definition at line 90 of file class.ilDclBaseFieldModel.php.
const ilDclBaseFieldModel::PROP_TEXTAREA = "text_area" |
Definition at line 77 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 76 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 79 of file class.ilDclBaseFieldModel.php.
Referenced by ilDclMobFieldRepresentation\buildFieldCreationInput(), ilDclMobRecordRepresentation\getHTML(), ilDclMobFieldModel\getValidFieldProperties(), and ilDclMobRecordFieldModel\parseValue().