ILIAS  release_7 Revision v7.30-3-g800a261c036
ilDclBaseFieldModel Class Reference

Class ilDclBaseFieldModel. More...

+ Inheritance diagram for ilDclBaseFieldModel:
+ Collaboration diagram for ilDclBaseFieldModel:

Public Member Functions

 __construct ($a_id=0)
 
 setId ($a_id)
 Set field id. More...
 
 getId ()
 Get field id. More...
 
 setTableId ($a_id)
 Set table id. More...
 
 getTableId ()
 Get table id. More...
 
 setTitle ($a_title)
 Set title. More...
 
 getTitle ()
 Get title. More...
 
 setDescription ($a_desc)
 Set description. More...
 
 getDescription ()
 Get description. More...
 
 setDatatypeId ($a_id)
 Set datatype id. More...
 
 getDatatypeId ()
 Get datatype_id. More...
 
 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...
 
 getViewSettings ()
 
 getViewSetting (int $tableview_id)
 
 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...
 
 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
 
 $order
 
 $unique
 
 $property = array()
 
 $exportable
 
 $datatype
 
 $storage_location_override = null
 

Private Member Functions

 loadExportability ()
 Load exportability. More...
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilDclBaseFieldModel::__construct (   $a_id = 0)
Parameters
int$a_id

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

References doRead().

94  {
95  if ($a_id != 0) {
96  $this->id = $a_id;
97  $this->doRead();
98  }
99  }
+ Here is the call graph for this function:

Member Function Documentation

◆ _getFieldIdByTitle()

static ilDclBaseFieldModel::_getFieldIdByTitle (   $title,
  $table_id 
)
static
Parameters
$titleTitle of the field
$table_idID of table where the field belongs to
Returns
int

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

References $DIC, $id, $ilDB, $result, $table_id, and $title.

126  {
127  global $DIC;
128  $ilDB = $DIC['ilDB'];
129  $result = $ilDB->query(
130  'SELECT id FROM il_dcl_field WHERE title = ' . $ilDB->quote($title, 'text') . ' AND table_id = '
131  . $ilDB->quote($table_id, 'integer')
132  );
133  $id = 0;
134  while ($rec = $ilDB->fetchAssoc($result)) {
135  $id = $rec['id'];
136  }
137 
138  return $id;
139  }
$result
global $DIC
Definition: goto.php:24
global $ilDB

◆ _getTitleInvalidChars()

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

All valid chars for filed titles.

Parameters
bool$a_as_regex
Returns
string

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

Referenced by ilDclFieldEditGUI\initForm().

110  {
111  if ($a_as_regex) {
112  return '/^[^<>\\\\":]*$/i';
113  } else {
114  return '\ < > " :';
115  }
116  }
+ Here is the caller graph for this function:

◆ addToTableViews()

ilDclBaseFieldModel::addToTableViews ( )
protected

create ilDclTableViewFieldSettings for this field in each tableview

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

References ilDclTableView\getAllForTableId().

Referenced by doCreate().

452  {
453  foreach (ilDclTableView::getAllForTableId($this->table_id) as $tableview) {
454  $tableview->createFieldSetting($this->id);
455  }
456  }
static getAllForTableId($table_id)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ afterClone()

ilDclBaseFieldModel::afterClone (   $records)
Parameters
$records

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

References ilDclCache\getRecordFieldCache().

Referenced by ilDclReferenceFieldModel\getFieldRef().

766  {
767  foreach ($records as $rec) {
768  ilDclCache::getRecordFieldCache($rec, $this)->afterClone();
769  }
770  }
static getRecordFieldCache($record, $field)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ allowFilterInListView()

ilDclBaseFieldModel::allowFilterInListView ( )
Returns
bool

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

813  {
814  return true;
815  }

◆ buildFromDBRecord()

ilDclBaseFieldModel::buildFromDBRecord (   $rec)

Builds model from db record.

Parameters
$rec

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

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

412  {
413  $this->setId($rec["id"]);
414  $this->setTableId($rec["table_id"]);
415  $this->setTitle($rec["title"]);
416  $this->setDescription($rec["description"]);
417  $this->setDatatypeId($rec["datatype_id"]);
418  $this->setUnique($rec["is_unique"]);
419  }
setDescription($a_desc)
Set description.
setDatatypeId($a_id)
Set datatype id.
setTableId($a_id)
Set table id.
setTitle($a_title)
Set title.
+ Here is the call graph for this function:

