ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilDclBaseFieldModel Class Reference
+ Inheritance diagram for ilDclBaseFieldModel:
+ Collaboration diagram for ilDclBaseFieldModel:

Public Member Functions

 __construct (int $a_id=0)
 
 setId ($a_id)
 Set field id. More...
 
 getId ()
 Get field id. More...
 
 setTableId (int $a_id)
 Set table id. More...
 
 getTableId ()
 Get table id. More...
 
 setTitle (string $a_title)
 Set title. More...
 
 getTitle ()
 Get title. More...
 
 setDescription (string $a_desc)
 Set description. More...
 
 getDescription ()
 Get description. More...
 
 setDatatypeId (int $a_id)
 Set datatype id. More...
 
 getDatatypeId ()
 Get datatype_id. More...
 
 isUnique ()
 
 setUnique (?bool $unique)
 
 getDatatype ()
 
 getDatatypeTitle ()
 
 getPresentationTitle ()
 
 getPresentationDescription ()
 
 getStorageLocation ()
 Get storage location for the model. More...
 
 getExportable ()
 
 toArray ()
 
 isStandardField ()
 
 doRead ()
 
 buildFromDBRecord (array $rec)
 Builds model from db record. More...
 
 doCreate ()
 
 doUpdate ()
 
 updateProperties ()
 Update properties of this field in Database. More...
 
 doDelete ()
 Remove field and properties. More...
 
 getViewSettings ()
 
 getViewSetting (int $tableview_id)
 
 getOrder ()
 
 setOrder (int $order)
 
 hasProperty (string $key)
 Checks if a certain property for a field is set. More...
 
 getProperty (string $key)
 
 getPropertyInstance (string $key)
 
 setProperty (string $key, $value)
 
 getValidFieldProperties ()
 Returns all valid properties for a field-type. More...
 
 checkValidityFromForm (ilPropertyFormGUI &$form, ?int $record_id=null)
 
 checkValidity ($value, ?int $record_id=null)
 Check if input is valid. More...
 
 cloneStructure (int $original_id)
 
 afterClone (array $records)
 
 cloneProperties (ilDclBaseFieldModel $originalField)
 
 setExportable (bool $exportable)
 
 allowFilterInListView ()
 
 getRecordQuerySortObject (string $direction="asc", bool $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 (?int $storage_location_override)
 
 fillHeaderExcel (ilExcel $worksheet, int &$row, int &$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 (bool $a_as_regex=true)
 All valid chars for filed titles. More...
 
static _getFieldIdByTitle (string $title, int $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_text"
 
const PROP_LINK_DETAIL_PAGE_MOB = "link_detail_page_mob"
 
const PROP_SUPPORTED_FILE_TYPES = "supported_file_types"
 
const PROP_PLUGIN_HOOK_NAME = "plugin_hook_name"
 
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 (mixed $value)
 

Protected Attributes

string $id = ""
 
int $table_id = 0
 
string $title = ""
 
string $description = ""
 
int $datatype_id = 0
 
int $order = null
 
bool $unique = false
 
array $property = []
 
bool $exportable = false
 
ilDclDatatype $datatype = null
 
int $storage_location_override = null
 With this property the datatype-storage-location can be overwritten. More...
 
ilDBInterface $db
 
ilLanguage $lng
 

Private Member Functions

 loadExportability ()
 Load exportability. More...
 

Detailed Description

Definition at line 21 of file class.ilDclBaseFieldModel.php.

Constructor & Destructor Documentation

◆ __construct()

ilDclBaseFieldModel::__construct ( int  $a_id = 0)

Definition at line 65 of file class.ilDclBaseFieldModel.php.

References $DIC, doRead(), and ILIAS\Repository\lng().

66  {
67  global $DIC;
68  $this->db = $DIC->database();
69  $this->lng = $DIC->language();
70 
71  if ($a_id != 0) {
72  $this->id = (string) $a_id;
73  $this->doRead();
74  }
75  }
global $DIC
Definition: shib_login.php:22
+ Here is the call graph for this function:

Member Function Documentation

◆ _getFieldIdByTitle()

static ilDclBaseFieldModel::_getFieldIdByTitle ( string  $title,
int  $table_id 
)
static

Definition at line 89 of file class.ilDclBaseFieldModel.php.

References $DIC, $id, and $ilDB.

89  : int
90  {
91  global $DIC;
92  $ilDB = $DIC->database();
93 
94  $result = $ilDB->query(
95  'SELECT id FROM il_dcl_field WHERE title = ' . $ilDB->quote($title, 'text') . ' AND table_id = '
96  . $ilDB->quote($table_id, 'integer')
97  );
98  $id = 0;
99  while ($rec = $ilDB->fetchAssoc($result)) {
100  $id = $rec['id'];
101  }
102 
103  return $id;
104  }
global $DIC
Definition: shib_login.php:22

◆ _getTitleInvalidChars()

static ilDclBaseFieldModel::_getTitleInvalidChars ( bool  $a_as_regex = true)
static

All valid chars for filed titles.

Definition at line 80 of file class.ilDclBaseFieldModel.php.

Referenced by ilDclFieldEditGUI\initForm().

80  : string
81  {
82  if ($a_as_regex) {
83  return '/^[^<>\\\\":]*$/i';
84  } else {
85  return '\ < > " :';
86  }
87  }
+ Here is the caller graph for this function:

◆ addToTableViews()

ilDclBaseFieldModel::addToTableViews ( )
protected

create ilDclTableViewFieldSettings for this field in each tableview

Definition at line 357 of file class.ilDclBaseFieldModel.php.

References ilDclTableView\getAllForTableId().

Referenced by doCreate().

357  : void
358  {
359  foreach (ilDclTableView::getAllForTableId($this->table_id) as $tableview) {
360  $tableview->createFieldSetting($this->id);
361  }
362  }
static getAllForTableId(int $table_id)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ afterClone()

ilDclBaseFieldModel::afterClone ( array  $records)

Definition at line 588 of file class.ilDclBaseFieldModel.php.

References ilDclCache\getRecordFieldCache().

Referenced by ilDclReferenceFieldModel\getFieldRef().

589  {
590  foreach ($records as $rec) {
591  ilDclCache::getRecordFieldCache($rec, $this)->afterClone();
592  }
593  }
static getRecordFieldCache(object $record, object $field)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ allowFilterInListView()

ilDclBaseFieldModel::allowFilterInListView ( )

Definition at line 625 of file class.ilDclBaseFieldModel.php.

625  : bool
626  {
627  return true;
628  }

◆ buildFromDBRecord()

ilDclBaseFieldModel::buildFromDBRecord ( array  $rec)

Builds model from db record.

Definition at line 322 of file class.ilDclBaseFieldModel.php.

References null, setDatatypeId(), setDescription(), setId(), setTableId(), setTitle(), and setUnique().

322  : void
323  {
324  $this->setId($rec["id"]);
325  $this->setTableId($rec["table_id"]);
326  $this->setTitle($rec["title"]);
327  $this->setDescription($rec["description"]);
328  $this->setDatatypeId($rec["datatype_id"]);
329  $this->setUnique($rec["is_unique"] ?? null);
330  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
setDatatypeId(int $a_id)
Set datatype id.
setTitle(string $a_title)
Set title.
setDescription(string $a_desc)
Set description.
setTableId(int $a_id)
Set table id.
+ Here is the call graph for this function:

◆ checkFieldCreationInput()

ilDclBaseFieldModel::checkFieldCreationInput ( ilPropertyFormGUI  $form)

Checks input of specific fields befor saving.

Parameters
ilPropertyFormGUI$form
Returns
bool if checkInput was successful

Definition at line 689 of file class.ilDclBaseFieldModel.php.

689  : bool
690  {
691  return true;
692  }

◆ checkTitlesForImport()

ilDclBaseFieldModel::checkTitlesForImport ( array &  $titles,
array &  $import_fields 
)

Definition at line 716 of file class.ilDclBaseFieldModel.php.

References getTitle().

716  : void
717  {
718  foreach ($titles as $k => $title) {
719  if (!mb_detect_encoding($title, "UTF-8", true) == "UTF-8") {
720  $title = mb_convert_encoding($title, 'UTF-8', 'ISO-8859-1');
721  }
722  if ($title == $this->getTitle()) {
723  $import_fields[$k] = $this;
724  }
725  }
726  }
+ Here is the call graph for this function:

◆ checkValidity()

ilDclBaseFieldModel::checkValidity (   $value,
?int  $record_id = null 
)

Check if input is valid.

Parameters
float | int | string | array | null$value
Exceptions
ilDclInputException

Definition at line 539 of file class.ilDclBaseFieldModel.php.

References ilDclCache\getTableCache(), getTableId(), isUnique(), normalizeValue(), and ilDclInputException\UNIQUE_EXCEPTION.

Referenced by checkValidityFromForm().

539  : bool
540  {
541  //Don't check empty values
542  if (!isset($value)) {
543  return true;
544  }
545 
546  if ($this->isUnique()) {
547  $table = ilDclCache::getTableCache($this->getTableId());
548  foreach ($table->getRecords() as $record) {
549  if ($record->getId() !== $record_id || $record_id === 0) {
550  if ($this->normalizeValue($record->getRecordFieldValue($this->getId())) === $this->normalizeValue($value)) {
552  }
553  }
554  }
555  }
556 
557  return true;
558  }
static getTableCache(?int $table_id=null)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ checkValidityFromForm()

ilDclBaseFieldModel::checkValidityFromForm ( ilPropertyFormGUI $form,
?int  $record_id = null 
)

Definition at line 528 of file class.ilDclBaseFieldModel.php.

References checkValidity(), getId(), and ilPropertyFormGUI\getInput().

528  : void
529  {
530  $value = $form->getInput('field_' . $this->getId());
531  $this->checkValidity($value, $record_id);
532  }
checkValidity($value, ?int $record_id=null)
Check if input is valid.
getInput(string $a_post_var, bool $ensureValidation=true)
Returns the input of an item, if item provides getInput method and as fallback the value of the HTTP-...
+ Here is the call graph for this function:

◆ cloneProperties()

ilDclBaseFieldModel::cloneProperties ( ilDclBaseFieldModel  $originalField)

Definition at line 595 of file class.ilDclBaseFieldModel.php.

References getDatatypeId(), getId(), getProperty(), getValidFieldProperties(), ilDclDatatype\INPUTFORMAT_REFERENCE, null, and PROP_REFERENCE.

Referenced by cloneStructure().

595  : void
596  {
597  $orgProps = $originalField->getValidFieldProperties();
598  if (count($orgProps) == 0) {
599  return;
600  }
601  foreach ($orgProps as $prop_name) {
602  $fieldprop_obj = new ilDclFieldProperty();
603  $fieldprop_obj->setFieldId((int) $this->getId());
604  $fieldprop_obj->setName($prop_name);
605 
606  $value = $originalField->getProperty($prop_name);
607 
608  // If reference field, we must reset the referenced field, otherwise it will point to the old ID
610  $value = null;
611  }
612 
613  if ($value) {
614  $fieldprop_obj->setValue($value);
615  $fieldprop_obj->create();
616  }
617  }
618  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
getValidFieldProperties()
Returns all valid properties for a field-type.
getDatatypeId()
Get datatype_id.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ cloneStructure()

ilDclBaseFieldModel::cloneStructure ( int  $original_id)
Exceptions
ilException

Definition at line 572 of file class.ilDclBaseFieldModel.php.

References cloneProperties(), doCreate(), ilDclCache\getFieldCache(), getId(), ilDclCache\setCloneOf(), setDatatypeId(), setDescription(), setExportable(), setOrder(), setTitle(), setUnique(), and ilDclCache\TYPE_FIELD.

572  : void
573  {
574  $original = ilDclCache::getFieldCache($original_id);
575  $this->setTitle($original->getTitle());
576  $this->setDatatypeId($original->getDatatypeId());
577  $this->setDescription($original->getDescription());
578  $this->setOrder($original->getOrder());
579  $this->setUnique($original->isUnique());
580  $this->setExportable($original->getExportable());
581  $this->doCreate();
582  $this->cloneProperties($original);
583 
584  // mandatory for all cloning functions
585  ilDclCache::setCloneOf($original_id, (int) $this->getId(), ilDclCache::TYPE_FIELD);
586  }
static getFieldCache(int $field_id=0)
setDatatypeId(int $a_id)
Set datatype id.
cloneProperties(ilDclBaseFieldModel $originalField)
static setCloneOf(int $old, int $new, string $type)
setTitle(string $a_title)
Set title.
setDescription(string $a_desc)
Set description.
+ Here is the call graph for this function:

◆ doCreate()

ilDclBaseFieldModel::doCreate ( )

Definition at line 332 of file class.ilDclBaseFieldModel.php.

References ilDclTable\_tableExists(), addToTableViews(), getDatatypeId(), getDescription(), getId(), getTableId(), getTitle(), isUnique(), setId(), and updateTableFieldSetting().

Referenced by cloneStructure().

332  : void
333  {
334  if (!ilDclTable::_tableExists($this->getTableId())) {
335  throw new ilException("The field does not have a related table!");
336  }
337 
338  $id = $this->db->nextId("il_dcl_field");
339  $this->setId($id);
340  $query = "INSERT INTO il_dcl_field (" . "id" . ", table_id" . ", datatype_id" . ", title" . ", description" . ", is_unique"
341  . " ) VALUES (" . $this->db->quote($this->getId(), "integer") . "," . $this->db->quote(
342  $this->getTableId(),
343  "integer"
344  ) . ","
345  . $this->db->quote($this->getDatatypeId(), "integer") . "," . $this->db->quote($this->getTitle(), "text") . ","
346  . $this->db->quote($this->getDescription(), "text") . "," . $this->db->quote($this->isUnique(), "integer") . ")";
347  $this->db->manipulate($query);
348 
349  $this->updateTableFieldSetting();
350 
351  $this->addToTableViews();
352  }
addToTableViews()
create ilDclTableViewFieldSettings for this field in each tableview
getDescription()
Get description.
updateTableFieldSetting()
update exportable and fieldorder
static _tableExists(int $table_id)
getDatatypeId()
Get datatype_id.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ doDelete()

ilDclBaseFieldModel::doDelete ( )

Remove field and properties.

Definition at line 425 of file class.ilDclBaseFieldModel.php.

References getId(), ilDclTableFieldSetting\getInstance(), getTableId(), and getViewSettings().

425  : void
426  {
427  // delete tablefield setting.
428  ilDclTableFieldSetting::getInstance($this->getTableId(), $this->getId())->delete();
429 
430  $query = "DELETE FROM il_dcl_field_prop WHERE field_id = " . $this->db->quote($this->getId(), "text");
431  $this->db->manipulate($query);
432 
433  $query = "DELETE FROM il_dcl_field WHERE id = " . $this->db->quote($this->getId(), "text");
434  $this->db->manipulate($query);
435 
436  foreach ($this->getViewSettings() as $field_setting) {
437  $field_setting->delete();
438  }
439  }
static getInstance(int $table_id, string $field)
+ Here is the call graph for this function:

◆ doRead()

ilDclBaseFieldModel::doRead ( )

Definition at line 296 of file class.ilDclBaseFieldModel.php.

References getId(), loadProperties(), loadTableFieldSetting(), null, setDatatypeId(), setDescription(), setTableId(), setTitle(), and setUnique().

Referenced by __construct().

296  : void
297  {
298  //THEN 1 ELSE 0 END AS has_options FROM il_dcl_field f WHERE id = ".$ilDB->quote($this->getId(),"integer");
299  $query = "SELECT * FROM il_dcl_field WHERE id = " . $this->db->quote($this->getId(), "integer");
300  $set = $this->db->query($query);
301  $rec = $this->db->fetchAssoc($set);
302 
303  if ($rec) {
304  $this->setTableId($rec["table_id"]);
305  if (null !== $rec["title"]) {
306  $this->setTitle($rec["title"]);
307  }
308  if (null !== $rec["description"]) {
309  $this->setDescription($rec["description"]);
310  }
311  $this->setDatatypeId($rec["datatype_id"]);
312  $this->setUnique((bool) $rec["is_unique"]);
313  }
314 
315  $this->loadProperties();
316  $this->loadTableFieldSetting();
317  }
loadTableFieldSetting()
loadTableFieldSetting
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
loadProperties()
Get all properties of a field.
setDatatypeId(int $a_id)
Set datatype id.
setTitle(string $a_title)
Set title.
setDescription(string $a_desc)
Set description.
setTableId(int $a_id)
Set table id.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ doUpdate()

ilDclBaseFieldModel::doUpdate ( )

Definition at line 364 of file class.ilDclBaseFieldModel.php.

References getDatatypeId(), getDescription(), getId(), getTableId(), getTitle(), isUnique(), updateProperties(), and updateTableFieldSetting().

364  : void
365  {
366  $this->db->update(
367  "il_dcl_field",
368  [
369  "table_id" => [
370  "integer",
371  $this->getTableId(),
372  ],
373  "datatype_id" => [
374  "text",
375  $this->getDatatypeId(),
376  ],
377  "title" => [
378  "text",
379  $this->getTitle(),
380  ],
381  "description" => [
382  "text",
383  $this->getDescription(),
384  ],
385  "is_unique" => [
386  "integer",
387  $this->isUnique(),
388  ],
389  ],
390  [
391  "id" => [
392  "integer",
393  $this->getId(),
394  ],
395  ]
396  );
397  $this->updateTableFieldSetting();
398  $this->updateProperties();
399  }
updateProperties()
Update properties of this field in Database.
getDescription()
Get description.
updateTableFieldSetting()
update exportable and fieldorder
getDatatypeId()
Get datatype_id.
+ Here is the call graph for this function:

◆ fillHeaderExcel()

ilDclBaseFieldModel::fillHeaderExcel ( ilExcel  $worksheet,
int &  $row,
int &  $col 
)

Definition at line 710 of file class.ilDclBaseFieldModel.php.

References getTitle(), and ilExcel\setCell().

710  : void
711  {
712  $worksheet->setCell($row, $col, $this->getTitle());
713  $col++;
714  }
setCell(int $a_row, int $col, $value, ?string $datatype=null, bool $disable_strip_tags_for_strings=false)
Set cell value.
+ Here is the call graph for this function:

◆ fillPropertiesForm()

ilDclBaseFieldModel::fillPropertiesForm ( ilPropertyFormGUI $form)

called to fill the 'edit field' form

Definition at line 749 of file class.ilDclBaseFieldModel.php.

References getDatatypeId(), getDescription(), getId(), getProperty(), getTableId(), getTitle(), getValidFieldProperties(), isUnique(), and ilPropertyFormGUI\setValuesByArray().

749  : bool
750  {
751  $values = [
752  'table_id' => $this->getTableId(),
753  'field_id' => $this->getId(),
754  'title' => $this->getTitle(),
755  'datatype' => $this->getDatatypeId(),
756  'description' => $this->getDescription(),
757  'unique' => $this->isUnique(),
758  ];
759 
760  $properties = $this->getValidFieldProperties();
761  foreach ($properties as $prop) {
762  $values['prop_' . $prop] = $this->getProperty($prop);
763  }
764 
765  $form->setValuesByArray($values);
766 
767  return true;
768  }
setValuesByArray(array $a_values, bool $a_restrict_to_value_keys=false)
getDescription()
Get description.
getValidFieldProperties()
Returns all valid properties for a field-type.
getDatatypeId()
Get datatype_id.
+ Here is the call graph for this function:

◆ getConfirmationGUI()

ilDclBaseFieldModel::getConfirmationGUI ( ilPropertyFormGUI  $form)

called by ilDclFieldEditGUI if isConfirmationRequired returns true

Definition at line 782 of file class.ilDclBaseFieldModel.php.

References ilFormGUI\getFormAction(), ilPropertyFormGUI\getInput(), and ILIAS\Repository\lng().

783  {
784  $ilConfirmationGUI = new ilConfirmationGUI();
785  $ilConfirmationGUI->setFormAction($form->getFormAction());
786  $ilConfirmationGUI->addHiddenItem('confirmed', "1");
787  $ilConfirmationGUI->addHiddenItem('field_id', $form->getInput('field_id'));
788  $ilConfirmationGUI->addHiddenItem('title', $form->getInput('title'));
789  $ilConfirmationGUI->addHiddenItem('description', $form->getInput('description'));
790  $ilConfirmationGUI->addHiddenItem('datatype', $form->getInput('datatype'));
791  $ilConfirmationGUI->addHiddenItem('unique', $form->getInput('unique'));
792  $ilConfirmationGUI->setConfirm($this->lng->txt('dcl_update_field'), 'update');
793  $ilConfirmationGUI->setCancel($this->lng->txt('cancel'), 'edit');
794 
795  return $ilConfirmationGUI;
796  }
getInput(string $a_post_var, bool $ensureValidation=true)
Returns the input of an item, if item provides getInput method and as fallback the value of the HTTP-...
+ Here is the call graph for this function:

◆ getDatatype()

ilDclBaseFieldModel::getDatatype ( )

Definition at line 207 of file class.ilDclBaseFieldModel.php.

References $datatype, and loadDatatype().

Referenced by ilDclFieldFactory\getClassPathByInstance(), ilDclFieldFactory\getFieldTypeByInstance(), ilDclPluginFieldModel\getPresentationDescription(), and ilDclPluginFieldModel\getPresentationTitle().

207  : ilDclDatatype
208  {
209  $this->loadDatatype();
210 
211  return $this->datatype;
212  }
loadDatatype()
Load datatype for model.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getDatatypeId()

◆ getDatatypeTitle()

ilDclBaseFieldModel::getDatatypeTitle ( )

Definition at line 214 of file class.ilDclBaseFieldModel.php.

References loadDatatype().

Referenced by getPresentationDescription(), and getPresentationTitle().

214  : string
215  {
216  $this->loadDatatype();
217  return $this->datatype->getTitle();
218  }
loadDatatype()
Load datatype for model.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getDescription()

ilDclBaseFieldModel::getDescription ( )

Get description.

Definition at line 170 of file class.ilDclBaseFieldModel.php.

References $description.

Referenced by doCreate(), doUpdate(), ilDclSelectionFieldModel\fillPropertiesForm(), fillPropertiesForm(), ilDclFieldListTableGUI\fillRowFromObject(), and ilDclBaseFieldRepresentation\setupInputField().

170  : string
171  {
172  return $this->description;
173  }
+ Here is the caller graph for this function:

◆ getExportable()

ilDclBaseFieldModel::getExportable ( )
Returns
bool

Definition at line 267 of file class.ilDclBaseFieldModel.php.

References $exportable, and loadExportability().

Referenced by ilDclStandardField\clone(), and ilDclFieldListTableGUI\fillRowFromObject().

267  : bool
268  {
269  if (!isset($this->exportable)) {
270  $this->loadExportability();
271  }
272 
273  return $this->exportable;
274  }
loadExportability()
Load exportability.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getId()

ilDclBaseFieldModel::getId ( )

Get field id.

Definition at line 118 of file class.ilDclBaseFieldModel.php.

References $id.

Referenced by ilDclTable\addField(), ilDclCopyFieldRepresentation\buildFieldCreationInput(), ilDclReferenceFieldRepresentation\buildFieldCreationInput(), ilDclDatetimeFieldModel\checkValidityFromForm(), ilDclTextFieldModel\checkValidityFromForm(), ilDclBooleanFieldModel\checkValidityFromForm(), checkValidityFromForm(), ilDclTextFieldModel\checkValidityOfURLField(), ilDclSelectionFieldModel\cloneProperties(), cloneProperties(), cloneStructure(), doCreate(), ilDclSelectionFieldModel\doDelete(), doDelete(), doRead(), doUpdate(), ilDclStandardField\fillHeaderExcel(), ilDclSelectionFieldModel\fillPropertiesForm(), fillPropertiesForm(), ilDclFieldListTableGUI\fillRowFromObject(), ilDclFieldFactory\getClassPathByInstance(), getDatatypeId(), ilDclFieldFactory\getFieldModelInstanceByClass(), ilDclReferenceFieldModel\getFieldRef(), ilDclCache\getFieldRepresentation(), ilDclFieldFactory\getFieldRepresentationInstance(), ilDclSelectionFieldModel\getProperty(), ilDclBaseRecordModel\getRecordFieldValueFromExcel(), ilDclCopyFieldModel\getRecordQueryFilterObject(), ilDclTextFieldModel\getRecordQueryFilterObject(), ilDclNumberFieldModel\getRecordQueryFilterObject(), ilDclDatetimeFieldModel\getRecordQueryFilterObject(), ilDclBooleanFieldModel\getRecordQueryFilterObject(), ilDclSelectionFieldModel\getRecordQueryFilterObject(), ilDclIliasReferenceFieldModel\getRecordQueryFilterObject(), ilDclReferenceFieldModel\getRecordQueryFilterObject(), ilDclIliasReferenceFieldModel\getRecordQuerySortObject(), ilDclReferenceFieldModel\getRecordQuerySortObject(), ilDclStandardField\getRecordQuerySortObject(), ilDclSelectionFieldModel\getRecordQuerySortObject(), getRecordQuerySortObject(), ilDclReferenceRecordFieldModel\getReferenceFromValue(), ilDclStandardField\getSortField(), getViewSetting(), getViewSettings(), ilDclStandardField\hasNumericSorting(), loadProperties(), loadTableFieldSetting(), ilDclSelectionFieldModel\multiPropertyChanged(), ilDclSelectionFieldModel\reorderExistingValues(), ilDclSelectionFieldModel\setProperty(), setProperty(), ilDclBaseRecordModel\setStandardFieldValueFromExcel(), and updateTableFieldSetting().

118  : string
119  {
120  return $this->id;
121  }
+ Here is the caller graph for this function:

◆ getOrder()

ilDclBaseFieldModel::getOrder ( )

Definition at line 454 of file class.ilDclBaseFieldModel.php.

References $order, loadTableFieldSetting(), and null.

Referenced by ilDclStandardField\clone(), ilDclTable\compareOrder(), and updateTableFieldSetting().

454  : int
455  {
456  if ($this->order == null) {
457  $this->loadTableFieldSetting();
458  }
459 
460  return !$this->order ? 0 : $this->order;
461  }
loadTableFieldSetting()
loadTableFieldSetting
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getPresentationDescription()

ilDclBaseFieldModel::getPresentationDescription ( )

Definition at line 225 of file class.ilDclBaseFieldModel.php.

References getDatatypeTitle(), and ILIAS\Repository\lng().

225  : string
226  {
227  return $this->lng->txt('dcl_' . $this->getDatatypeTitle() . '_desc');
228  }
+ Here is the call graph for this function:

◆ getPresentationTitle()

ilDclBaseFieldModel::getPresentationTitle ( )

Definition at line 220 of file class.ilDclBaseFieldModel.php.

References getDatatypeTitle(), and ILIAS\Repository\lng().

Referenced by ilDclFieldListTableGUI\fillRowFromObject().

220  : string
221  {
222  return $this->lng->txt('dcl_' . $this->getDatatypeTitle());
223  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getProperty()

ilDclBaseFieldModel::getProperty ( string  $key)

Definition at line 486 of file class.ilDclBaseFieldModel.php.

References getPropertyInstance(), and null.

Referenced by ilDclTextFieldModel\checkRegexAndLength(), ilDclTextFieldModel\checkValidityFromForm(), cloneProperties(), ilDclTextFieldModel\fillHeaderExcel(), fillPropertiesForm(), ilDclReferenceFieldModel\getFieldRef(), ilDclReferenceFieldModel\getRecordQueryFilterObject(), ilDclReferenceFieldModel\getRecordQuerySortObject(), and ilDclFileFieldModel\getSupportedExtensions().

486  : mixed
487  {
488  $instance = $this->getPropertyInstance($key);
489 
490  return ($instance !== null) ? $instance->getValue() : null;
491  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getPropertyInstance()

ilDclBaseFieldModel::getPropertyInstance ( string  $key)

Definition at line 493 of file class.ilDclBaseFieldModel.php.

References hasProperty(), loadProperties(), and null.

Referenced by getProperty(), ilDclSelectionFieldModel\storePropertiesFromForm(), and storePropertiesFromForm().

494  {
495  $this->loadProperties();
496  if ($this->hasProperty($key)) {
497  return $this->property[$key];
498  }
499 
500  return null;
501  }
hasProperty(string $key)
Checks if a certain property for a field is set.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
loadProperties()
Get all properties of a field.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getRecordQueryFilterObject()

ilDclBaseFieldModel::getRecordQueryFilterObject (   $filter_value = "",
?ilDclBaseFieldModel  $sort_field = null 
)

Returns a query-object for building the record-loader-sql-query.

Parameters
string | int$filter_value

Definition at line 657 of file class.ilDclBaseFieldModel.php.

References null.

661  return null;
662  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null

◆ getRecordQuerySortObject()

ilDclBaseFieldModel::getRecordQuerySortObject ( string  $direction = "asc",
bool  $sort_by_status = false 
)

Returns a query-object for building the record-loader-sql-query.

Parameters
bool$sort_by_statusThe specific sort object is a status field

Definition at line 634 of file class.ilDclBaseFieldModel.php.

References getId().

638  $sql_obj = new ilDclRecordQueryObject();
639 
640  $select_str = "sort_stloc_{$this->getId()}.value AS field_{$this->getId()}";
641  $join_str
642  = "LEFT JOIN il_dcl_record_field AS sort_record_field_{$this->getId()} ON (sort_record_field_{$this->getId()}.record_id = record.id AND sort_record_field_{$this->getId()}.field_id = "
643  . $this->db->quote($this->getId(), 'integer') . ") ";
644  $join_str .= "LEFT JOIN il_dcl_stloc{$this->getStorageLocation()}_value AS sort_stloc_{$this->getId()} ON (sort_stloc_{$this->getId()}.record_field_id = sort_record_field_{$this->getId()}.id)";
645 
646  $sql_obj->setSelectStatement($select_str);
647  $sql_obj->setJoinStatement($join_str);
648  $sql_obj->setOrderStatement("field_{$this->getId()} $direction, ID ASC");
649 
650  return $sql_obj;
651  }
+ Here is the call graph for this function:

◆ getSortField()

ilDclBaseFieldModel::getSortField ( )

Returns the sort-field id.

Definition at line 667 of file class.ilDclBaseFieldModel.php.

References getTitle().

667  : string
668  {
669  return $this->getTitle();
670  }
+ Here is the call graph for this function:

◆ getStorageLocation()

ilDclBaseFieldModel::getStorageLocation ( )

Get storage location for the model.

Definition at line 233 of file class.ilDclBaseFieldModel.php.

References getStorageLocationOverride(), loadDatatype(), and null.

233  : ?int
234  {
235  if ($this->getStorageLocationOverride() !== null) {
236  return $this->getStorageLocationOverride();
237  }
238 
239  $this->loadDatatype();
240 
241  return $this->datatype->getStorageLocation();
242  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
loadDatatype()
Load datatype for model.
+ Here is the call graph for this function:

◆ getStorageLocationOverride()

ilDclBaseFieldModel::getStorageLocationOverride ( )
Deprecated:

Definition at line 697 of file class.ilDclBaseFieldModel.php.

References $storage_location_override.

Referenced by getStorageLocation().

697  : ?int
698  {
700  }
int $storage_location_override
With this property the datatype-storage-location can be overwritten.
+ Here is the caller graph for this function:

◆ getTableId()

◆ getTitle()

◆ getValidFieldProperties()

ilDclBaseFieldModel::getValidFieldProperties ( )

Returns all valid properties for a field-type.

Definition at line 523 of file class.ilDclBaseFieldModel.php.

Referenced by cloneProperties(), fillPropertiesForm(), and storePropertiesFromForm().

523  : array
524  {
525  return [];
526  }
+ Here is the caller graph for this function:

◆ getViewSetting()

ilDclBaseFieldModel::getViewSetting ( int  $tableview_id)

Definition at line 449 of file class.ilDclBaseFieldModel.php.

References getId(), and ilDclTableViewFieldSetting\getTableViewFieldSetting().

+ Here is the call graph for this function:

◆ getViewSettings()

ilDclBaseFieldModel::getViewSettings ( )
Returns
ilDclTableViewFieldSetting[]

Definition at line 444 of file class.ilDclBaseFieldModel.php.

References getId(), and ActiveRecord\where().

Referenced by doDelete().

444  : array
445  {
446  return ilDclTableViewFieldSetting::where(['field' => $this->getId()])->get();
447  }
static where($where, $operator=null)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ hasNumericSorting()

ilDclBaseFieldModel::hasNumericSorting ( )

Set to true, when the sorting should be handled numerical.

Definition at line 675 of file class.ilDclBaseFieldModel.php.

References getDatatypeId(), and ilDclDatatype\INPUTFORMAT_NUMBER.

675  : bool
676  {
678  return true;
679  }
680 
681  return false;
682  }
getDatatypeId()
Get datatype_id.
+ Here is the call graph for this function:

◆ hasProperty()

ilDclBaseFieldModel::hasProperty ( string  $key)

Checks if a certain property for a field is set.

Definition at line 479 of file class.ilDclBaseFieldModel.php.

References ILIAS\UI\Implementation\Component\Input\getValue(), loadProperties(), and null.

Referenced by ilDclTextFieldModel\checkTitlesForImport(), getPropertyInstance(), ilDclReferenceFieldModel\getRecordQuerySortObject(), ilDclTextFieldModel\getRecordQuerySortObject(), and ilDclFileFieldModel\getSupportedExtensions().

479  : bool
480  {
481  $this->loadProperties();
482 
483  return (isset($this->property[$key]) && $this->property[$key]->getValue() != null);
484  }
getValue()
Get the value that is displayed in the input client side.
Definition: Group.php:49
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
loadProperties()
Get all properties of a field.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isConfirmationRequired()

ilDclBaseFieldModel::isConfirmationRequired ( ilPropertyFormGUI  $form)

called by ilDclFieldEditGUI when updating field properties if you overwrite this method, remember to also overwrite getConfirmationGUI

Definition at line 774 of file class.ilDclBaseFieldModel.php.

774  : bool
775  {
776  return false;
777  }

◆ isStandardField()

ilDclBaseFieldModel::isStandardField ( )

Definition at line 291 of file class.ilDclBaseFieldModel.php.

Referenced by ilDclFieldListTableGUI\fillRowFromObject(), and getDatatypeId().

291  : bool
292  {
293  return false;
294  }
+ Here is the caller graph for this function:

◆ isUnique()

ilDclBaseFieldModel::isUnique ( )

◆ loadDatatype()

ilDclBaseFieldModel::loadDatatype ( )
protected

Load datatype for model.

Definition at line 247 of file class.ilDclBaseFieldModel.php.

References ilDclCache\getDatatype(), and null.

Referenced by getDatatype(), getDatatypeTitle(), and getStorageLocation().

247  : void
248  {
249  if ($this->datatype == null) {
250  $this->datatype = ilDclCache::getDatatype($this->datatype_id);
251  }
252  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
static getDatatype(int $datatyp_id)
Get cached datatypes.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ loadExportability()

ilDclBaseFieldModel::loadExportability ( )
private

Load exportability.

Definition at line 279 of file class.ilDclBaseFieldModel.php.

References loadTableFieldSetting(), and null.

Referenced by getExportable().

279  : void
280  {
281  if ($this->exportable == null) {
282  $this->loadTableFieldSetting();
283  }
284  }
loadTableFieldSetting()
loadTableFieldSetting
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ loadProperties()

ilDclBaseFieldModel::loadProperties ( )
protected

Get all properties of a field.

Definition at line 471 of file class.ilDclBaseFieldModel.php.

References ilDclCache\getFieldProperties(), and getId().

Referenced by doRead(), getPropertyInstance(), hasProperty(), and setProperty().

471  : void
472  {
473  $this->property = ilDclCache::getFieldProperties($this->getId());
474  }
static getFieldProperties(string $field_id)
Cache Field properties.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ loadTableFieldSetting()

ilDclBaseFieldModel::loadTableFieldSetting ( )
protected

loadTableFieldSetting

Definition at line 257 of file class.ilDclBaseFieldModel.php.

References getId(), ilDclTableFieldSetting\getInstance(), and getTableId().

Referenced by doRead(), getOrder(), and loadExportability().

257  : void
258  {
259  $tablefield_setting = ilDclTableFieldSetting::getInstance($this->getTableId(), $this->getId());
260  $this->exportable = $tablefield_setting->isExportable();
261  $this->order = $tablefield_setting->getFieldOrder();
262  }
static getInstance(int $table_id, string $field)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ normalizeValue()

ilDclBaseFieldModel::normalizeValue ( mixed  $value)
protected

Definition at line 560 of file class.ilDclBaseFieldModel.php.

Referenced by checkValidity().

561  {
562  if (is_string($value)) {
563  $value = trim(preg_replace("/\\s+/uism", " ", $value));
564  }
565 
566  return $value;
567  }
+ Here is the caller graph for this function:

◆ setDatatypeId()

ilDclBaseFieldModel::setDatatypeId ( int  $a_id)

Set datatype id.

Definition at line 178 of file class.ilDclBaseFieldModel.php.

References null.

Referenced by buildFromDBRecord(), cloneStructure(), and doRead().

178  : void
179  {
180  //unset the cached datatype.
181  $this->datatype = null;
182  $this->datatype_id = $a_id;
183  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
+ Here is the caller graph for this function:

◆ setDescription()

ilDclBaseFieldModel::setDescription ( string  $a_desc)

Set description.

Definition at line 162 of file class.ilDclBaseFieldModel.php.

Referenced by buildFromDBRecord(), cloneStructure(), and doRead().

162  : void
163  {
164  $this->description = $a_desc;
165  }
+ Here is the caller graph for this function:

◆ setExportable()

ilDclBaseFieldModel::setExportable ( bool  $exportable)

Definition at line 620 of file class.ilDclBaseFieldModel.php.

References $exportable.

Referenced by ilDclStandardField\clone(), and cloneStructure().

620  : void
621  {
622  $this->exportable = $exportable;
623  }
+ Here is the caller graph for this function:

◆ setId()

ilDclBaseFieldModel::setId (   $a_id)

Set field id.

Parameters
int|string

Definition at line 110 of file class.ilDclBaseFieldModel.php.

Referenced by buildFromDBRecord(), and doCreate().

110  : void
111  {
112  $this->id = (string) $a_id;
113  }
+ Here is the caller graph for this function:

◆ setOrder()

ilDclBaseFieldModel::setOrder ( int  $order)

Definition at line 463 of file class.ilDclBaseFieldModel.php.

References $order.

Referenced by ilDclStandardField\clone(), and cloneStructure().

463  : void
464  {
465  $this->order = $order;
466  }
+ Here is the caller graph for this function:

◆ setProperty()

ilDclBaseFieldModel::setProperty ( string  $key,
  $value 
)

Definition at line 503 of file class.ilDclBaseFieldModel.php.

References $property, getId(), and loadProperties().

Referenced by ilDclReferenceFieldModel\getFieldRef(), and storePropertiesFromForm().

504  {
505  $this->loadProperties();
506  if (isset($this->property[$key])) {
507  $this->property[$key]->setValue($value);
508  } else {
510  $property->setName($key);
511  $property->setFieldId((int) $this->getId());
512  $property->setValue($value);
513 
514  $this->property[$key] = $property;
515  }
516 
517  return $this->property[$key];
518  }
loadProperties()
Get all properties of a field.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setStorageLocationOverride()

ilDclBaseFieldModel::setStorageLocationOverride ( ?int  $storage_location_override)
Deprecated:
override ilDclFieldTypePlugin::getStorageLocation() instead

Definition at line 705 of file class.ilDclBaseFieldModel.php.

References $storage_location_override.

705  : void
706  {
707  $this->storage_location_override = $storage_location_override;
708  }
int $storage_location_override
With this property the datatype-storage-location can be overwritten.

◆ setTableId()

ilDclBaseFieldModel::setTableId ( int  $a_id)

Set table id.

Definition at line 126 of file class.ilDclBaseFieldModel.php.

Referenced by buildFromDBRecord(), and doRead().

126  : void
127  {
128  $this->table_id = $a_id;
129  }
+ Here is the caller graph for this function:

◆ setTitle()

ilDclBaseFieldModel::setTitle ( string  $a_title)

Set title.

Definition at line 142 of file class.ilDclBaseFieldModel.php.

Referenced by buildFromDBRecord(), cloneStructure(), and doRead().

142  : void
143  {
144  //title cannot begin with _ as this is saved for other purposes. make __ instead.
145  if (substr($a_title, 0, 1) == "_" && substr($a_title, 0, 2) != "__") {
146  $a_title = "_" . $a_title;
147  }
148  $this->title = $a_title;
149  }
+ Here is the caller graph for this function:

◆ setUnique()

ilDclBaseFieldModel::setUnique ( ?bool  $unique)

Definition at line 202 of file class.ilDclBaseFieldModel.php.

Referenced by buildFromDBRecord(), ilDclStandardField\clone(), cloneStructure(), and doRead().

202  : void
203  {
204  $this->unique = (bool) $unique;
205  }
+ Here is the caller graph for this function:

◆ storePropertiesFromForm()

ilDclBaseFieldModel::storePropertiesFromForm ( ilPropertyFormGUI  $form)

called when saving the 'edit field' form

Definition at line 731 of file class.ilDclBaseFieldModel.php.

References ilDclFieldFactory\getFieldRepresentationInstance(), ilPropertyFormGUI\getInput(), getPropertyInstance(), getValidFieldProperties(), null, and setProperty().

731  : void
732  {
733  $field_props = $this->getValidFieldProperties();
734  $representation = ilDclFieldFactory::getFieldRepresentationInstance($this);
735 
736  foreach ($field_props as $property) {
737  $value = $form->getInput($representation->getPropertyInputFieldId($property));
738 
739  // save non empty values and set them to null, when they already exist. Do not override plugin-hook when already set.
740  if (!empty($value) || ($this->getPropertyInstance($property) != null && $property != self::PROP_PLUGIN_HOOK_NAME)) {
741  $this->setProperty($property, $value)->store();
742  }
743  }
744  }
static getFieldRepresentationInstance(ilDclBaseFieldModel $field)
getInput(string $a_post_var, bool $ensureValidation=true)
Returns the input of an item, if item provides getInput method and as fallback the value of the HTTP-...
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
getValidFieldProperties()
Returns all valid properties for a field-type.
setProperty(string $key, $value)
+ Here is the call graph for this function:

◆ toArray()

ilDclBaseFieldModel::toArray ( )

Definition at line 286 of file class.ilDclBaseFieldModel.php.

286  : array
287  {
288  return (array) $this;
289  }

◆ updateProperties()

ilDclBaseFieldModel::updateProperties ( )

Update properties of this field in Database.

Definition at line 404 of file class.ilDclBaseFieldModel.php.

Referenced by doUpdate(), and ilDclReferenceFieldModel\getFieldRef().

404  : void
405  {
406  foreach ($this->property as $prop) {
407  $prop->store();
408  }
409  }
+ Here is the caller graph for this function:

◆ updateTableFieldSetting()

ilDclBaseFieldModel::updateTableFieldSetting ( )
protected

update exportable and fieldorder

Definition at line 414 of file class.ilDclBaseFieldModel.php.

References getId(), ilDclTableFieldSetting\getInstance(), getOrder(), and getTableId().

Referenced by doCreate(), ilDclStandardField\doUpdate(), and doUpdate().

414  : void
415  {
416  $tablefield_setting = ilDclTableFieldSetting::getInstance($this->getTableId(), $this->getId());
417  $tablefield_setting->setExportable($this->exportable);
418  $tablefield_setting->setFieldOrder($this->getOrder());
419  $tablefield_setting->store();
420  }
static getInstance(int $table_id, string $field)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $datatype

ilDclDatatype ilDclBaseFieldModel::$datatype = null
protected

Definition at line 33 of file class.ilDclBaseFieldModel.php.

Referenced by getDatatype().

◆ $datatype_id

int ilDclBaseFieldModel::$datatype_id = 0
protected

Definition at line 27 of file class.ilDclBaseFieldModel.php.

Referenced by getDatatypeId().

◆ $db

ilDBInterface ilDclBaseFieldModel::$db
protected

Definition at line 62 of file class.ilDclBaseFieldModel.php.

◆ $description

string ilDclBaseFieldModel::$description = ""
protected

Definition at line 26 of file class.ilDclBaseFieldModel.php.

Referenced by getDescription().

◆ $exportable

bool ilDclBaseFieldModel::$exportable = false
protected

Definition at line 32 of file class.ilDclBaseFieldModel.php.

Referenced by getExportable(), and setExportable().

◆ $id

◆ $lng

ilLanguage ilDclBaseFieldModel::$lng
protected

◆ $order

int ilDclBaseFieldModel::$order = null
protected

Definition at line 28 of file class.ilDclBaseFieldModel.php.

Referenced by getOrder(), and setOrder().

◆ $property

array ilDclBaseFieldModel::$property = []
protected

◆ $storage_location_override

int ilDclBaseFieldModel::$storage_location_override = null
protected

With this property the datatype-storage-location can be overwritten.

This need to be done in plugins.

Definition at line 37 of file class.ilDclBaseFieldModel.php.

Referenced by getStorageLocationOverride(), and setStorageLocationOverride().

◆ $table_id

int ilDclBaseFieldModel::$table_id = 0
protected

◆ $title

string ilDclBaseFieldModel::$title = ""
protected

◆ $unique

bool ilDclBaseFieldModel::$unique = false
protected

Definition at line 29 of file class.ilDclBaseFieldModel.php.

Referenced by isUnique().

◆ EDIT_VIEW

const ilDclBaseFieldModel::EDIT_VIEW = 2

Definition at line 59 of file class.ilDclBaseFieldModel.php.

◆ EXPORTABLE_VIEW

const ilDclBaseFieldModel::EXPORTABLE_VIEW = 4

Definition at line 60 of file class.ilDclBaseFieldModel.php.

◆ PROP_DISPLAY_COPY_LINK_ACTION_MENU

const ilDclBaseFieldModel::PROP_DISPLAY_COPY_LINK_ACTION_MENU = "display_action_menu"

◆ PROP_FORMULA_EXPRESSION

const ilDclBaseFieldModel::PROP_FORMULA_EXPRESSION = "expression"

◆ PROP_HEIGHT

◆ PROP_ILIAS_REFERENCE_LINK

◆ PROP_LEARNING_PROGRESS

const ilDclBaseFieldModel::PROP_LEARNING_PROGRESS = "learning_progress"

◆ PROP_LENGTH

◆ PROP_LINK_DETAIL_PAGE_MOB

const ilDclBaseFieldModel::PROP_LINK_DETAIL_PAGE_MOB = "link_detail_page_mob"

◆ PROP_LINK_DETAIL_PAGE_TEXT

const ilDclBaseFieldModel::PROP_LINK_DETAIL_PAGE_TEXT = "link_detail_page_text"

◆ PROP_N_REFERENCE

◆ PROP_PLUGIN_HOOK_NAME

const ilDclBaseFieldModel::PROP_PLUGIN_HOOK_NAME = "plugin_hook_name"

◆ PROP_REFERENCE

◆ PROP_REFERENCE_LINK

◆ PROP_REGEX

◆ PROP_SUPPORTED_FILE_TYPES

const ilDclBaseFieldModel::PROP_SUPPORTED_FILE_TYPES = "supported_file_types"

◆ PROP_TEXTAREA

◆ PROP_URL

◆ PROP_WIDTH


The documentation for this class was generated from the following file: