4include_once(
'./Services/Table/classes/class.ilTable2GUI.php');
24 public function __construct($a_parent_obj, $a_parent_cmd, $formname =
'test_output')
31 parent::__construct($a_parent_obj, $a_parent_cmd);
36 $this->
addColumn($this->lng->txt(
'filename'),
'filename',
'70%');
37 $this->
addColumn($this->lng->txt(
'date'),
'date',
'29%');
43 $this->
setRowTemplate(
"tpl.il_as_qpl_fileupload_file_row.html",
"Modules/TestQuestionPool");
48 $this->
enable(
'select_all');
55 $this->
addCommandButton($this->parent_cmd, $this->lng->txt(
'delete'),
'',
'',
'ilc_qsubmit_Submit');
62 list(
$prefix, $activeId, $passIndex, $versioningUploadTS) = explode(
63 '_', pathinfo($storageFilename, PATHINFO_BASENAME)
65 return $versioningUploadTS;
80 $this->tpl->setVariable(
'VAL_ID', $a_set[
'solution_id']);
81 if (strlen($a_set[
'webpath']))
83 $this->tpl->setVariable(
'VAL_FILE',
'<a href="' . $a_set[
'webpath'] . $a_set[
'value1'] .
'" target=\"_blank\">' .
ilUtil::prepareFormOutput($a_set[
'value2']) .
'</a>');
fetchUploadTimestampFromStorageFilename($storageFilename)
__construct($a_parent_obj, $a_parent_cmd, $formname='test_output')
Constructor.
static setUseRelativeDates($a_status)
set use relative dates
static formatDate(ilDateTime $date)
Format a date @access public.
@classDescription Date and time handling
setDisplayAsBlock($a_val)
Set display as block.
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.
setPrefix($a_prefix)
set prefix for sort and offset fields (if you have two or more tables on a page that you want to sort...
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setFormName($a_formname)
Set Form name.
setSelectAllCheckbox($a_select_all_checkbox)
Set the name of the checkbox that should be toggled with a select all button.
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
disable($a_module_name)
diesables particular modules of table
setStyle($a_element, $a_style)
enable($a_module_name)
enables particular modules of table
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms @access public