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>';
37 $this->ctrl->setParameterByClass(
"ildclrecordlistgui",
"record_id", $this->
getRecordField()->
getRecord()->getId());
38 $this->ctrl->setParameterByClass(
"ildclrecordlistgui",
"field_id", $this->
getRecordField()->
getField()->getId());
40 $html =
'<a href="' . $this->ctrl->getLinkTargetByClass(
"ildclrecordlistgui",
"sendFile") .
'">' . $file_obj->getFileName() .
'</a>';
45 $preview_status_class =
"";
46 $preview_text_topic =
"preview_show";
48 $preview_status_class =
"ilPreviewStatusNone";
49 $preview_text_topic =
"preview_none";
51 $wrapper_html_id =
'record_field_' . $this->
getRecordField()->getId();
52 $script_preview_click =
$preview->getJSCall($wrapper_html_id);
53 $preview_title = $this->lng->txt($preview_text_topic);
55 $html =
'<div id="' . $wrapper_html_id .
'">' .
$html;
56 $html .=
'<span class="il_ContainerItemPreview ' . $preview_status_class .
'"><a href="javascript:void(0);" onclick="' 57 . $script_preview_click .
'" title="' . $preview_title .
'"><img src="' . $preview_icon
58 .
'" height="16" width="16"></a></span></div>';
74 if (is_array($value)) {
85 return $file_obj->getFileName();
getRecord()
Getter shortcut for record.
getField()
Getter shortcut for field.
Class ilDclFileuploadRecordRepresentation.
static lookupRenderStatus($a_obj_id)
Gets the render status for the object with the specified id.
static hasPreview($a_obj_id, $a_type="")
Determines whether the object with the specified reference id has a preview.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
static createPreview($a_obj, $a_force=false)
Creates the preview for the object with the specified id.
Class ilDclBaseRecordRepresentation.
getRecordField()
Get Record Field.
static _lookupType($a_id, $a_reference=false)
static _exists($a_id, $a_reference=false, $a_type=null)
getHTML($link=true)
Outputs html of a certain field.
parseFormInput($value)
function parses stored value to the variable needed to fill into the form for editing.