4 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
25 public function __construct($a_parent_obj, $a_parent_cmd, $a_files)
29 $this->ctrl = $DIC->ctrl();
30 $this->lng = $DIC->language();
31 $this->access = $DIC->access();
33 $lng = $DIC->language();
34 $ilAccess = $DIC->access();
35 $lng = $DIC->language();
38 $this->upload_dir = trim($mset->get(
"upload_dir"));
41 parent::__construct($a_parent_obj, $a_parent_cmd);
47 $this->
addColumn($this->lng->txt(
"mep_file"));
52 $this->
setRowTemplate(
"tpl.upload_dir_files_row.html",
"Modules/MediaPool");
67 foreach ($a_files as
$f) {
68 if (is_file($this->upload_dir .
"/" . $f)) {
70 } elseif (is_dir($this->upload_dir .
"/" . $f)) {
72 foreach ($dir as
$d) {
73 if ($d[
"type"] ==
"file") {
74 $files[] = $f . $d[
"subdir"] .
"/" . $d[
"entry"];
90 $this->tpl->setVariable(
"TXT_FILE", $a_set);
91 $this->tpl->setVariable(
"VAL_FILE", $a_set);
fillRow($a_set)
Fill table row.
__construct($a_parent_obj, $a_parent_cmd, $a_files)
Constructor.
getFiles($a_files)
Get files.
static getDir($a_dir, $a_rec=false, $a_sub_dir="")
get directory
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
setSelectAllCheckbox($a_select_all_checkbox, $a_select_all_on_top=false)
Set the name of the checkbox that should be toggled with a select all button.
addMultiCommand($a_cmd, $a_text)
Add Command button.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
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.
setOpenFormTag($a_val)
Set open form tag.
setEnableHeader($a_enableheader)
Set Enable Header.
setEnableTitle($a_enabletitle)
Set Enable Title.
for($i=6; $i< 13; $i++) for($i=1; $i< 13; $i++) $d
setLimit($a_limit=0, $a_default_limit=0)