ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f870
All Data Structures Namespaces Files Functions Variables Modules Pages
ilDataCollectionField Class Reference

Class ilDataCollectionField. More...

+ Inheritance diagram for ilDataCollectionField:
+ Collaboration diagram for ilDataCollectionField:

Public Member Functions

 __construct ($a_id=0)
 
 setId ($a_id)
 Set field id. More...
 
 getId ()
 Get field id. More...
 
 setTableId ($a_id)
 Set table id. More...
 
 getTableId ()
 Get table id. More...
 
 setTitle ($a_title)
 Set title. More...
 
 getTitle ()
 Get title. More...
 
 setDescription ($a_desc)
 Set description. More...
 
 getDescription ()
 Get description. More...
 
 setDatatypeId ($a_id)
 Set datatype id. More...
 
 getDatatypeId ()
 Get datatype_id. More...
 
 setRequired ($a_required)
 Set Required. More...
 
 getRequired ()
 Get Required Required. More...
 
 setPropertyvalue ($a_value, $a_id)
 Set Property Value. More...
 
 isUnique ()
 
 setUnique ($unique)
 
 getPropertyvalues ()
 Get Property Values. More...
 
 setVisible ($visible)
 setVisible More...
 
 setFilterable ($filterable)
 setFilterable More...
 
 getDatatype ()
 
 getLength ()
 
 getTextArea ()
 
 getLearningProgress ()
 
 getDatatypeTitle ()
 
 getStorageLocation ()
 
 isVisible ()
 
 isFilterable ()
 
 isEditable ()
 isEditable More...
 
 setEditable ($editable)
 
 getExportable ()
 
 toArray ()
 
 isStandardField ()
 
 doRead ()
 Read field. More...
 
 buildFromDBRecord ($rec)
 
 doCreate ()
 Create new field. More...
 
 doUpdate ()
 Update field. More...
 
 getFilterable ()
 
 doDelete ()
 
 getOrder ()
 
 setOrder ($order)
 
 getFieldRef ()
 
 getFieldReflist ()
 
 isNRef ()
 
 getProperties ()
 Get all properties of a field. More...
 
 setProperties ($data)
 
 setLocked ($locked)
 
 getLocked ()
 
 checkValidity ($value, $record_id=NULL)
 
 cloneStructure ($original_id)
 
 cloneProperties (ilDataCollectionField $originalField)
 
 setExportable ($exportable)
 

Static Public Member Functions

static _getTitleValidChars ($a_as_regex=true)
 All valid chars for filed titles. More...
 
static _getFieldIdByTitle ($title, $table_id)
 

Data Fields

const PROPERTYID_LENGTH = 1
 
const PROPERTYID_REGEX = 2
 
const PROPERTYID_REFERENCE = 3
 
const PROPERTYID_URL = 4
 LINK OR EMAIL! More...
 
const PROPERTYID_TEXTAREA = 5
 
const PROPERTYID_REFERENCE_LINK = 6
 
const PROPERTYID_WIDTH = 7
 
const PROPERTYID_HEIGHT = 8
 
const PROPERTYID_LEARNING_PROGRESS = 9
 
const PROPERTYID_ILIAS_REFERENCE_LINK = 10
 
const PROPERTYID_N_REFERENCE = 11
 
const PROPERTYID_FORMULA_EXPRESSION = 12
 
const PROPERTYID_DISPLAY_COPY_LINK_ACTION_MENU = 13
 
const PROPERTYID_LINK_DETAIL_PAGE_TEXT = 14
 
const PROPERTYID_LINK_DETAIL_PAGE_MOB = 15
 
const PROPERTYID_SUPPORTED_FILE_TYPES = 16
 
const VIEW_VIEW = 1
 
const EDIT_VIEW = 2
 
const FILTER_VIEW = 3
 
const EXPORTABLE_VIEW = 4
 

Protected Member Functions

 loadDatatype ()
 
 loadVisibility ()
 
 loadFilterability ()
 
 loadViewDefinition ($view)
 loadViewDefinition More...
 
 updateProperties ()
 Update properties of this field in Database. More...
 
 updateVisibility ()
 
 updateFilterability ()
 
 updateEditability ()
 
 updateExportability ()
 

Protected Attributes

 $id
 
 $table_id
 
 $title
 
 $description
 
 $datatypeId
 
 $required
 
 $order
 
 $unique
 
 $visible
 
 $editable
 
 $filterable
 
 $locked
 
 $property = array()
 
 $exportable
 
 $datatype
 

Private Member Functions

 loadEditability ()
 
 loadExportability ()
 
 updateViewDefinition ($view)
 updateViewDefinition More...
 
 deleteViewDefinition ($view)
 
 loadProperties ()
 Get all properties of a field. More...
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 111 of file class.ilDataCollectionField.php.

References doRead().

111  {
112  if ($a_id != 0) {
113  $this->id = $a_id;
114  $this->doRead();
115  }
116  }
+ Here is the call graph for this function:

Member Function Documentation

◆ _getFieldIdByTitle()

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

Definition at line 141 of file class.ilDataCollectionField.php.

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

Referenced by ilObjDataCollection\cloneStructure().

141  {
142  global $ilDB;
143  $result = $ilDB->query('SELECT id FROM il_dcl_field WHERE title = ' . $ilDB->quote($title, 'text') . ' AND table_id = '
144  . $ilDB->quote($table_id, 'integer'));
145  $id = 0;
146  while ($rec = $ilDB->fetchAssoc($result)) {
147  $id = $rec['id'];
148  }
149 
150  return $id;
151  }
$result
global $ilDB
+ Here is the caller graph for this function:

◆ _getTitleValidChars()

static ilDataCollectionField::_getTitleValidChars (   $a_as_regex = true)
static

All valid chars for filed titles.

Parameters
bool$a_as_regex
Returns
string

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

