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");
32 $this->
setRowTemplate(
"tpl.renderer_row.html",
"Services/Preview");
38 $this->
setTitle($lng->txt(
"loaded_preview_renderers"));
42 $this->
addColumn($lng->txt(
"renderer_supported_repo_types"));
43 $this->
addColumn($lng->txt(
"renderer_supported_file_types"));
54 $name = $renderer->getName();
55 $type = $lng->txt(
"renderer_type_" . ($renderer->isPlugin() ?
"plugin" :
"builtin"));
57 $repo_types = array();
58 foreach ($renderer->getSupportedRepositoryTypes() as $repo_type)
59 $repo_types[] = $lng->txt($repo_type);
65 $file_types = implode(
", ", $renderer->getSupportedFileFormats());
69 $this->tpl->setVariable(
"TXT_NAME", $name);
70 $this->tpl->setVariable(
"TXT_TYPE", $type);
71 $this->tpl->setVariable(
"TXT_REPO_TYPES", implode(
", ", $repo_types));
72 $this->tpl->setVariable(
"TXT_FILE_TYPES", $file_types);