4include_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();
34 $ilAccess =
$DIC->access();
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);
An exception for terminatinating execution or to throw for unit testing.
setEnableHeader($a_enableheader)
Set Enable Header.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
setData($a_data)
set table data @access public
setEnableTitle($a_enabletitle)
Set Enable Title.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setLimit($a_limit=0, $a_default_limit=0)
set max.
addMultiCommand($a_cmd, $a_text)
Add Command button.
setSelectAllCheckbox($a_select_all_checkbox)
Set the name of the checkbox that should be toggled with a select all button.
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.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
setOpenFormTag($a_val)
Set open form tag.
disable($a_module_name)
diesables particular modules of table
__construct($a_parent_obj, $a_parent_cmd, $a_files)
Constructor.
fillRow($a_set)
Fill table row.
getFiles($a_files)
Get files.
static getDir($a_dir, $a_rec=false, $a_sub_dir="")
get directory
for( $i=6;$i< 13;$i++) for($i=1; $i< 13; $i++) $d