19 declare(strict_types=1);
23 public function getHTML(
bool $link =
true, array $options = []): string
28 if (!$value || $value ==
"-") {
32 if (!is_array($value)) {
38 foreach ($value as $k => $v) {
43 $value = array_values($value);
50 $ref_table = $ref_record->getTable();
51 $ref_id = $this->
http->wrapper()->query()->retrieve(
'ref_id', $this->
refinery->kindlyTo()->int());
52 if ($v !==
null && $v !==
'' && $v !==
'-') {
53 $view = $ref_record->getTable()->getFirstTableViewId(
$ref_id, $this->
user->getId(),
true);
63 return implode(
'<br>', $items);
68 $this->
ctrl->setParameterByClass(ilDclDetailedViewGUI::class,
"table_id", $record->
getTableId());
69 $this->
ctrl->setParameterByClass(ilDclDetailedViewGUI::class,
"record_id", $record->
getId());
70 $this->
ctrl->setParameterByClass(ilDclDetailedViewGUI::class,
"tableview_id", $view);
71 $html = $this->
factory->link()->standard(
73 $this->
ctrl->getLinkTargetByClass(
74 ilDclDetailedViewGUI::class,
79 return $this->
renderer->render($html);
88 if (!$value || $value == []) {
getRecordFieldHTML($field_id, array $options=[])
const PROP_REFERENCE_LINK
setValue($value, bool $omit_parsing=false)
Set value for record field.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
parseFormInput($value)
function parses stored value to the variable needed to fill into the form for editing.
static http()
Fetches the global http state from ILIAS.
doUpdate()
Update object in database.
static getRecordCache(?int $record_id)
getRecordField()
Get Record Field.
getLinkHTML(ilDclBaseRecordModel $record, int $view)
ilDclBaseRecordFieldModel $record_field
getHTML(bool $link=true, array $options=[])