2require_once(
'./Modules/DataCollection/classes/Fields/Base/class.ilDclBaseRecordRepresentation.php');
 
   23                if(is_array($value) && 
$_POST[
'ilfilehash']) {
 
   24                        $this->ctrl->setParameterByClass(
"ildclrecordlistgui", 
"ilfilehash", 
$_POST[
'ilfilehash']);
 
   25                        $this->ctrl->setParameterByClass(
"ildclrecordlistgui", 
"field_id", $this->
getRecordField()->
getField()->getId());
 
   26                        return '<a href="' . $this->ctrl->getLinkTargetByClass(
"ildclrecordlistgui", 
"sendFile") . 
'">' . $value[
'name'] . 
'</a>';
 
   32                $this->ctrl->setParameterByClass(
"ildclrecordlistgui", 
"record_id", $this->
getRecordField()->
getRecord()->getId());
 
   33                $this->ctrl->setParameterByClass(
"ildclrecordlistgui", 
"field_id", $this->
getRecordField()->
getField()->getId());
 
   35                $html = 
'<a href="' . $this->ctrl->getLinkTargetByClass(
"ildclrecordlistgui", 
"sendFile") . 
'">' . $file_obj->getFileName() . 
'</a>';
 
   40                        $preview_status_class = 
"";
 
   41                        $preview_text_topic = 
"preview_show";
 
   43                                $preview_status_class = 
"ilPreviewStatusNone";
 
   44                                $preview_text_topic = 
"preview_none";
 
   46                        $wrapper_html_id = 
'record_field_' . $this->
getRecordField()->getId();
 
   47                        $script_preview_click = 
$preview->getJSCall($wrapper_html_id);
 
   48                        $preview_title = $this->lng->txt($preview_text_topic);
 
   50                        $html = 
'<div id="' . $wrapper_html_id . 
'">' . 
$html;
 
   51                        $html .= 
'<span class="il_ContainerItemPreview ' . $preview_status_class . 
'"><a href="javascript:void(0);" onclick="' 
   52                                . $script_preview_click . 
'" title="' . $preview_title . 
'"><img src="' . $preview_icon
 
   53                                . 
'" height="16" width="16"></a></span></div>';
 
   69                if(is_array($value)) {
 
   79                return $file_obj->getFileName();
 
An exception for terminatinating execution or to throw for unit testing.
Class ilDclBaseRecordRepresentation.
getRecordField()
Get Record Field.
getField()
Getter shortcut for field.
getRecord()
Getter shortcut for record.
Class ilDclFileuploadRecordRepresentation.
parseFormInput($value)
function parses stored value to the variable needed to fill into the form for editing.
getHTML($link=true)
Outputs html of a certain field.
static _lookupType($a_id, $a_reference=false)
lookup object type
static _exists($a_id, $a_reference=false, $a_type=null)
checks if an object exists in object_data@access public
static hasPreview($a_obj_id, $a_type="")
Determines whether the object with the specified reference id has a preview.
static createPreview($a_obj, $a_force=false)
Creates the preview for the object with the specified id.
static lookupRenderStatus($a_obj_id)
Gets the render status for the object with the specified id.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)