◆ checkFieldCreationInput()

ilDclBaseFieldModel::checkFieldCreationInput ( ilPropertyFormGUI  $form)

Checks input of specific fields befor saving.

Parameters
ilPropertyFormGUI$form
Returns
boolean if checkInput was successful

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

895  {
896  return true;
897  }

◆ checkTitlesForImport()

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

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

References $title, getTitle(), and ilStr\isUtf8().

935  {
936  foreach ($titles as $k => $title) {
937  if (!ilStr::isUtf8($title)) {
938  $title = utf8_encode($title);
939  }
940  if ($title == $this->getTitle()) {
941  $import_fields[$k] = $this;
942  }
943  }
944  }
static isUtf8($a_str)
Check whether string is utf-8.
+ Here is the call graph for this function:

◆ checkValidity()

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

Check if input is valid.

Parameters
$value
null$record_id
Returns
bool
Exceptions
ilDclInputException

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

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

Referenced by checkValidityFromForm().

706  {
707  //Don't check empty values
708  if ($value == null) {
709  return true;
710  }
711 
712  if ($this->isUnique()) {
713  $table = ilDclCache::getTableCache($this->getTableId());
714  foreach ($table->getRecords() as $record) {
715  if ($this->normalizeValue($record->getRecordFieldValue($this->getId())) == $this->normalizeValue($value) && ($record->getId() != $record_id || $record_id == 0)) {
717  }
718  }
719  }
720 
721  return true;
722  }
Class ilDclBaseFieldModel.
static getTableCache($table_id=0)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ checkValidityFromForm()

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

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

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

690  {
691  $value = $form->getInput('field_' . $this->getId());
692  $this->checkValidity($value, $record_id);
693  }
checkValidity($value, $record_id=null)
Check if input is valid.
getInput($a_post_var, $ensureValidation=true)
Returns the value of a HTTP-POST variable, identified by the passed id.
+ Here is the call graph for this function:

◆ cloneProperties()

ilDclBaseFieldModel::cloneProperties ( ilDclBaseFieldModel  $originalField)
Parameters
ilDclBaseFieldModel$originalField

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

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

Referenced by cloneStructure().

777  {
778  $orgProps = $originalField->getValidFieldProperties();
779  if (count($orgProps) == 0) {
780  return;
781  }
782  foreach ($orgProps as $prop_name) {
783  $fieldprop_obj = new ilDclFieldProperty();
784  $fieldprop_obj->setFieldId($this->getId());
785  $fieldprop_obj->setName($prop_name);
786 
787  $value = $originalField->getProperty($prop_name);
788 
789  // If reference field, we must reset the referenced field, otherwise it will point to the old ID
791  $value = null;
792  }
793 
794  $fieldprop_obj->setValue($value);
795  $fieldprop_obj->create();
796  }
797  }
Class ilDclFieldProperty.
getProperty($key)
Returns a certain property of a field.
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 (   $original_id)
Parameters
$original_id
Exceptions
ilException

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

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

746  {
747  $original = ilDclCache::getFieldCache($original_id);
748  $this->setTitle($original->getTitle());
749  $this->setDatatypeId($original->getDatatypeId());
750  $this->setDescription($original->getDescription());
751  $this->setOrder($original->getOrder());
752  $this->setUnique($original->isUnique());
753  $this->setExportable($original->getExportable());
754  $this->doCreate();
755  $this->cloneProperties($original);
756 
757  // mandatory for all cloning functions
758  ilDclCache::setCloneOf($original_id, $this->getId(), ilDclCache::TYPE_FIELD);
759  }
static setCloneOf($old, $new, $type)
setDescription($a_desc)
Set description.
setDatatypeId($a_id)
Set datatype id.
static getFieldCache($field_id=0)
cloneProperties(ilDclBaseFieldModel $originalField)
setTitle($a_title)
Set title.
+ Here is the call graph for this function:

◆ doCreate()

ilDclBaseFieldModel::doCreate ( )

Create new field.

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

References $DIC, $id, $ilDB, $query, ilDclTable\_tableExists(), addToTableViews(), getDatatypeId(), getDescription(), getId(), getTableId(), getTitle(), isUnique(), setId(), and updateTableFieldSetting().

Referenced by cloneStructure().

426  {
427  global $DIC;
428  $ilDB = $DIC['ilDB'];
429 
430  if (!ilDclTable::_tableExists($this->getTableId())) {
431  throw new ilException("The field does not have a related table!");
432  }
433 
434  $id = $ilDB->nextId("il_dcl_field");
435  $this->setId($id);
436  $query = "INSERT INTO il_dcl_field (" . "id" . ", table_id" . ", datatype_id" . ", title" . ", description" . ", is_unique"
437  . " ) VALUES (" . $ilDB->quote($this->getId(), "integer") . "," . $ilDB->quote($this->getTableId(), "integer") . ","
438  . $ilDB->quote($this->getDatatypeId(), "integer") . "," . $ilDB->quote($this->getTitle(), "text") . ","
439  . $ilDB->quote($this->getDescription(), "text") . "," . $ilDB->quote($this->isUnique(), "integer") . ")";
440  $ilDB->manipulate($query);
441 
442  $this->updateTableFieldSetting();
443 
444  $this->addToTableViews();
445  }
addToTableViews()
create ilDclTableViewFieldSettings for this field in each tableview
static _tableExists($table_id)
global $DIC
Definition: goto.php:24
$query
getDescription()
Get description.
updateTableFieldSetting()
update exportable and fieldorder
global $ilDB
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 530 of file class.ilDclBaseFieldModel.php.

References $DIC, $ilDB, $query, getId(), ilDclTableFieldSetting\getInstance(), getTableId(), and getViewSettings().

531  {
532  global $DIC;
533  $ilDB = $DIC['ilDB'];
534 
535  // delete tablefield setting.
536  ilDclTableFieldSetting::getInstance($this->getTableId(), $this->getId())->delete();
537 
538  $query = "DELETE FROM il_dcl_field_prop WHERE field_id = " . $ilDB->quote($this->getId(), "text");
539  $ilDB->manipulate($query);
540 
541  $query = "DELETE FROM il_dcl_field WHERE id = " . $ilDB->quote($this->getId(), "text");
542  $ilDB->manipulate($query);
543 
544  foreach ($this->getViewSettings() as $field_setting) {
545  $field_setting->delete();
546  }
547  }
static getInstance($table_id, $field)
global $DIC
Definition: goto.php:24
$query
global $ilDB
+ Here is the call graph for this function:

◆ doRead()

ilDclBaseFieldModel::doRead ( )

Read field.

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

References $DIC, $ilDB, $query, getId(), loadProperties(), loadTableFieldSetting(), setDatatypeId(), setDescription(), setTableId(), setTitle(), and setUnique().

Referenced by __construct().

387  {
388  global $DIC;
389  $ilDB = $DIC['ilDB'];
390 
391  //THEN 1 ELSE 0 END AS has_options FROM il_dcl_field f WHERE id = ".$ilDB->quote($this->getId(),"integer");
392  $query = "SELECT * FROM il_dcl_field WHERE id = " . $ilDB->quote($this->getId(), "integer");
393  $set = $ilDB->query($query);
394  $rec = $ilDB->fetchAssoc($set);
395 
396  $this->setTableId($rec["table_id"]);
397  $this->setTitle($rec["title"]);
398  $this->setDescription($rec["description"]);
399  $this->setDatatypeId($rec["datatype_id"]);
400  $this->setUnique($rec["is_unique"]);
401  $this->loadProperties();
402  $this->loadTableFieldSetting();
403  }
setDescription($a_desc)
Set description.
setDatatypeId($a_id)
Set datatype id.
loadTableFieldSetting()
loadTableFieldSetting
setTableId($a_id)
Set table id.
loadProperties()
Get all properties of a field.
global $DIC
Definition: goto.php:24
$query
global $ilDB
setTitle($a_title)
Set title.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ doUpdate()

ilDclBaseFieldModel::doUpdate ( )

Update field.

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

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

463  {
464  global $DIC;
465  $ilDB = $DIC['ilDB'];
466 
467  $ilDB->update(
468  "il_dcl_field",
469  array(
470  "table_id" => array(
471  "integer",
472  $this->getTableId(),
473  ),
474  "datatype_id" => array(
475  "text",
476  $this->getDatatypeId(),
477  ),
478  "title" => array(
479  "text",
480  $this->getTitle(),
481  ),
482  "description" => array(
483  "text",
484  $this->getDescription(),
485  ),
486  "is_unique" => array(
487  "integer",
488  $this->isUnique(),
489  ),
490  ),
491  array(
492  "id" => array(
493  "integer",
494  $this->getId(),
495  ),
496  )
497  );
498  $this->updateTableFieldSetting();
499  $this->updateProperties();
500  }
updateProperties()
Update properties of this field in Database.
global $DIC
Definition: goto.php:24
getDescription()
Get description.
updateTableFieldSetting()
update exportable and fieldorder
global $ilDB
getDatatypeId()
Get datatype_id.
+ Here is the call graph for this function:

