Class ilDclCache.
More...
◆ buildFieldFromRecord()
static ilDclCache::buildFieldFromRecord |
( |
|
$rec | ) |
|
|
static |
- Parameters
-
- Returns
- ilDclBaseFieldModel
Definition at line 298 of file class.ilDclCache.php.
References $fields_cache, and ilDclFieldFactory\getFieldModelInstanceByClass().
Referenced by ilDclTable\getFieldIds().
304 $field->setId($rec[
"id"]);
305 $field->setTableId($rec[
"table_id"]);
306 $field->setTitle($rec[
"title"]);
307 $field->setDescription($rec[
"description"]);
308 $field->setDatatypeId($rec[
"datatype_id"]);
309 $field->setRequired($rec[
"required"]);
310 $field->setUnique($rec[
"is_unique"]);
311 $field->setLocked($rec[
"is_locked"]);
Class ilDclBaseFieldModel.
static getFieldModelInstanceByClass(ilDclBaseFieldModel $field, $field_id=null)
Gets the correct instance of a fieldModel class Checks if a field is a plugin a replaces the fieldMod...
◆ getCloneOf()
static ilDclCache::getCloneOf |
( |
|
$id, |
|
|
|
$type |
|
) |
| |
|
static |
◆ getDatatype()
static ilDclCache::getDatatype |
( |
|
$datatyp_id | ) |
|
|
static |
◆ getFieldCache()
static ilDclCache::getFieldCache |
( |
|
$field_id = 0 | ) |
|
|
static |
- Parameters
-
- Returns
- ilDclBaseFieldModel
Definition at line 150 of file class.ilDclCache.php.
References $fields_cache, and ilDclFieldFactory\getFieldModelInstance().
Referenced by ilDclFieldEditGUI\__construct(), ilDclReferenceFieldRepresentation\addFilterInputFieldToTable(), ilDclBaseFieldModel\cloneStructure(), ilDclTable\deleteField(), ilDclFieldListGUI\deleteFields(), ilDataCollectionDataSet\getDependencies(), ilDclTableViewFieldSetting\getFieldObject(), ilDclReferenceFieldModel\getFieldRef(), ilDclReferenceFieldRepresentation\getInputField(), ilDclReferenceFieldModel\getRecordQuerySortObject(), ilDclReferenceRecordFieldModel\getReferenceFromValue(), ilDataCollectionDataSet\getXmlNamespace(), and ilDclNReferenceRecordFieldModel\loadValueSorted().
static getFieldModelInstance($field_id, $datatype=null)
Get FieldModel from field-id and datatype.
◆ getFieldProperties()
static ilDclCache::getFieldProperties |
( |
|
$field_id | ) |
|
|
static |
◆ getFieldRepresentation()
◆ getRecordCache()
static ilDclCache::getRecordCache |
( |
|
$record_id = 0 | ) |
|
|
static |
- Parameters
-
- Returns
- ilDclBaseRecordModel
Definition at line 165 of file class.ilDclCache.php.
References $records_cache, and ilDclFieldFactory\getRecordModelInstance().
Referenced by ilDclDetailedViewGUI\__construct(), ilDclTable\_hasFieldByTitle(), ilDclNReferenceFieldGUI\buildTemplate(), ilDclBaseRecordModel\cloneStructure(), ilDclRecordEditGUI\confirmDelete(), ilDclRecordEditGUI\delete(), ilDclDetailedViewGUI\doExtReplace(), ilObjDataCollection\doUpdate(), ilDclReferenceRecordFieldModel\getExportValue(), ilDclNReferenceRecordFieldModel\getExportValue(), ilDclReferenceRecordRepresentation\getHTML(), ilDclNReferenceFieldGUI\getHTML(), ilDclReferenceRecordRepresentation\getLinkHTML(), ilDclRecordEditGUI\getRecord(), ilDclRecordEditGUI\getRecordData(), ilDataCollectionDataSet\getXmlNamespace(), ilDclTable\loadRecords(), ilDclFileuploadFieldRepresentation\requiredWorkaroundForInputField(), ilDclRecordEditGUI\save(), ilDclRecordListGUI\sendFile(), and ilDclRecordEditGUI\setFormValues().
static getRecordModelInstance($record_id)
Creates a RecordModel instance.
◆ getRecordFieldCache()
static ilDclCache::getRecordFieldCache |
( |
|
$record, |
|
|
|
$field |
|
) |
| |
|
static |
- Parameters
-
- Returns
- ilDclBaseRecordFieldModel
Definition at line 181 of file class.ilDclCache.php.
References array, and ilDclFieldFactory\getRecordFieldInstance().
Referenced by ilDclFileuploadRecordFieldModel\afterClone(), ilDclReferenceRecordFieldModel\afterClone(), ilDclMobRecordFieldModel\afterClone(), ilDclBaseFieldModel\afterClone(), ilDclFormulaRecordQueryObject\applyCustomSorting(), ilDclTextRecordQueryObject\applyCustomSorting(), ilDclBaseRecordModel\cloneStructure(), ilDclRecordEditGUI\confirmDelete(), ilDclRecordListTableGUI\getStatus(), ilDclBaseRecordModel\loadRecordFields(), and ilDclRecordListGUI\sendFile().
182 $fid = $field->getId();
183 $rid = $record->getId();
184 if (!isset(self::$record_field_cache[$rid])) {
185 self::$record_field_cache[$rid] =
array();
187 } elseif (!isset(self::$record_field_cache[$rid][$fid])) {
191 return self::$record_field_cache[$rid][$fid];
static getRecordFieldInstance(ilDclBaseFieldModel $field, ilDclBaseRecordModel $record)
Creates a RecordField instance and loads the field and record representation.
Create styles array
The data for the language used.
◆ getRecordRepresentation()
◆ getTableCache()
static ilDclCache::getTableCache |
( |
|
$table_id = 0 | ) |
|
|
static |
- Parameters
-
- Returns
- ilDclTable
Definition at line 132 of file class.ilDclCache.php.
References $tables_cache.
Referenced by ilDclIliasReferenceRecordFieldModel\__construct(), ilDclRatingRecordFieldModel\__construct(), ilDclFieldListTableGUI\__construct(), ilDclReferenceRecordFieldModel\__construct(), ilDclTableViewGUI\__construct(), ilDclTableEditGUI\__construct(), ilDclFieldListGUI\__construct(), ilDclFieldEditGUI\__construct(), ilDclRecordListGUI\__construct(), ilDclReferenceFieldRepresentation\addFilterInputFieldToTable(), ilDclStandardField\allowFilterInListView(), ilDclFormulaFieldRepresentation\buildFieldCreationInput(), ilDclDatetimeFieldModel\checkValidity(), ilDclTextFieldModel\checkValidity(), ilDclFileuploadFieldModel\checkValidity(), ilDclBaseFieldModel\checkValidity(), ilDclTextFieldModel\checkValidityOfURLField(), ilDclTableListGUI\confirmDeleteTables(), ilDclTableView\createDefaultSettings(), ilDclFieldListGUI\deleteFields(), ilDclTableListGUI\deleteTables(), ilObjDataCollection\doCreate(), ilDclBaseRecordModel\doDelete(), ilObjDataCollection\doUpdate(), ilDclTableEditGUI\edit(), ilObjDataCollectionGUI\emptyInfo(), ilDclDetailedViewDefinition\getAvailablePlaceholders(), ilDclReferenceFieldRepresentation\getInputField(), ilDclRecordEditGUI\getRecord(), ilDclReferenceRecordFieldModel\getReferenceFromValue(), ilDclTableView\getTable(), ilObjDataCollection\getTableById(), ilObjDataCollection\getTables(), ilDataCollectionDataSet\getXmlNamespace(), ilObjDataCollectionAccess\hasAccessToField(), ilObjDataCollectionAccess\hasAccessToFields(), ilObjDataCollectionAccess\hasAccessToTable(), ilObjDataCollectionAccess\hasPermissionToAddRecord(), ilDclBaseRecordModel\loadTable(), ilDclDetailedViewGUI\renderRecord(), ilObjDataCollection\reorderTables(), ilDclFieldListGUI\save(), ilDclTableListGUI\save(), ilDclTableEditGUI\save(), and ilDclExpressionParser\substituteFieldValues().
133 if ($table_id == 0) {
Class ilDclBaseFieldModel.
◆ initCloneMapping()
static ilDclCache::initCloneMapping |
( |
| ) |
|
|
staticprotected |
Definition at line 84 of file class.ilDclCache.php.
References array.
85 self::$clone_mapping =
array(
86 self::TYPE_DATACOLLECTION =>
array(),
87 self::TYPE_TABLE =>
array(),
88 self::TYPE_FIELD =>
array(),
89 self::TYPE_RECORD =>
array(),
90 self::TYPE_TABLEVIEW =>
array(),
Create styles array
The data for the language used.
◆ preloadFieldProperties()
static ilDclCache::preloadFieldProperties |
( |
array |
$fields | ) |
|
|
static |
Preloads field properties.
- Parameters
-
ilDclBaseFieldModel[] | $fields |
Definition at line 250 of file class.ilDclCache.php.
References $result, array, and ActiveRecord\where().
Referenced by ilDclTable\getFieldIds().
251 foreach($fields as $field_key => $field) {
252 if(isset(self::$field_properties_cache[$field->getId()])) {
253 unset($fields[$field_key]);
257 if(count($fields) > 0) {
258 $field_ids =
array();
259 foreach ($fields as $field) {
260 $field_ids[] = $field->getId();
264 if(!isset(self::$field_properties_cache[$prop->getFieldId()])) {
265 self::$field_properties_cache[$prop->getFieldId()] =
array();
267 self::$field_properties_cache[$prop->getFieldId()][$prop->getName()] = $prop;
static where($where, $operator=null)
Create styles array
The data for the language used.
◆ resetCache()
static ilDclCache::resetCache |
( |
| ) |
|
|
static |
◆ setCloneOf()
static ilDclCache::setCloneOf |
( |
|
$old, |
|
|
|
$new, |
|
|
|
$type |
|
) |
| |
|
static |
◆ $clone_mapping
ilDclCache::$clone_mapping |
|
staticprotected |
◆ $datatype_cache
ilDclCache::$datatype_cache |
|
staticprotected |
◆ $field_properties_cache
ilDclCache::$field_properties_cache |
|
staticprotected |
◆ $field_representation_cache
ilDclCache::$field_representation_cache |
|
staticprotected |
◆ $fields_cache
ilDclCache::$fields_cache |
|
staticprotected |
◆ $record_field_cache
ilDclCache::$record_field_cache |
|
staticprotected |
◆ $record_representation_cache
ilDclCache::$record_representation_cache |
|
staticprotected |
◆ $records_cache
ilDclCache::$records_cache |
|
staticprotected |
◆ $tables_cache
ilDclCache::$tables_cache |
|
staticprotected |
◆ TYPE_DATACOLLECTION
const ilDclCache::TYPE_DATACOLLECTION = 'dcl' |
◆ TYPE_FIELD
const ilDclCache::TYPE_FIELD = 'field' |
◆ TYPE_RECORD
const ilDclCache::TYPE_RECORD = 'record' |
◆ TYPE_TABLE
const ilDclCache::TYPE_TABLE = 'table' |
◆ TYPE_TABLEVIEW
const ilDclCache::TYPE_TABLEVIEW = 'tableview' |
The documentation for this class was generated from the following file: