27 private \ILIAS\ResourceStorage\Services
$irss;
35 $ilCtrl = $DIC[
'ilCtrl'];
38 $this->
ctrl = $ilCtrl;
39 $this->irss = $DIC->resourceStorage();
46 $this->
addColumn($this->
lng->txt(
'filename'),
'filename',
'70%');
47 $this->
addColumn($this->
lng->txt(
'date'),
'date',
'29%');
52 $this->
setRowTemplate(
"tpl.il_as_qpl_fileupload_file_row.html",
"components/ILIAS/TestQuestionPool");
74 public function initCommand(
string $lang_var,
string $cmd,
string $post_var): void
77 $this->
enable(
'select_all');
83 $on_click =
"return (function(e){ e.name += '[{$cmd}]';})(this);";
88 public function fillRow(array $a_set): void
90 $this->tpl->setVariable(
'VAL_ID', $a_set[
'solution_id']);
94 $this->tpl->setVariable(
'VAL_POSTVAR', $this->
getPostVar());
103 $value = $a_set[
'value2'];
104 if($value ===
'rid') {
105 $rid = $this->irss->manage()->find($a_set[
'value1']);
109 $value = $this->irss->manage()->getCurrentRevision($rid)->getTitle();
112 if (!isset($a_set[
'webpath']) || !strlen($a_set[
'webpath'])) {
116 $link =
"<a href='{$a_set['webpath']}{$a_set['value1']}' download target='_blank'>";
initCommand(string $lang_var, string $cmd, string $post_var)
static array static setUseRelativeDates(bool $a_status)
set use relative dates
enable(string $a_module_name)
buildFileItemContent(array $a_set)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct($a_parent_obj, $a_parent_cmd, $formname='test_output')
addCommandButton(string $a_cmd, string $a_text, string $a_onclick='', string $a_id="", string $a_class="")
setSelectAllCheckbox(string $a_select_all_checkbox, bool $a_select_all_on_top=false)
setFormName(string $a_name="")
setPostVar(string $postVar)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
setStyle(string $a_element, string $a_style)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
ILIAS ResourceStorage Services $irss
__construct(Container $dic, ilPlugin $plugin)
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false, ?ilObjUser $user=null,)
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)
setDisplayAsBlock(bool $a_val)
setPrefix(string $a_prefix)