24 if (is_array($value) &&
$_POST[
'ilfilehash']) {
25 $this->ctrl->setParameterByClass(
"ildclrecordlistgui",
"ilfilehash",
$_POST[
'ilfilehash']);
26 $this->ctrl->setParameterByClass(
"ildclrecordlistgui",
"field_id", $this->
getRecordField()->
getField()->getId());
28 return '<a href="' . $this->ctrl->getLinkTargetByClass(
"ildclrecordlistgui",
"sendFile") .
'">' . $value[
'name'] .
'</a>';
32 $med = $mob->getMediaItem(
'Standard');
34 if (!$med || $med->getLocation() == null) {
43 if (in_array($med->getSuffix(),
array(
'jpg',
'jpeg',
'png',
'gif'))) {
51 if ($is_linked_field && $has_view && $link) {
52 $this->ctrl->setParameterByClass(
'ilDclDetailedViewGUI',
'record_id', $this->
getRecordField()->
getRecord()->getId());
53 $html =
'<a href="' . $this->ctrl->getLinkTargetByClass(
"ilDclDetailedViewGUI",
'renderRecord') .
'">' .
$html .
'</a>';
59 $mpl->setMimeType($med->getFormat());
62 $mpl->setVideoPreviewPic($mob->getVideoPreviewPic());
63 $html = $mpl->getPreviewHtml();
65 if ($is_linked_field && $has_view) {
66 $this->ctrl->setParameterByClass(
'ilDclDetailedViewGUI',
'record_id', $this->
getRecordField()->
getRecord()->getId());
67 $html =
$html .
'<a href="' . $this->ctrl->getLinkTargetByClass(
"ilDclDetailedViewGUI",
'renderRecord') .
'">' . $this->lng->txt(
'details') .
'</a>';
83 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)
Create styles array
The data for the language used.
getRecordField()
Get Record Field.
static img($a_src, $a_alt="", $a_width="", $a_height="", $a_border=0, $a_id="", $a_class="")
Build img tag.
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.