Referenced by ilDataCollectionFieldEditGUI\initForm().

126  {
127  if ($a_as_regex) {
128  return '/^[a-zA-Z\d \/\-.,äöüÄÖÜàéèÀÉÈç¢]*$/i';
129  } else {
130  return 'A-Z a-z 0-9 /-.,';
131  }
132  }
+ Here is the caller graph for this function:

◆ buildFromDBRecord()

ilDataCollectionField::buildFromDBRecord (   $rec)

Definition at line 590 of file class.ilDataCollectionField.php.

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

590  {
591  $this->setId($rec["id"]);
592  $this->setTableId($rec["table_id"]);
593  $this->setTitle($rec["title"]);
594  $this->setDescription($rec["description"]);
595  $this->setDatatypeId($rec["datatype_id"]);
596  $this->setRequired($rec["required"]);
597  $this->setUnique($rec["is_unique"]);
598  $this->setLocked($rec["is_locked"]);
599  }
setRequired($a_required)
Set Required.
setDatatypeId($a_id)
Set datatype id.
setDescription($a_desc)
Set description.
+ Here is the call graph for this function:

◆ checkValidity()

ilDataCollectionField::checkValidity (   $value,
  $record_id = NULL 
)

Definition at line 908 of file class.ilDataCollectionField.php.

References ilDataCollectionDatatype\checkValidity(), getDatatypeId(), getPropertyvalues(), ilDataCollectionCache\getTableCache(), getTableId(), ilDataCollectionDatatype\INPUTFORMAT_DATETIME, ilDataCollectionDatatype\INPUTFORMAT_TEXT, isUnique(), ilDataCollectionInputException\LENGTH_EXCEPTION, ilDataCollectionInputException\NOT_URL, PROPERTYID_LENGTH, PROPERTYID_REGEX, PROPERTYID_URL, ilDataCollectionInputException\REGEX_EXCEPTION, ilStr\strLen(), ilDataCollectionInputException\TYPE_EXCEPTION, and ilDataCollectionInputException\UNIQUE_EXCEPTION.

908  {
909  //Don't check empty values
910  if ($value == NULL) {
911  return true;
912  }
913 
916  }
917 
918  $properties = $this->getPropertyvalues();
922 
924  $regex = $properties[$regex_id];
925  if (substr($regex, 0, 1) != "/") {
926  $regex = "/" . $regex;
927  }
928  if (substr($regex, - 1) != "/") {
929  $regex .= "/";
930  }
931 
932  if ($properties[$length] < ilStr::strLen($value) AND is_numeric($properties[$length])) {
934  }
935  if (!($properties[$regex_id] == NULL OR @preg_match($regex, $value))) {
937  }
938  //email or url
939  if ($properties[$url]
940  && !(preg_match('~(^(www|news|(ht|f)tp(s?)\://){1}\S+)~i', $value)
941  || preg_match("/^[a-z0-9!#$%&'*+=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i", $value))
942  ) {
944  }
945  }
946 
947  if ($this->isUnique() && $record_id === NULL) {
949 
950  foreach ($table->getRecords() as $record) {
951  if ($record->getRecordFieldValue($this->getId()) == $value && ($record->getId() != $record_id || $record_id == 0)) {
953  }
954 
955  //for text it has to be case insensitive.
957  if (strtolower($record->getRecordFieldValue($this->getId())) == strtolower($value)
958  && ($record->getId() != $record_id
959  || $record_id == 0)
960  ) {
962  }
963  }
964 
966  $datestring = $value["date"] . " " . $value["time"];//["y"]."-".$value["date"]['m']."-".$value["date"]['d']." 00:00:00";
967 
968  if ($record->getRecordFieldValue($this->getId()) == $datestring && ($record->getId() != $record_id || $record_id == 0)) {
970  }
971  }
972  }
973  }
974 
975  return true;
976  }
static strLen($a_string)
Definition: class.ilStr.php:77
static checkValidity($type_id, $value)
now only distinguishes between number and text values
const PROPERTYID_URL
LINK OR EMAIL!
getPropertyvalues()
Get Property Values.
+ Here is the call graph for this function:

◆ cloneProperties()

ilDataCollectionField::cloneProperties ( ilDataCollectionField  $originalField)
Parameters
ilDataCollectionField$originalField

Definition at line 1005 of file class.ilDataCollectionField.php.

References $id, getDatatypeId(), getId(), getProperties(), ilDataCollectionDatatype\INPUTFORMAT_REFERENCE, and PROPERTYID_REFERENCE.

Referenced by cloneStructure().

1005  {
1006  $orgProps = $originalField->getProperties();
1007  if ($orgProps == NULL) {
1008  return;
1009  }
1010  foreach ($orgProps as $id => $value) {
1011  $fieldprop_obj = new ilDataCollectionFieldProp();
1012  $fieldprop_obj->setDatatypePropertyId($id);
1013  $fieldprop_obj->setFieldId($this->getId());
1014  // If reference field, we must reset the referenced field, otherwise it will point to the old ID
1017  ) {
1018  $value = NULL;
1019  }
1020  $fieldprop_obj->setValue($value);
1021  $fieldprop_obj->doCreate();
1022  }
1023  }
Class ilDataCollectionFieldProp.
getProperties()
Get all properties of a field.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ cloneStructure()

ilDataCollectionField::cloneStructure (   $original_id)
Parameters
$original_id
Exceptions
ilException

Definition at line 984 of file class.ilDataCollectionField.php.

References cloneProperties(), doCreate(), ilDataCollectionCache\getFieldCache(), setDatatypeId(), setDescription(), setEditable(), setExportable(), setFilterable(), setLocked(), setOrder(), setRequired(), setTitle(), setUnique(), and setVisible().