◆ fillHeaderExcel()

ilDclBaseFieldModel::fillHeaderExcel ( ilExcel  $worksheet,
$row,
$col 
)
Parameters
ilExcel$worksheet
$row
$col

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

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

924  {
925  $worksheet->setCell($row, $col, $this->getTitle());
926  $col++;
927  }
setCell($a_row, $a_col, $a_value, $a_datatype=null)
Set cell value.
+ Here is the call graph for this function:

◆ fillPropertiesForm()

ilDclBaseFieldModel::fillPropertiesForm ( ilPropertyFormGUI $form)

called to fill the 'edit field' form

Parameters
ilPropertyFormGUI$form
Returns
bool

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

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

975  {
976  $values = array(
977  'table_id' => $this->getTableId(),
978  'field_id' => $this->getId(),
979  'title' => $this->getTitle(),
980  'datatype' => $this->getDatatypeId(),
981  'description' => $this->getDescription(),
982  'unique' => $this->isUnique(),
983  );
984 
985  $properties = $this->getValidFieldProperties();
986  foreach ($properties as $prop) {
987  $values['prop_' . $prop] = $this->getProperty($prop);
988  }
989 
990  $form->setValuesByArray($values);
991 
992  return true;
993  }
getDescription()
Get description.
getProperty($key)
Returns a certain property of a field.
getValidFieldProperties()
Returns all valid properties for a field-type.
setValuesByArray($a_values, $a_restrict_to_value_keys=false)
Set form values from an array.
getDatatypeId()
Get datatype_id.
+ Here is the call graph for this function:

◆ getConfirmationGUI()

ilDclBaseFieldModel::getConfirmationGUI ( ilPropertyFormGUI  $form)

called by ilDclFieldEditGUI if isConfirmationRequired returns true

Parameters
ilPropertyFormGUI$form
Returns
ilConfirmationGUI

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

References $DIC, ilFormGUI\getFormAction(), and ilPropertyFormGUI\getInput().

1018  {
1019  global $DIC;
1020  $ilConfirmationGUI = new ilConfirmationGUI();
1021  $ilConfirmationGUI->setFormAction($form->getFormAction());
1022  $ilConfirmationGUI->addHiddenItem('confirmed', 1);
1023  $ilConfirmationGUI->addHiddenItem('field_id', $form->getInput('field_id'));
1024  $ilConfirmationGUI->addHiddenItem('title', $form->getInput('title'));
1025  $ilConfirmationGUI->addHiddenItem('description', $form->getInput('description'));
1026  $ilConfirmationGUI->addHiddenItem('datatype', $form->getInput('datatype'));
1027  $ilConfirmationGUI->addHiddenItem('unique', $form->getInput('unique'));
1028  $ilConfirmationGUI->setConfirm($DIC->language()->txt('dcl_update_field'), 'update');
1029  $ilConfirmationGUI->setCancel($DIC->language()->txt('cancel'), 'edit');
1030 
1031  return $ilConfirmationGUI;
1032  }
getFormAction()
Get FormAction.
global $DIC
Definition: goto.php:24
getInput($a_post_var, $ensureValidation=true)
Returns the value of a HTTP-POST variable, identified by the passed id.
Confirmation screen class.
+ Here is the call graph for this function:

◆ getDatatype()

ilDclBaseFieldModel::getDatatype ( )
Returns
ilDclDatatype

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

References $datatype, and loadDatatype().

Referenced by ilDclFieldFactory\getClassPathByInstance(), and ilDclFieldFactory\getFieldTypeByInstance().

284  {
285  $this->loadDatatype();
286 
287  return $this->datatype;
288  }
loadDatatype()
Load datatype for model.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getDatatypeId()

ilDclBaseFieldModel::getDatatypeId ( )

Get datatype_id.

Returns
int

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

References $datatypeId, ilDclStandardField\_getDatatypeForId(), getId(), and isStandardField().

Referenced by cloneProperties(), doCreate(), doUpdate(), ilDclSelectionFieldModel\fillPropertiesForm(), fillPropertiesForm(), ilDclStandardField\getRecordQueryFilterObject(), and hasNumericSorting().

