25 if (is_array($value) &&
$_POST[
'ilfilehash']) {
26 $this->ctrl->setParameterByClass(
"ildclrecordlistgui",
"ilfilehash",
$_POST[
'ilfilehash']);
27 $this->ctrl->setParameterByClass(
"ildclrecordlistgui",
"field_id", $this->
getRecordField()->
getField()->getId());
29 return '<a href="' . $this->ctrl->getLinkTargetByClass(
"ildclrecordlistgui",
"sendFile") .
'">' . $value[
'name'] .
'</a>';
33 $med = $mob->getMediaItem(
'Standard');
35 if (!$med || $med->getLocation() == null) {
44 if (in_array($med->getSuffix(), array(
'jpg',
'jpeg',
'png',
'gif'))) {
52 if ($is_linked_field && $has_view && $link) {
53 $this->ctrl->setParameterByClass(
'ilDclDetailedViewGUI',
'record_id', $this->
getRecordField()->
getRecord()->getId());
54 $html =
'<a href="' . $this->ctrl->getLinkTargetByClass(
"ilDclDetailedViewGUI",
'renderRecord') .
'">' .
$html .
'</a>';
60 $mpl->setMimeType($med->getFormat());
63 $mpl->setVideoPreviewPic($mob->getVideoPreviewPic());
64 $html = $mpl->getPreviewHtml();
66 if ($is_linked_field && $has_view) {
67 $this->ctrl->setParameterByClass(
'ilDclDetailedViewGUI',
'record_id', $this->
getRecordField()->
getRecord()->getId());
68 $html =
$html .
'<a href="' . $this->ctrl->getLinkTargetByClass(
"ilDclDetailedViewGUI",
'renderRecord') .
'">' . $this->lng->txt(
'details') .
'</a>';
85 if (is_array($value)) {
getRecord()
Getter shortcut for record.
getField()
Getter shortcut for field.
Class ilDclFileuploadRecordRepresentation.
getHTML($link=true)
Outputs html of a certain field.
Class ilDclMobRecordRepresentation.
const PROP_LINK_DETAIL_PAGE_TEXT
static signFile($path_to_file)
static img($a_src, $a_alt=null, $a_width="", $a_height="", $a_border=0, $a_id="", $a_class="")
Build img tag.
getRecordField()
Get Record Field.
static _lookupType($a_id, $a_reference=false)
static _exists($a_id, $a_reference=false, $a_type=null)
parseFormInput($value)
function parses stored value to the variable needed to fill into the form for editing.