984  {
985  $original = ilDataCollectionCache::getFieldCache($original_id);
986  $this->setTitle($original->getTitle());
987  $this->setDatatypeId($original->getDatatypeId());
988  $this->setDescription($original->getDescription());
989  $this->setEditable($original->isEditable());
990  $this->setLocked($original->getLocked());
991  $this->setFilterable($original->isFilterable());
992  $this->setVisible($original->isVisible());
993  $this->setOrder($original->getOrder());
994  $this->setRequired($original->getRequired());
995  $this->setUnique($original->isUnique());
996  $this->setExportable($original->getExportable());
997  $this->doCreate();
998  $this->cloneProperties($original);
999  }
setRequired($a_required)
Set Required.
setDatatypeId($a_id)
Set datatype id.
setFilterable($filterable)
setFilterable
setDescription($a_desc)
Set description.
cloneProperties(ilDataCollectionField $originalField)
+ Here is the call graph for this function:

◆ deleteViewDefinition()

ilDataCollectionField::deleteViewDefinition (   $view)
private

Definition at line 763 of file class.ilDataCollectionField.php.

References $ilDB, $query, getId(), and getTableId().

Referenced by doDelete().

763  {
764  global $ilDB;
765 
766  $query = "DELETE def FROM il_dcl_viewdefinition def INNER JOIN il_dcl_view ON il_dcl_view.type = " . $ilDB->quote($view, "integer")
767  . " AND il_dcl_view.table_id = " . $ilDB->quote($this->getTableId(), "integer") . " WHERE def.view_id = il_dcl_view.id AND def.field = "
768  . $ilDB->quote($this->getId(), "text");
769 
770  $ilDB->manipulate($query);
771  }
global $ilDB
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ doCreate()

ilDataCollectionField::doCreate ( )

Create new field.

Definition at line 605 of file class.ilDataCollectionField.php.

References $id, $ilDB, $query, ilDataCollectionTable\_tableExists(), getDatatypeId(), getDescription(), getId(), getLocked(), getRequired(), getTableId(), getTitle(), isUnique(), setId(), setLocked(), updateEditability(), updateExportability(), updateFilterability(), and updateVisibility().

Referenced by cloneStructure().

605  {
606  global $ilDB;
607  $this->getLocked() == NULL ? $this->setLocked(false) : true;
608 
610  throw new ilException("The field does not have a related table!");
611  }
612 
613  $id = $ilDB->nextId("il_dcl_field");
614  $this->setId($id);
615  $query = "INSERT INTO il_dcl_field (" . "id" . ", table_id" . ", datatype_id" . ", title" . ", description" . ", required" . ", is_unique"
616  . ", is_locked" . " ) VALUES (" . $ilDB->quote($this->getId(), "integer") . "," . $ilDB->quote($this->getTableId(), "integer") . ","
617  . $ilDB->quote($this->getDatatypeId(), "integer") . "," . $ilDB->quote($this->getTitle(), "text") . ","
618  . $ilDB->quote($this->getDescription(), "text") . "," . $ilDB->quote($this->getRequired(), "integer") . ","
619  . $ilDB->quote($this->isUnique(), "integer") . "," . $ilDB->quote($this->getLocked() ? 1 : 0, "integer") . ")";
620  $ilDB->manipulate($query);
621 
622  $this->updateVisibility();
623  $this->updateFilterability();
624  $this->updateEditability();
625  $this->updateExportability();
626  }
Base class for ILIAS Exception handling.
getRequired()
Get Required Required.
global $ilDB
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ doDelete()

ilDataCollectionField::doDelete ( )

Definition at line 777 of file class.ilDataCollectionField.php.

References $ilDB, $query, deleteViewDefinition(), and getId().

777  {
778  global $ilDB;
779 
780  // delete viewdefinitions.
781  $this->deleteViewDefinition(self::VIEW_VIEW);
782  $this->deleteViewDefinition(self::FILTER_VIEW);
783  $this->deleteViewDefinition(self::EDIT_VIEW);
784  $this->deleteViewDefinition(self::EXPORTABLE_VIEW);
785 
786  $query = "DELETE FROM il_dcl_field_prop WHERE field_id = " . $ilDB->quote($this->getId(), "text");
787  $ilDB->manipulate($query);
788 
789  $query = "DELETE FROM il_dcl_field WHERE id = " . $ilDB->quote($this->getId(), "text");
790  $ilDB->manipulate($query);
791  }
global $ilDB
+ Here is the call graph for this function:

◆ doRead()

ilDataCollectionField::doRead ( )

Read field.

Definition at line 568 of file class.ilDataCollectionField.php.

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

Referenced by __construct().

568  {
569  global $ilDB;
570 
571  //THEN 1 ELSE 0 END AS has_options FROM il_dcl_field f WHERE id = ".$ilDB->quote($this->getId(),"integer");
572  $query = "SELECT * FROM il_dcl_field WHERE id = " . $ilDB->quote($this->getId(), "integer");
573  $set = $ilDB->query($query);
574  $rec = $ilDB->fetchAssoc($set);
575 
576  $this->setTableId($rec["table_id"]);
577  $this->setTitle($rec["title"]);
578  $this->setDescription($rec["description"]);
579  $this->setDatatypeId($rec["datatype_id"]);
580  $this->setRequired($rec["required"]);
581  $this->setUnique($rec["is_unique"]);
582  $this->setLocked($rec["is_locked"]);
583  $this->loadProperties();
584  }
setRequired($a_required)
Set Required.
setDatatypeId($a_id)
Set datatype id.
loadProperties()
Get all properties of a field.
setDescription($a_desc)
Set description.
global $ilDB
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ doUpdate()

ilDataCollectionField::doUpdate ( )

Update field.

Definition at line 632 of file class.ilDataCollectionField.php.

References $ilDB, getDatatypeId(), getDescription(), getId(), getLocked(), getRequired(), getTableId(), getTitle(), isUnique(), updateEditability(), updateExportability(), updateFilterability(), updateProperties(), and updateVisibility().

