5 require_once
'class.ilDataCollectionRecordField.php';
6 require_once
'class.ilDataCollectionRecord.php';
7 require_once
'class.ilDataCollectionField.php';
8 require_once
'class.ilDataCollectionRecordViewGUI.php';
9 require_once(
"./Services/Link/classes/class.ilLink.php");
41 $this->dcl_obj_id = $dclTable->getCollectionObject()->getId();
42 $this->properties = $this->field->getProperties();
51 $record_field = $this;
59 if (!$ref_record->getTableId() || !$record_field->getField() || !$record_field->getField()->getTableId()) {
61 $record_field->setValue(NULL);
62 $record_field->doUpdate();
68 $ref_table = $ref_record->getTableId();
70 $query =
"SELECT table_id FROM il_dcl_view WHERE table_id = " . $ref_table .
" AND type = " . $ilDB->quote(0,
"integer")
71 .
" AND formtype = " . $ilDB->quote(0,
"integer");
72 $set = $ilDB->query(
$query);
73 if ($ilDB->numRows($set)) {
76 $html = $ref_record->getRecordFieldHTML($record_field->getField()->getFieldRef());
79 $html = $ref_record->getRecordFieldHTML($record_field->getField()->getFieldRef());
99 $record_field = $this;
102 $link_name = $ref_record->getRecordFieldHTML($record_field->getField()->getFieldRef());
104 $ilCtrl->setParameterByClass(
"ildatacollectionrecordviewgui",
"record_id", $ref_record->getId());
105 $html =
"<a href='" . $ilCtrl->getLinkTargetByClass(
"ilDataCollectionRecordViewGUI",
"renderRecord") .
"&disable_paging=1'>" . $link_name
119 return $ref_rec->getRecordField($this->
getField()->getFieldRef())->getExportValue();