253  {
254  if ($this->isStandardField()) {
256  }
257 
258  return $this->datatypeId;
259  }
static _getDatatypeForId($id)
gives you the datatype id of a specified standard field.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getDatatypeTitle()

ilDclBaseFieldModel::getDatatypeTitle ( )
Returns
string

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

References loadDatatype().

295  {
296  $this->loadDatatype();
297 
298  return $this->datatype->getTitle();
299  }
loadDatatype()
Load datatype for model.
+ Here is the call graph for this function:

◆ getDescription()

ilDclBaseFieldModel::getDescription ( )

Get description.

Returns
string

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

References $description.

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

229  {
230  return $this->description;
231  }
+ Here is the caller graph for this function:

◆ getExportable()

ilDclBaseFieldModel::getExportable ( )
Returns
bool

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

References $exportable, and loadExportability().

345  {
346  if (!isset($this->exportable)) {
347  $this->loadExportability();
348  }
349 
350  return $this->exportable;
351  }
loadExportability()
Load exportability.
+ Here is the call graph for this function:

◆ getId()

ilDclBaseFieldModel::getId ( )

Get field id.

Returns
int

Definition at line 158 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(), ilDclFieldFactory\getFieldTypeByInstance(), ilDclSelectionFieldModel\getProperty(), ilDclFieldFactory\getRecordFieldInstance(), ilDclTextFieldModel\getRecordQueryFilterObject(), ilDclNumberFieldModel\getRecordQueryFilterObject(), ilDclBooleanFieldModel\getRecordQueryFilterObject(), ilDclDatetimeFieldModel\getRecordQueryFilterObject(), ilDclSelectionFieldModel\getRecordQueryFilterObject(), ilDclFileuploadFieldModel\getRecordQueryFilterObject(), ilDclIliasReferenceFieldModel\getRecordQueryFilterObject(), ilDclReferenceFieldModel\getRecordQueryFilterObject(), ilDclIliasReferenceFieldModel\getRecordQuerySortObject(), ilDclFileuploadFieldModel\getRecordQuerySortObject(), ilDclReferenceFieldModel\getRecordQuerySortObject(), ilDclStandardField\getRecordQuerySortObject(), ilDclSelectionFieldModel\getRecordQuerySortObject(), getRecordQuerySortObject(), ilDclStandardField\getSortField(), getViewSetting(), getViewSettings(), ilDclStandardField\hasNumericSorting(), loadProperties(), loadTableFieldSetting(), ilDclSelectionFieldModel\multiPropertyChanged(), ilDclSelectionFieldModel\reorderExistingValues(), ilDclSelectionFieldModel\setProperty(), setProperty(), and updateTableFieldSetting().

159  {
160  return $this->id;
161  }
+ Here is the caller graph for this function:

◆ getOrder()

ilDclBaseFieldModel::getOrder ( )
Returns
int

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

References $order, and loadTableFieldSetting().

571  {
572  if ($this->order == null) {
573  $this->loadTableFieldSetting();
574  }
575 
576  return !$this->order ? 0 : $this->order;
577  }
loadTableFieldSetting()
loadTableFieldSetting
+ Here is the call graph for this function:

◆ getProperty()

ilDclBaseFieldModel::getProperty (   $key)

Returns a certain property of a field.

Parameters
$key
Returns
null

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

References 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().

623  {
624  $instance = $this->getPropertyInstance($key);
625 
626  return ($instance !== null) ? $instance->getValue() : null;
627  }
getPropertyInstance($key)
Return ActiveRecord of property.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getPropertyInstance()

ilDclBaseFieldModel::getPropertyInstance (   $key)

Return ActiveRecord of property.

Parameters
$key
Returns
null

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

References hasProperty(), and loadProperties().

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

638  {
639  $this->loadProperties();
640  if ($this->hasProperty($key)) {
641  $value = $this->property[$key];
642 
643  return $value;
644  }
645 
646  return null;
647  }
loadProperties()
Get all properties of a field.
hasProperty($key)
Checks if a certain property for a field is set.
+ 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$filter_value
ilDclBaseFieldModel | null$sort_field
Returns
null|ilDclRecordQueryObject

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

856  {
857  return null;
858  }

◆ getRecordQuerySortObject()

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

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

Parameters
string$direction
boolean$sort_by_statusThe specific sort object is a status field
Returns
null|ilDclRecordQueryObject

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

References $DIC, $ilDB, and getId().

