22 $this->
setId(
'frm_drafts_' . substr(md5($this->parent_cmd), 0, 3) .
'_' . $a_parent_obj->object->getId());
24 parent::__construct($a_parent_obj, $a_parent_cmd);
26 $this->
setFormAction($this->ctrl->getFormAction($this->getParentObject(),
'showThreads'));
27 $this->
setRowTemplate(
'tpl.forums_threads_drafts_table.html',
'Modules/Forum');
32 $this->
addColumn(
'',
'check',
'1px',
true);
33 $this->
addColumn($this->lng->txt(
'drafts'),
'');
34 $this->
addColumn($this->lng->txt(
'edited_on'),
'');
36 $this->
addMultiCommand(
'confirmDeleteThreadDrafts', $this->lng->txt(
'delete'));
43 (isset(
$_POST[
'draft_ids']) && in_array($draft[
'draft_id'],
$_POST[
'draft_ids']) ?
true :
false),
49 $this->ctrl->setParameter($this->
getParentObject(),
'draft_id', $draft[
'draft_id']);
52 $this->tpl->setVariable(
'VAL_EDIT_URL',
$url);
53 $this->tpl->setVariable(
'VAL_LINKED_SUBJECT', $draft[
'subject']);
55 $this->tpl->setVariable(
'VAL_UNLINKED_SUBJECT', $draft[
'subject']);
59 $this->tpl->setVariable(
'VAL_DATE', $date);
Class ilForumDraftsTableGUI.
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false, $include_seconds=false)
Format a date public.
getParentObject()
Get parent object.
__construct($a_parent_obj, $a_parent_cmd, bool $mayEdit)
ilForumDraftsTableGUI constructor.
setSelectAllCheckbox($a_select_all_checkbox, $a_select_all_on_top=false)
Set the name of the checkbox that should be toggled with a select all button.
addMultiCommand($a_cmd, $a_text)
Add Command button.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
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.
static formCheckbox($checked, $varname, $value, $disabled=false)
??? public