4 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
25 $this->upload_dir = trim($mset->get(
"upload_dir"));
28 parent::__construct($a_parent_obj, $a_parent_cmd);
30 $this->
setTitle($lng->txt(
"mep_upload_dir_files"));
34 $this->
addColumn($this->lng->txt(
"mep_file"));
39 $this->
setRowTemplate(
"tpl.upload_dir_files_row.html",
"Modules/MediaPool");
44 $this->
addMultiCommand(
"createMediaFromUploadDir", $lng->txt(
"mep_create_media_files"));
54 foreach ($a_files as $f)
56 if (is_file($this->upload_dir.
"/".$f))
60 else if (is_dir($this->upload_dir.
"/".$f))
65 if ($d[
"type"] ==
"file")
67 $files[] = $f.$d[
"subdir"].
"/".$d[
"entry"];
83 $this->tpl->setVariable(
"TXT_FILE", $a_set);
84 $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
for($col=0; $col< 50; $col++) $d
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
addMultiCommand($a_cmd, $a_text)
Add Command button.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
Create styles array
The data for the language used.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
disable($a_module_name)
diesables particular modules of table
setOpenFormTag($a_val)
Set open form tag.
setEnableHeader($a_enableheader)
Set Enable Header.
setSelectAllCheckbox($a_select_all_checkbox)
Set the name of the checkbox that should be toggled with a select all button.
setEnableTitle($a_enabletitle)
Set Enable Title.
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.
setLimit($a_limit=0, $a_default_limit=0)