827  {
828  global $DIC;
829  $ilDB = $DIC['ilDB'];
830 
831  $sql_obj = new ilDclRecordQueryObject();
832 
833  $select_str = "sort_stloc_{$this->getId()}.value AS field_{$this->getId()}";
834  $join_str
835  = "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 = "
836  . $ilDB->quote($this->getId(), 'integer') . ") ";
837  $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)";
838 
839  $sql_obj->setSelectStatement($select_str);
840  $sql_obj->setJoinStatement($join_str);
841  $sql_obj->setOrderStatement("field_{$this->getId()} {$direction}");
842 
843  return $sql_obj;
844  }
Class ilDclRecordQueryObject.
global $DIC
Definition: goto.php:24
global $ilDB
+ Here is the call graph for this function:

◆ getSortField()

ilDclBaseFieldModel::getSortField ( )

Returns the sort-field id.

Returns
string

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

References getTitle().

867  {
868  return $this->getTitle();
869  }
+ Here is the call graph for this function:

◆ getStorageLocation()

ilDclBaseFieldModel::getStorageLocation ( )

Get storage location for the model.

Returns
int|null

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

References getStorageLocationOverride(), and loadDatatype().

308  {
309  if ($this->getStorageLocationOverride() !== null) {
310  return $this->getStorageLocationOverride();
311  }
312 
313  $this->loadDatatype();
314 
315  return $this->datatype->getStorageLocation();
316  }
loadDatatype()
Load datatype for model.
+ Here is the call graph for this function:

◆ getStorageLocationOverride()

ilDclBaseFieldModel::getStorageLocationOverride ( )
Returns
int|null

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

References $storage_location_override.

Referenced by getStorageLocation().

+ Here is the caller graph for this function:

◆ getTableId()

◆ getTitle()

◆ getValidFieldProperties()

ilDclBaseFieldModel::getValidFieldProperties ( )

Returns all valid properties for a field-type.

Returns
array

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

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

680  {
681  return array();
682  }
+ Here is the caller graph for this function:

◆ getViewSetting()

ilDclBaseFieldModel::getViewSetting ( int  $tableview_id)
Parameters
int$tableview_id
Returns
ilDclTableViewFieldSetting

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

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

562  {
563  return ilDclTableViewFieldSetting::where(array('field' => $this->getId(), 'tableview_id' => $tableview_id))->first();
564  }
static where($where, $operator=null)
Class ilDclTableViewFieldSetting.
+ Here is the call graph for this function:

◆ getViewSettings()

ilDclBaseFieldModel::getViewSettings ( )
Returns
ilDclTableViewFieldSetting[]

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

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

Referenced by doDelete().

552  : array
553  {
554  return ilDclTableViewFieldSetting::where(array('field' => $this->getId()))->get();
555  }
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.

Returns
bool

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

References getDatatypeId(), and ilDclDatatype\INPUTFORMAT_NUMBER.

878  {
880  return true;
881  }
882 
883  return false;
884  }
getDatatypeId()
Get datatype_id.
+ Here is the call graph for this function:

◆ hasProperty()

ilDclBaseFieldModel::hasProperty (   $key)

Checks if a certain property for a field is set.

Parameters
$key
Returns
bool

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

References loadProperties().

Referenced by ilDclTextFieldModel\checkTitlesForImport(), ilDclFieldFactory\getClassPathByInstance(), ilDclFieldFactory\getFieldTypeByInstance(), getPropertyInstance(), ilDclReferenceFieldModel\getRecordQuerySortObject(), ilDclTextFieldModel\getRecordQuerySortObject(), and ilDclFileuploadFieldModel\getSupportedExtensions().

608  {
609  $this->loadProperties();
610 
611  return (isset($this->property[$key]) && $this->property[$key]->getValue() != null);
612  }
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

Parameters
ilPropertyFormGUI$form
Returns
bool

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

1005  {
1006  return false;
1007  }

◆ isStandardField()

ilDclBaseFieldModel::isStandardField ( )
Returns
bool

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

Referenced by getDatatypeId().

378  {
379  return false;
380  }
+ Here is the caller graph for this function:

◆ isUnique()

◆ loadDatatype()

ilDclBaseFieldModel::loadDatatype ( )
protected

Load datatype for model.

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

References ilDclCache\getDatatype().

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