632  {
633  global $ilDB;
634 
635  $ilDB->update("il_dcl_field", array(
636  "table_id" => array( "integer", $this->getTableId() ),
637  "datatype_id" => array( "text", $this->getDatatypeId() ),
638  "title" => array( "text", $this->getTitle() ),
639  "description" => array( "text", $this->getDescription() ),
640  "required" => array( "integer", $this->getRequired() ),
641  "is_unique" => array( "integer", $this->isUnique() ),
642  "is_locked" => array( "integer", $this->getLocked() ? 1 : 0 ),
643  ), array(
644  "id" => array( "integer", $this->getId() )
645  ));
646  $this->updateVisibility();
647  $this->updateFilterability();
648  $this->updateEditability();
649  $this->updateExportability();
650  $this->updateProperties();
651  }
updateProperties()
Update properties of this field in Database.
getRequired()
Get Required Required.
global $ilDB
+ Here is the call graph for this function:

◆ getDatatype()

ilDataCollectionField::getDatatype ( )

Definition at line 358 of file class.ilDataCollectionField.php.

References $datatype, and loadDatatype().

+ Here is the call graph for this function:

◆ getDatatypeId()

ilDataCollectionField::getDatatypeId ( )

◆ getDatatypeTitle()

ilDataCollectionField::getDatatypeTitle ( )

Definition at line 401 of file class.ilDataCollectionField.php.

References loadDatatype().

Referenced by ilDataCollectionFieldListTableGUI\fillRow().

