2 require_once(
'class.ilDataCollectionReferenceField.php');
3 require_once(
'class.ilDataCollectionRatingField.php');
4 require_once(
'class.ilDataCollectionILIASRefField.php');
5 require_once(
'./Modules/DataCollection/classes/Field/Formula/class.ilDataCollectionFormulaField.php');
6 require_once(
'class.ilDataCollectionNReferenceField.php');
91 $fid = $field->getId();
92 $rid = $record->getId();
93 if (!isset(self::$record_field_cache[$rid])) {
94 self::$record_field_cache[$rid] = array();
96 } elseif (!isset(self::$record_field_cache[$rid][$fid])) {
100 return self::$record_field_cache[$rid][$fid];
113 switch ($field->getDatatypeId()) {
119 if (!$field->isNRef()) {
143 $field->setId($rec[
"id"]);
144 $field->setTableId($rec[
"table_id"]);
145 $field->setTitle($rec[
"title"]);
146 $field->setDescription($rec[
"description"]);
147 $field->setDatatypeId($rec[
"datatype_id"]);
148 $field->setRequired($rec[
"required"]);
149 $field->setUnique($rec[
"is_unique"]);
150 $field->setLocked($rec[
"is_locked"]);