4 require_once(
"Services/Table/classes/class.ilTable2GUI.php");
5 require_once(
"Services/Preview/classes/class.ilPreviewRenderer.php");
6 require_once(
"Services/Preview/classes/class.ilFilePreviewRenderer.php");
31 parent::__construct($a_parent_obj, $a_parent_cmd);
34 $this->
setRowTemplate(
"tpl.renderer_row.html",
"Services/Preview");
57 $ilAccess = $DIC[
'ilAccess'];
59 $name = $renderer->getName();
60 $type =
$lng->txt(
"renderer_type_" . ($renderer->isPlugin() ?
"plugin" :
"builtin"));
62 $repo_types =
array();
63 foreach ($renderer->getSupportedRepositoryTypes() as $repo_type) {
64 $repo_types[] =
$lng->txt($repo_type);
70 $file_types = implode(
", ", $renderer->getSupportedFileFormats());
74 $this->tpl->setVariable(
"TXT_NAME",
$name);
75 $this->tpl->setVariable(
"TXT_TYPE",
$type);
76 $this->tpl->setVariable(
"TXT_REPO_TYPES", implode(
", ", $repo_types));
77 $this->tpl->setVariable(
"TXT_FILE_TYPES", $file_types);
setExternalSorting($a_val)
Set external sorting.
Abstract parent class for all file preview renderer classes.
Displays an overview of all loaded preview renderers.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
__construct($a_parent_obj, $a_parent_cmd)
Creates a new ilRendererTableGUI instance.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
Create styles array
The data for the language used.
disable($a_module_name)
diesables particular modules of table
addColumn( $a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.
setEnableHeader($a_enableheader)
Set Enable Header.
setEnableTitle($a_enabletitle)
Set Enable Title.
fillRow($renderer)
Standard Version of Fill Row.
setLimit($a_limit=0, $a_default_limit=0)