323  {
324  if ($this->datatype == null) {
325  $this->datatype = ilDclCache::getDatatype($this->datatypeId);
326  }
327  }
static getDatatype($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 357 of file class.ilDclBaseFieldModel.php.

References loadTableFieldSetting().

Referenced by getExportable().

358  {
359  if ($this->exportable == null) {
360  $this->loadTableFieldSetting();
361  }
362  }
loadTableFieldSetting()
loadTableFieldSetting
+ 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.

Returns
array

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

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

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

595  {
596  $this->property = ilDclCache::getFieldProperties($this->getId());
597  }
static getFieldProperties($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 333 of file class.ilDclBaseFieldModel.php.

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

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

334  {
335  $tablefield_setting = ilDclTableFieldSetting::getInstance($this->getTableId(), $this->getId());
336  $this->exportable = $tablefield_setting->isExportable();
337  $this->order = $tablefield_setting->getFieldOrder();
338  }
static getInstance($table_id, $field)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ normalizeValue()

ilDclBaseFieldModel::normalizeValue (   $value)
protected
Parameters
$value
Returns
string

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

Referenced by ilDclTextFieldModel\checkValidity(), ilDclFileuploadFieldModel\checkValidity(), and checkValidity().

731  {
732  if (is_string($value)) {
733  $value = trim(preg_replace("/\\s+/uism", " ", $value));
734  }
735 
736  return $value;
737  }
+ Here is the caller graph for this function:

◆ setDatatypeId()

ilDclBaseFieldModel::setDatatypeId (   $a_id)

Set datatype id.

Parameters
int$a_id

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

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

240  {
241  //unset the cached datatype.
242  $this->datatype = null;
243  $this->datatypeId = $a_id;
244  }
+ Here is the caller graph for this function:

◆ setDescription()

ilDclBaseFieldModel::setDescription (   $a_desc)

Set description.

Parameters
string$a_desc

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

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

218  {
219  $this->description = $a_desc;
220  }
+ Here is the caller graph for this function:

◆ setExportable()

ilDclBaseFieldModel::setExportable (   $exportable)
Parameters
boolean$exportable

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

References $exportable.

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

804  {
805  $this->exportable = $exportable;
806  }
+ Here is the caller graph for this function:

◆ setId()

ilDclBaseFieldModel::setId (   $a_id)

Set field id.

Parameters
int$a_id

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

Referenced by buildFromDBRecord(), and doCreate().

148  {
149  $this->id = $a_id;
150  }
+ Here is the caller graph for this function:

◆ setOrder()

ilDclBaseFieldModel::setOrder (   $order)
Parameters
$order

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

References $order.

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

584  {
585  $this->order = $order;
586  }
+ Here is the caller graph for this function:

◆ setProperty()

ilDclBaseFieldModel::setProperty (   $key,
  $value 
)

Set a property for a field (does not save)

Parameters
$key
$value

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

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

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

657  {
658  $this->loadProperties();
659  if (isset($this->property[$key])) {
660  $this->property[$key]->setValue($value);
661  } else {
663  $property->setName($key);
664  $property->setFieldId($this->getId());
665  $property->setValue($value);
666 
667  $this->property[$key] = $property;
668  }
669 
670  return $this->property[$key];
671  }
Class ilDclFieldProperty.
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 (   $storage_location_override)
Parameters
int | null$storage_location_override

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

References $storage_location_override.

913  {
914  $this->storage_location_override = $storage_location_override;
915  }

◆ setTableId()

ilDclBaseFieldModel::setTableId (   $a_id)

Set table id.

Parameters
int$a_id

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

Referenced by buildFromDBRecord(), and doRead().

170  {
171  $this->table_id = $a_id;
172  }
+ Here is the caller graph for this function:

◆ setTitle()

ilDclBaseFieldModel::setTitle (   $a_title)

Set title.

Parameters
string$a_title

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

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

192  {
193  //title cannot begin with _ as this is saved for other purposes. make __ instead.
194  if (substr($a_title, 0, 1) == "_" && substr($a_title, 0, 2) != "__") {
195  $a_title = "_" . $a_title;
196  }
197  $this->title = $a_title;
198  }
+ Here is the caller graph for this function:

◆ setUnique()

ilDclBaseFieldModel::setUnique (   $unique)
Parameters
bool$unique

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

References $unique.

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

275  {
276  $this->unique = $unique ? 1 : 0;
277  }
+ Here is the caller graph for this function:

◆ storePropertiesFromForm()

ilDclBaseFieldModel::storePropertiesFromForm ( ilPropertyFormGUI  $form)

called when saving the 'edit field' form

Parameters
ilPropertyFormGUI$form

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

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

953  {
954  $field_props = $this->getValidFieldProperties();
955  foreach ($field_props as $property) {
956  $representation = ilDclFieldFactory::getFieldRepresentationInstance($this);
957  $value = $form->getInput($representation->getPropertyInputFieldId($property));
958 
959  // save non empty values and set them to null, when they already exist. Do not override plugin-hook when already set.
960  if (!empty($value) || ($this->getPropertyInstance($property) != null && $property != self::PROP_PLUGIN_HOOK_NAME)) {
961  $this->setProperty($property, $value)->store();
962  }
963  }
964  }
static getFieldRepresentationInstance(ilDclBaseFieldModel $field)
Returns FieldRepresentation from BaseFieldModel.
getPropertyInstance($key)
Return ActiveRecord of property.
setProperty($key, $value)
Set a property for a field (does not save)
getInput($a_post_var, $ensureValidation=true)
Returns the value of a HTTP-POST variable, identified by the passed id.
getValidFieldProperties()
Returns all valid properties for a field-type.
+ Here is the call graph for this function:

◆ toArray()

ilDclBaseFieldModel::toArray ( )
Returns
array

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

369  {
370  return (array) $this;
371  }

◆ updateProperties()

ilDclBaseFieldModel::updateProperties ( )

Update properties of this field in Database.

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

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

507  {
508  foreach ($this->property as $prop) {
509  $prop->store();
510  }
511  }
+ Here is the caller graph for this function:

◆ updateTableFieldSetting()

ilDclBaseFieldModel::updateTableFieldSetting ( )
protected

update exportable and fieldorder

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

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

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

519  {
520  $tablefield_setting = ilDclTableFieldSetting::getInstance($this->getTableId(), $this->getId());
521  $tablefield_setting->setExportable($this->exportable);
522  $tablefield_setting->setFieldOrder($this->order);
523  $tablefield_setting->store();
524  }
static getInstance($table_id, $field)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $datatype

ilDclBaseFieldModel::$datatype
protected

◆ $datatypeId

ilDclBaseFieldModel::$datatypeId
protected

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

Referenced by getDatatypeId().

◆ $description

ilDclBaseFieldModel::$description
protected

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

Referenced by getDescription().

◆ $exportable

ilDclBaseFieldModel::$exportable
protected

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

Referenced by getExportable(), and setExportable().

◆ $id

◆ $order

ilDclBaseFieldModel::$order
protected

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

Referenced by getOrder(), and setOrder().

◆ $property

ilDclBaseFieldModel::$property = array()
protected

◆ $storage_location_override

ilDclBaseFieldModel::$storage_location_override = null
protected

◆ $table_id

ilDclBaseFieldModel::$table_id
protected

◆ $title

◆ $unique

ilDclBaseFieldModel::$unique
protected

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

Referenced by isUnique(), and setUnique().

◆ EDIT_VIEW

const ilDclBaseFieldModel::EDIT_VIEW = 2

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

◆ EXPORTABLE_VIEW

const ilDclBaseFieldModel::EXPORTABLE_VIEW = 4

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

◆ PROP_DATE_SELECTION_OPTIONS

const ilDclBaseFieldModel::PROP_DATE_SELECTION_OPTIONS = "date_selection_options"

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

◆ PROP_DATE_SELECTION_TYPE

const ilDclBaseFieldModel::PROP_DATE_SELECTION_TYPE = "date_selection_type"

Definition at line 84 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

◆ PROP_LENGTH

◆ PROP_LINK_DETAIL_PAGE_TEXT

◆ PROP_N_REFERENCE

◆ PROP_PLUGIN_HOOK_NAME

◆ PROP_REFERENCE

◆ PROP_REFERENCE_LINK

◆ PROP_REGEX

◆ PROP_SUPPORTED_FILE_TYPES

const ilDclBaseFieldModel::PROP_SUPPORTED_FILE_TYPES = "supported_file_types"

◆ PROP_TEXT_SELECTION_OPTIONS

const ilDclBaseFieldModel::PROP_TEXT_SELECTION_OPTIONS = "text_selection_options"

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

◆ PROP_TEXT_SELECTION_TYPE

const ilDclBaseFieldModel::PROP_TEXT_SELECTION_TYPE = "text_selection_type"

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

◆ PROP_TEXTAREA

◆ PROP_URL

◆ PROP_WIDTH


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