5 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
30 public function __construct($a_parent_obj, $a_parent_cmd, $a_mob)
34 $this->ctrl = $DIC->ctrl();
35 $this->lng = $DIC->language();
36 $this->access = $DIC->access();
38 $lng = $DIC->language();
39 $ilAccess = $DIC->access();
40 $lng = $DIC->language();
42 parent::__construct($a_parent_obj, $a_parent_cmd);
48 $this->
addColumn($this->lng->txt(
"thumbnail"),
"",
"20px");
49 $this->
addColumn($this->lng->txt(
"filename"));
52 $this->
setRowTemplate(
"tpl.iim_overlays_row.html",
"Services/COPage");
65 $files = $this->mob->getFilesOfDirectory(
"overlays");
67 $ov[] = array(
"filename" => $f);
80 $this->tpl->setVariable(
"FILENAME", $a_set[
"filename"]);
81 $piname = pathinfo($a_set[
"filename"]);
84 basename($a_set[
"filename"],
"." . $piname[
'extension']) .
".png" 86 if (!is_file($th_path)) {
87 $this->mob->makeThumbnail(
88 "overlays/" . $a_set[
"filename"],
89 basename($a_set[
"filename"],
"." . $piname[
'extension']) .
".png" 92 if (is_file($th_path)) {
93 $this->tpl->setVariable(
"THUMB",
ilUtil::img($th_path));
getOverlays()
Get overlays.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
addMultiCommand($a_cmd, $a_text)
Add Command button.
fillRow($a_set)
Fill table row.
__construct($a_parent_obj, $a_parent_cmd, $a_mob)
Constructor.
static img($a_src, $a_alt=null, $a_width="", $a_height="", $a_border=0, $a_id="", $a_class="")
Build img tag.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
TableGUI class for interactive image overlays.
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.