19declare(strict_types=1);
29 if (is_null($value)) {
34 $item = $mob->getMediaItem(
'Standard');
35 $component = match (explode(
'/', (
string) $item?->getFormat())[0] ??
'') {
36 'image' => $this->
factory->image()->responsive($item->getLocationSrc(), $mob->getTitle()),
37 'video' => $this->
factory->player()->video($item->getLocationSrc()),
38 'audio' => $this->
factory->player()->audio($item->getLocationSrc()),
39 default => $this->
factory->image()->responsive(
'', $mob->getTitle()),
43 if ($this->
http->wrapper()->query()->has(
'tableview_id')) {
44 $tableview_id = $this->
http->wrapper()->query()->retrieve(
'tableview_id', $this->
refinery->kindlyTo()->int());
46 $tableview_id = $this->
getRecord()->getTable()->getFirstTableViewId($this->
user->getId());
49 if ($page->getPageObject()->isActive()) {
50 $this->
ctrl->setParameterByClass(ilDclDetailedViewGUI::class,
'record_id', $this->
getRecord()->
getId());
51 $link = $this->
ctrl->getLinkTargetByClass(ilDclDetailedViewGUI::class,
'renderRecord');
52 $this->
ctrl->clearParameterByClass(ilDclDetailedViewGUI::class,
'record_id');
53 if ($component instanceof
Image) {
54 $component = $component->withAction($link);
56 $component = [$component, $this->
factory->link()->standard($this->
lng->txt(
'details'), $link)];
61 return $this->
renderer->render($component);
66 if (is_array($value)) {
const PROP_LINK_DETAIL_PAGE_MOB
getRecordField()
Get Record Field.
getField()
Getter shortcut for field.
getRecord()
Getter shortcut for record.
@ilCtrl_Calls ilDclDetailedViewDefinitionGUI: ilPageEditorGUI, ilEditClipboardGUI,...
@noinspection AutoloadingIssuesInspection
getHTML(bool $link=true, array $options=[])
Outputs html of a certain field.
parseFormInput($value)
function parses stored value to the variable needed to fill into the form for editing.
static _lookupType(int $id, bool $reference=false)
static _exists(int $id, bool $reference=false, ?string $type=null)
checks if an object exists in object_data
static http()
Fetches the global http state from ILIAS.