35 $this->
ctrl = $DIC->ctrl();
36 $this->
lng = $DIC->language();
37 $this->
access = $DIC->access();
38 $ilCtrl = $DIC->ctrl();
39 $lng = $DIC->language();
43 $this->upload_dir = $mob_import_directory->getAbsolutePath();
56 $this->
setRowTemplate(
"tpl.upload_dir_files_row.html",
"Modules/MediaPool");
67 public function getFiles(array $a_files): array
70 foreach ($a_files as
$f) {
71 if (is_file($this->upload_dir .
"/" . $f)) {
72 $files[] = [
"file" =>
$f];
73 } elseif (is_dir($this->upload_dir .
"/" . $f)) {
75 foreach ($dir as
$d) {
76 if ($d[
"type"] ===
"file") {
77 $files[] = [
"file" => $f . $d[
"subdir"] .
"/" . $d[
"entry"]];
85 protected function fillRow(array $a_set): void
87 $this->tpl->setVariable(
"TXT_FILE", $a_set[
"file"]);
88 $this->tpl->setVariable(
"VAL_FILE", $a_set[
"file"]);
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
setFormAction(string $a_form_action, bool $a_multipart=false)
setEnableTitle(bool $a_enabletitle)
setSelectAllCheckbox(string $a_select_all_checkbox, bool $a_select_all_on_top=false)
__construct(object $a_parent_obj, string $a_parent_cmd, array $a_files)
getFiles(array $a_files)
Get files.
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getDir(string $a_dir, bool $a_rec=false, ?string $a_sub_dir="")
get directory
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
__construct(Container $dic, ilPlugin $plugin)
setLimit(int $a_limit=0, int $a_default_limit=0)
addColumn(string $a_text, string $a_sort_field="", string $a_width="", bool $a_is_checkbox_action_column=false, string $a_class="", string $a_tooltip="", bool $a_tooltip_with_html=false)
disable(string $a_module_name)
setOpenFormTag(bool $a_val)
addMultiCommand(string $a_cmd, string $a_text)
setEnableHeader(bool $a_enableheader)
for($i=6; $i< 13; $i++) for($i=1; $i< 13; $i++) $d