401  {
402  $this->loadDatatype();
403 
404  return $this->datatype->getTitle();
405  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getDescription()

ilDataCollectionField::getDescription ( )

Get description.

Returns
string

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

References $description.

Referenced by doCreate(), doUpdate(), ilDataCollectionFieldListTableGUI\fillRow(), and ilDataCollectionDatatype\getInputField().

+ Here is the caller graph for this function:

◆ getExportable()

ilDataCollectionField::getExportable ( )

Definition at line 520 of file class.ilDataCollectionField.php.

References $exportable, and loadExportability().

Referenced by ilDataCollectionStandardField\cloneStructure(), ilDataCollectionFieldListTableGUI\fillRow(), and updateViewDefinition().

520  {
521  if (!isset($this->exportable)) {
522  $this->loadExportability();
523  }
524 
525  return $this->exportable;
526  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getFieldRef()

ilDataCollectionField::getFieldRef ( )

Definition at line 817 of file class.ilDataCollectionField.php.

References $id, and getPropertyvalues().

Referenced by ilDataCollectionDatatype\addFilterInputFieldToTable(), and ilDataCollectionFieldListTableGUI\fillRow().

817  {
818  $props = $this->getPropertyvalues();
819  $id = self::PROPERTYID_REFERENCE;
820 
821  return $props[$id];
822  }
getPropertyvalues()
Get Property Values.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getFieldReflist()

ilDataCollectionField::getFieldReflist ( )

Definition at line 828 of file class.ilDataCollectionField.php.

References $id, and getPropertyvalues().

828  {
829  $props = $this->getPropertyvalues();
830  $id = self::PROPERTYID_N_REFERENCE;
831 
832  return $props[$id];
833  }
getPropertyvalues()
Get Property Values.
+ Here is the call graph for this function:

◆ getFilterable()

ilDataCollectionField::getFilterable ( )
Returns
bool returns the same as isFilterable.

Definition at line 673 of file class.ilDataCollectionField.php.

References isFilterable().

673  {
674  return $this->isFilterable();
675  }
+ Here is the call graph for this function:

◆ getId()

◆ getLearningProgress()

ilDataCollectionField::getLearningProgress ( )
Returns
bool

Definition at line 390 of file class.ilDataCollectionField.php.

References getPropertyvalues().

390  {
391  $props = $this->getPropertyvalues();
392  $p = self::PROPERTYID_LEARNING_PROGRESS;
393 
394  return $props[$p];
395  }
getPropertyvalues()
Get Property Values.
+ Here is the call graph for this function:

◆ getLength()

ilDataCollectionField::getLength ( )

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

References getPropertyvalues().

Referenced by ilDataCollectionDatatype\getInputField().

368  {
369  $props = $this->getPropertyvalues();
370  $l = self::PROPERTYID_LENGTH;
371 
372  return $props[$l];
373  }
getPropertyvalues()
Get Property Values.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getLocked()

ilDataCollectionField::getLocked ( )
Returns
boolean

Definition at line 900 of file class.ilDataCollectionField.php.

References $locked.

Referenced by doCreate(), doUpdate(), and ilDataCollectionFieldListTableGUI\fillRow().

900  {
901  return $this->locked;
902  }
+ Here is the caller graph for this function:

◆ getOrder()

ilDataCollectionField::getOrder ( )

Definition at line 797 of file class.ilDataCollectionField.php.

References $order, and loadVisibility().

Referenced by ilDataCollectionStandardField\cloneStructure(), and updateViewDefinition().

797  {
798  if (!isset($this->order)) {
799  $this->loadVisibility();
800  }
801 
802  return !$this->order ? 0 : $this->order;
803  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getProperties()

ilDataCollectionField::getProperties ( )

Get all properties of a field.

Returns
array

Definition at line 875 of file class.ilDataCollectionField.php.

References $property, and loadProperties().

Referenced by ilDataCollectionILIASRefField\__construct(), ilDataCollectionFormulaField\__construct(), cloneProperties(), getTextArea(), and ilDataCollectionDatatype\passThroughFilter().

875  {
876  if ($this->property == NULL) {
877  $this->loadProperties();
878  }
879 
880  return $this->property;
881  }
loadProperties()
Get all properties of a field.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getPropertyvalues()

ilDataCollectionField::getPropertyvalues ( )

Get Property Values.

Parameters
int$a_id
Returns
array

Definition at line 318 of file class.ilDataCollectionField.php.

References $property, and loadProperties().

Referenced by checkValidity(), getFieldRef(), getFieldReflist(), getLearningProgress(), getLength(), and isNRef().

318  {
319  if ($this->property == NULL) {
320  $this->loadProperties();
321  }
322 
323  return $this->property;
324  }
loadProperties()
Get all properties of a field.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getRequired()

ilDataCollectionField::getRequired ( )

Get Required Required.

Returns
boolean

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

References $required.

Referenced by ilDataCollectionStandardField\cloneStructure(), doCreate(), doUpdate(), and ilDataCollectionFieldListTableGUI\fillRow().

+ Here is the caller graph for this function:

◆ getStorageLocation()

ilDataCollectionField::getStorageLocation ( )

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

References loadDatatype().

411  {
412  $this->loadDatatype();
413 
414  return $this->datatype->getStorageLocation();
415  }
+ Here is the call graph for this function:

◆ getTableId()

ilDataCollectionField::getTableId ( )

Get table id.

Returns
int

Definition at line 189 of file class.ilDataCollectionField.php.

References $table_id.

Referenced by checkValidity(), deleteViewDefinition(), doCreate(), doUpdate(), and updateViewDefinition().

+ Here is the caller graph for this function:

◆ getTextArea()

ilDataCollectionField::getTextArea ( )
Returns
bool

Definition at line 379 of file class.ilDataCollectionField.php.

References $t, and getProperties().

Referenced by ilDataCollectionDatatype\getInputField().

379  {
380  $props = $this->getProperties();
381  $t = self::PROPERTYID_TEXTAREA;
382 
383  return $props[$t];
384  }
getProperties()
Get all properties of a field.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getTitle()

ilDataCollectionField::getTitle ( )

Get title.

Returns
string

Definition at line 213 of file class.ilDataCollectionField.php.

References $title.

Referenced by ilDataCollectionDatatype\addFilterInputFieldToTable(), doCreate(), doUpdate(), ilDataCollectionFieldListTableGUI\fillRow(), and ilDataCollectionDatatype\getInputField().

213  {
214  return $this->title;
215  }
+ Here is the caller graph for this function:

◆ isEditable()

ilDataCollectionField::isEditable ( )

isEditable

Returns
int

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

References $editable, and loadEditability().

Referenced by ilDataCollectionStandardField\cloneStructure(), and updateViewDefinition().

503  {
504  if (!isset($this->editable)) {
505  $this->loadEditability();
506  }
507 
508  return $this->editable;
509  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isFilterable()

ilDataCollectionField::isFilterable ( )
Returns
bool

Definition at line 447 of file class.ilDataCollectionField.php.

References $filterable, and loadFilterability().

Referenced by ilDataCollectionStandardField\cloneStructure(), ilDataCollectionFieldListTableGUI\fillRow(), getFilterable(), and updateViewDefinition().

447  {
448  if (!isset($this->filterable)) {
449  $this->loadFilterability();
450  }
451 
452  return $this->filterable;
453  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isNRef()

ilDataCollectionField::isNRef ( )
Returns
bool returns true iff this is a reference field AND the reference field has multiple input possibilities.

Definition at line 839 of file class.ilDataCollectionField.php.

References $id, and getPropertyvalues().

Referenced by ilDataCollectionDatatype\getInputField().

839  {
840  $props = $this->getPropertyvalues();
841  $id = self::PROPERTYID_N_REFERENCE;
842 
843  return $props[$id];
844  }
getPropertyvalues()
Get Property Values.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isStandardField()

ilDataCollectionField::isStandardField ( )

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

Referenced by ilDataCollectionFieldListTableGUI\fillRow(), and getDatatypeId().

560  {
561  return false;
562  }
+ Here is the caller graph for this function:

◆ isUnique()

ilDataCollectionField::isUnique ( )

Definition at line 298 of file class.ilDataCollectionField.php.

References $unique.

Referenced by checkValidity(), doCreate(), doUpdate(), and ilDataCollectionFieldListTableGUI\fillRow().

298  {
299  return $this->unique;
300  }
+ Here is the caller graph for this function:

◆ isVisible()

ilDataCollectionField::isVisible ( )
Returns
bool

Definition at line 428 of file class.ilDataCollectionField.php.

References $visible, and loadVisibility().

Referenced by ilDataCollectionStandardField\cloneStructure(), ilDataCollectionFieldListTableGUI\fillRow(), and updateViewDefinition().

428  {
429  if (!isset($this->visible)) {
430  $this->loadVisibility();
431  }
432 
433  return $this->visible;
434  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ loadDatatype()

ilDataCollectionField::loadDatatype ( )
protected

Definition at line 418 of file class.ilDataCollectionField.php.

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

418  {
419  if ($this->datatype == NULL) {
420  $this->datatype = new ilDataCollectionDatatype($this->datatypeId);
421  }
422  }
Class ilDataCollectionDatatype.
+ Here is the caller graph for this function:

◆ loadEditability()

ilDataCollectionField::loadEditability ( )
private

Definition at line 532 of file class.ilDataCollectionField.php.

References loadViewDefinition().

Referenced by isEditable().

532  {
533  if ($this->editable == NULL) {
534  $this->loadViewDefinition(self::EDIT_VIEW);
535  }
536  }
loadViewDefinition($view)
loadViewDefinition
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ loadExportability()

ilDataCollectionField::loadExportability ( )
private

Definition at line 542 of file class.ilDataCollectionField.php.

References loadViewDefinition().

Referenced by getExportable().

542  {
543  if ($this->exportable == NULL) {
544  $this->loadViewDefinition(self::EXPORTABLE_VIEW);
545  }
546  }
loadViewDefinition($view)
loadViewDefinition
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ loadFilterability()

ilDataCollectionField::loadFilterability ( )
protected

Definition at line 456 of file class.ilDataCollectionField.php.

References loadViewDefinition().

Referenced by isFilterable().

456  {
457  if ($this->filterable == NULL) {
458  $this->loadViewDefinition(self::FILTER_VIEW);
459  }
460  }
loadViewDefinition($view)
loadViewDefinition
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ loadProperties()

ilDataCollectionField::loadProperties ( )
private

Get all properties of a field.

Returns
array

Definition at line 852 of file class.ilDataCollectionField.php.

References $ilDB, $query, getId(), and setPropertyvalue().

Referenced by doRead(), getProperties(), and getPropertyvalues().

852  {
853  global $ilDB;
854 
855  $query = "SELECT datatype_prop_id,
856  title,
857  value
858  FROM il_dcl_field_prop fp
859  LEFT JOIN il_dcl_datatype_prop AS p ON p.id = fp.datatype_prop_id
860  WHERE fp.field_id = " . $ilDB->quote($this->getId(), "integer");
861 
862  $set = $ilDB->query($query);
863 
864  while ($rec = $ilDB->fetchAssoc($set)) {
865  $this->setPropertyvalue($rec['value'], $rec['datatype_prop_id']);
866  }
867  }
setPropertyvalue($a_value, $a_id)
Set Property Value.
global $ilDB
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ loadViewDefinition()

ilDataCollectionField::loadViewDefinition (   $view)
protected

loadViewDefinition

Parameters
$viewint use VIEW_VIEW or EDIT_VIEW

Definition at line 468 of file class.ilDataCollectionField.php.

References $ilDB, and $query.

Referenced by loadEditability(), loadExportability(), loadFilterability(), and loadVisibility().

468  {
469  global $ilDB;
470  $query = " SELECT view.table_id, def.field_order, def.is_set FROM il_dcl_viewdefinition def
471  INNER JOIN il_dcl_view view ON view.id = def.view_id AND view.type = " . $ilDB->quote($view, "integer") . "
472  WHERE def.field LIKE '" . $this->id . "' AND view.table_id = " . $ilDB->quote($this->table_id, "integer");
473  $set = $ilDB->query($query);
474  $rec = $ilDB->fetchAssoc($set);
475  $prop = $rec['is_set'];
476 
477  switch ($view) {
478  case self::VIEW_VIEW:
479  $this->visible = $prop;
480  break;
481  case self::EDIT_VIEW:
482  $this->editable = $prop;
483  break;
484  case self::FILTER_VIEW:
485  $this->filterable = $prop;
486  break;
487  case self::EXPORTABLE_VIEW:
488  $this->exportable = $prop;
489  break;
490  }
491 
492  if (!$this->order) {
493  $this->order = $rec['field_order'];
494  }
495  }
global $ilDB
+ Here is the caller graph for this function:

◆ loadVisibility()

ilDataCollectionField::loadVisibility ( )
protected

Definition at line 437 of file class.ilDataCollectionField.php.

References loadViewDefinition().

Referenced by getOrder(), and isVisible().

437  {
438  if ($this->visible == NULL) {
439  $this->loadViewDefinition(self::VIEW_VIEW);
440  }
441  }
loadViewDefinition($view)
loadViewDefinition
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setDatatypeId()

ilDataCollectionField::setDatatypeId (   $a_id)

Set datatype id.

Parameters
int$a_id

Definition at line 243 of file class.ilDataCollectionField.php.

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

243  {
244  //unset the cached datatype.
245  $this->datatype = NULL;
246  $this->datatypeId = $a_id;
247  }
+ Here is the caller graph for this function:

◆ setDescription()

ilDataCollectionField::setDescription (   $a_desc)

Set description.

Parameters
string$a_desc

Definition at line 223 of file class.ilDataCollectionField.php.

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

223  {
224  $this->description = $a_desc;
225  }
+ Here is the caller graph for this function:

◆ setEditable()

ilDataCollectionField::setEditable (   $editable)

Definition at line 515 of file class.ilDataCollectionField.php.

References $editable.

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

515  {
516  $this->editable = $editable;
517  }
+ Here is the caller graph for this function:

◆ setExportable()

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

Definition at line 1029 of file class.ilDataCollectionField.php.

References $exportable.

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

1029  {
1030  $this->exportable = $exportable;
1031  }
+ Here is the caller graph for this function:

◆ setFilterable()

ilDataCollectionField::setFilterable (   $filterable)

setFilterable

Parameters
$filterablebool

Definition at line 346 of file class.ilDataCollectionField.php.

References $filterable, and setOrder().

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

346  {
347  if ($filterable == true && $this->order === NULL) {
348  $this->setOrder(0);
349  }
350 
351  $this->filterable = $filterable;
352  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setId()

ilDataCollectionField::setId (   $a_id)

Set field id.

Parameters
int$a_id

Definition at line 159 of file class.ilDataCollectionField.php.

Referenced by buildFromDBRecord(), and doCreate().

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

◆ setLocked()

ilDataCollectionField::setLocked (   $locked)
Parameters
boolean$locked

Definition at line 892 of file class.ilDataCollectionField.php.

References $locked.

Referenced by buildFromDBRecord(), ilDataCollectionStandardField\cloneStructure(), cloneStructure(), doCreate(), and doRead().

892  {
893  $this->locked = $locked;
894  }
+ Here is the caller graph for this function:

◆ setOrder()

ilDataCollectionField::setOrder (   $order)

Definition at line 809 of file class.ilDataCollectionField.php.

References $order.

Referenced by ilDataCollectionStandardField\cloneStructure(), cloneStructure(), setFilterable(), and setVisible().

809  {
810  $this->order = $order;
811  }
+ Here is the caller graph for this function:

◆ setProperties()

ilDataCollectionField::setProperties (   $data)

Definition at line 884 of file class.ilDataCollectionField.php.

References $data.

884  {
885  $this->property = $data;
886  }

◆ setPropertyvalue()

ilDataCollectionField::setPropertyvalue (   $a_value,
  $a_id 
)

Set Property Value.

Parameters
string$a_value
int$a_id

Definition at line 290 of file class.ilDataCollectionField.php.

Referenced by loadProperties().

290  {
291  $this->property[$a_id] = $a_value;
292  }
+ Here is the caller graph for this function:

◆ setRequired()

ilDataCollectionField::setRequired (   $a_required)

Set Required.

Parameters
boolean$a_requiredRequired

Definition at line 269 of file class.ilDataCollectionField.php.

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

269  {
270  $this->required = $a_required;
271  }
+ Here is the caller graph for this function:

◆ setTableId()

ilDataCollectionField::setTableId (   $a_id)

Set table id.

Parameters
int$a_id

Definition at line 179 of file class.ilDataCollectionField.php.

Referenced by buildFromDBRecord(), and doRead().

179  {
180  $this->table_id = $a_id;
181  }
+ Here is the caller graph for this function:

◆ setTitle()

ilDataCollectionField::setTitle (   $a_title)

Set title.

Parameters
string$a_title

Definition at line 199 of file class.ilDataCollectionField.php.

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

199  {
200  //title cannot begin with _ as this is saved for other purposes. make __ instead.
201  if (substr($a_title, 0, 1) == "_" && substr($a_title, 0, 2) != "__") {
202  $a_title = "_" . $a_title;
203  }
204  $this->title = $a_title;
205  }
+ Here is the caller graph for this function:

◆ setUnique()

ilDataCollectionField::setUnique (   $unique)

Definition at line 306 of file class.ilDataCollectionField.php.

References $unique.

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

306  {
307  $this->unique = $unique ? 1 : 0;
308  }
+ Here is the caller graph for this function:

◆ setVisible()

ilDataCollectionField::setVisible (   $visible)

setVisible

Parameters
$visiblebool

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

References $visible, and setOrder().

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

332  {
333  if ($visible == true && $this->order === NULL) {
334  $this->setOrder(0);
335  }
336 
337  $this->visible = $visible;
338  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ toArray()

ilDataCollectionField::toArray ( )

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

552  {
553  return (array)$this;
554  }

◆ updateEditability()

ilDataCollectionField::updateEditability ( )
protected

Definition at line 694 of file class.ilDataCollectionField.php.

References updateViewDefinition().

Referenced by doCreate(), and doUpdate().

694  {
695  $this->updateViewDefinition(self::EDIT_VIEW);
696  }
updateViewDefinition($view)
updateViewDefinition
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateExportability()

ilDataCollectionField::updateExportability ( )
protected

Definition at line 699 of file class.ilDataCollectionField.php.

References updateViewDefinition().

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

699  {
700  $this->updateViewDefinition(self::EXPORTABLE_VIEW);
701  }
updateViewDefinition($view)
updateViewDefinition
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateFilterability()

ilDataCollectionField::updateFilterability ( )
protected

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

References updateViewDefinition().

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

689  {
690  $this->updateViewDefinition(self::FILTER_VIEW);
691  }
updateViewDefinition($view)
updateViewDefinition
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateProperties()

ilDataCollectionField::updateProperties ( )
protected

Update properties of this field in Database.

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

References $ilDB, and getId().

Referenced by doUpdate().

657  {
658  global $ilDB;
659  foreach ($this->property as $key => $value) {
660  $ilDB->update('il_dcl_field_prop', array(
661  'value' => array( 'integer', $value ),
662  ), array(
663  'field_id' => array( 'integer', $this->getId() ),
664  'datatype_prop_id' => array( 'integer', $key ),
665  ));
666  }
667  }
global $ilDB
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateViewDefinition()

ilDataCollectionField::updateViewDefinition (   $view)
private

updateViewDefinition

Parameters
$viewint use constant VIEW_VIEW or EDIT_VIEW

Definition at line 709 of file class.ilDataCollectionField.php.

References $ilDB, $query, getExportable(), getId(), getOrder(), getTableId(), isEditable(), isFilterable(), and isVisible().

Referenced by updateEditability(), updateExportability(), updateFilterability(), and updateVisibility().

709  {
710  global $ilDB;
711 
712  switch ($view) {
713  case self::EDIT_VIEW:
714  $set = $this->isEditable();
715  break;
716  case self::VIEW_VIEW:
717  $set = $this->isVisible();
718  if ($set && $this->order === NULL) {
719  $this->order = 0;
720  }
721  break;
722  case self::FILTER_VIEW:
723  $set = $this->isFilterable();
724  if ($set && $this->order === NULL) {
725  $this->order = 0;
726  }
727  break;
728  case self::EXPORTABLE_VIEW:
729  $set = $this->getExportable();
730  if ($set && $this->order === NULL) {
731  $this->order = 0;
732  }
733  break;
734  }
735 
736  if (!$set) {
737  $set = 0;
738  } else {
739  $set = 1;
740  }
741 
742  if (!isset($this->order)) {
743  $this->order = 0;
744  }
745 
746  $query = "DELETE def FROM il_dcl_viewdefinition def INNER JOIN il_dcl_view ON il_dcl_view.type = " . $ilDB->quote($view, "integer")
747  . " AND il_dcl_view.table_id = " . $ilDB->quote($this->getTableId(), "integer") . " WHERE def.view_id = il_dcl_view.id AND def.field = "
748  . $ilDB->quote($this->getId(), "text");
749 
750  $ilDB->manipulate($query);
751 
752  $query = "INSERT INTO il_dcl_viewdefinition (view_id, field, field_order, is_set) SELECT id, " . $ilDB->quote($this->getId(), "text") . ", "
753  . $ilDB->quote($this->getOrder(), "integer") . ", " . $ilDB->quote($set, "integer") . " FROM il_dcl_view WHERE il_dcl_view.type = "
754  . $ilDB->quote($view, "integer") . " AND il_dcl_view.table_id = " . $ilDB->quote($this->getTableId(), "integer");
755 
756  $ilDB->manipulate($query);
757  }
global $ilDB
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateVisibility()

ilDataCollectionField::updateVisibility ( )
protected

Definition at line 681 of file class.ilDataCollectionField.php.

References updateViewDefinition().

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

681  {
682  $this->updateViewDefinition(self::VIEW_VIEW);
683  }
updateViewDefinition($view)
updateViewDefinition
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $datatype

ilDataCollectionField::$datatype
protected

◆ $datatypeId

ilDataCollectionField::$datatypeId
protected

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

Referenced by getDatatypeId().

◆ $description

ilDataCollectionField::$description
protected

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

Referenced by getDescription().

◆ $editable

ilDataCollectionField::$editable
protected

Definition at line 61 of file class.ilDataCollectionField.php.

Referenced by isEditable(), and setEditable().

◆ $exportable

ilDataCollectionField::$exportable
protected

Definition at line 77 of file class.ilDataCollectionField.php.

Referenced by getExportable(), and setExportable().

◆ $filterable

ilDataCollectionField::$filterable
protected

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

Referenced by isFilterable(), and setFilterable().

◆ $id

◆ $locked

ilDataCollectionField::$locked
protected

Definition at line 69 of file class.ilDataCollectionField.php.

Referenced by getLocked(), and setLocked().

◆ $order

ilDataCollectionField::$order
protected

Definition at line 49 of file class.ilDataCollectionField.php.

Referenced by getOrder(), and setOrder().

◆ $property

ilDataCollectionField::$property = array()
protected

Definition at line 73 of file class.ilDataCollectionField.php.

Referenced by getProperties(), and getPropertyvalues().

◆ $required

ilDataCollectionField::$required
protected

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

Referenced by getRequired().

◆ $table_id

ilDataCollectionField::$table_id
protected

◆ $title

ilDataCollectionField::$title
protected

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

Referenced by _getFieldIdByTitle(), and getTitle().

◆ $unique

ilDataCollectionField::$unique
protected

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

Referenced by isUnique(), and setUnique().

◆ $visible

ilDataCollectionField::$visible
protected

Definition at line 57 of file class.ilDataCollectionField.php.

Referenced by isVisible(), and setVisible().

◆ EDIT_VIEW

const ilDataCollectionField::EDIT_VIEW = 2

Definition at line 103 of file class.ilDataCollectionField.php.

Referenced by ilDataCollectionTable\doCreate().

◆ EXPORTABLE_VIEW

const ilDataCollectionField::EXPORTABLE_VIEW = 4

Definition at line 105 of file class.ilDataCollectionField.php.

Referenced by ilDataCollectionTable\doCreate().

◆ FILTER_VIEW

const ilDataCollectionField::FILTER_VIEW = 3

Definition at line 104 of file class.ilDataCollectionField.php.

Referenced by ilDataCollectionTable\doCreate().

◆ PROPERTYID_DISPLAY_COPY_LINK_ACTION_MENU

const ilDataCollectionField::PROPERTYID_DISPLAY_COPY_LINK_ACTION_MENU = 13

◆ PROPERTYID_FORMULA_EXPRESSION

const ilDataCollectionField::PROPERTYID_FORMULA_EXPRESSION = 12

◆ PROPERTYID_HEIGHT

const ilDataCollectionField::PROPERTYID_HEIGHT = 8

◆ PROPERTYID_ILIAS_REFERENCE_LINK

const ilDataCollectionField::PROPERTYID_ILIAS_REFERENCE_LINK = 10

◆ PROPERTYID_LEARNING_PROGRESS

const ilDataCollectionField::PROPERTYID_LEARNING_PROGRESS = 9

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

◆ PROPERTYID_LENGTH

const ilDataCollectionField::PROPERTYID_LENGTH = 1

◆ PROPERTYID_LINK_DETAIL_PAGE_MOB

const ilDataCollectionField::PROPERTYID_LINK_DETAIL_PAGE_MOB = 15

Definition at line 99 of file class.ilDataCollectionField.php.

Referenced by ilDataCollectionDatatype\parseHTML().

◆ PROPERTYID_LINK_DETAIL_PAGE_TEXT

const ilDataCollectionField::PROPERTYID_LINK_DETAIL_PAGE_TEXT = 14

Definition at line 98 of file class.ilDataCollectionField.php.

Referenced by ilDataCollectionDatatype\parseHTML().

◆ PROPERTYID_N_REFERENCE

◆ PROPERTYID_REFERENCE

const ilDataCollectionField::PROPERTYID_REFERENCE = 3

◆ PROPERTYID_REFERENCE_LINK

const ilDataCollectionField::PROPERTYID_REFERENCE_LINK = 6

◆ PROPERTYID_REGEX

const ilDataCollectionField::PROPERTYID_REGEX = 2

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

Referenced by checkValidity().

◆ PROPERTYID_SUPPORTED_FILE_TYPES

const ilDataCollectionField::PROPERTYID_SUPPORTED_FILE_TYPES = 16

Definition at line 100 of file class.ilDataCollectionField.php.

◆ PROPERTYID_TEXTAREA

const ilDataCollectionField::PROPERTYID_TEXTAREA = 5

◆ PROPERTYID_URL

const ilDataCollectionField::PROPERTYID_URL = 4

◆ PROPERTYID_WIDTH

const ilDataCollectionField::PROPERTYID_WIDTH = 7

◆ VIEW_VIEW

const ilDataCollectionField::VIEW_VIEW = 1

Definition at line 102 of file class.ilDataCollectionField.php.

Referenced by ilDataCollectionTable\doCreate().


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