19 declare(strict_types=1);
29 $this->
setId(
'frm_drafts_' . substr(md5($a_parent_cmd), 0, 3) .
'_' . $a_parent_obj->
getObject()->getId());
33 $this->
setFormAction($this->
ctrl->getFormAction($this->getParentObject(),
'showThreads'));
34 $this->
setRowTemplate(
'tpl.forums_threads_drafts_table.html',
'Modules/Forum');
41 $this->
addColumn(
'',
'check',
'1px',
true);
49 protected function fillRow(array $a_set): void
53 $selected_draft_ids = [];
54 if ($DIC->http()->wrapper()->post()->has(
'draft_ids')) {
55 $selected_draft_ids = $DIC->http()->wrapper()->post()->retrieve(
57 $DIC->refinery()->kindlyTo()->listOf($DIC->refinery()->kindlyTo()->int())
61 $this->tpl->setVariable(
64 in_array($a_set[
'draft_id'], $selected_draft_ids,
true),
66 (
string) $a_set[
'draft_id']
74 $this->tpl->setVariable(
'VAL_EDIT_URL',
$url);
75 $this->tpl->setVariable(
'VAL_LINKED_SUBJECT', $a_set[
'subject']);
77 $this->tpl->setVariable(
'VAL_UNLINKED_SUBJECT', $a_set[
'subject']);
81 $this->tpl->setVariable(
'VAL_DATE', $date);
setFormAction(string $a_form_action, bool $a_multipart=false)
setSelectAllCheckbox(string $a_select_all_checkbox, bool $a_select_all_on_top=false)
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false)
Class ilForumDraftsTableGUI.
setShowRowsSelector(bool $a_value)
Toggle rows-per-page selector.
ilObjForumGUI: ilPermissionGUI, ilForumExportGUI, ilInfoScreenGUI ilObjForumGUI: ilColumnGUI...
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
__construct(ilObjForumGUI $a_parent_obj, string $a_parent_cmd, protected bool $mayEdit)
setEnableNumInfo(bool $a_val)
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)
addMultiCommand(string $a_cmd, string $a_text)