3 require_once
'Services/Table/classes/class.ilTable2GUI.php';
4 require_once
'Services/Calendar/classes/class.ilDatePresentation.php';
33 public function __construct($a_parent_obj, $a_parent_cmd, $a_template_context)
42 $this->parent_cmd = $a_parent_cmd;
44 $this->
setId(
'frm_drafts_' . substr(md5($this->parent_cmd), 0, 3).
'_'.$a_parent_obj->object->getId() );
46 parent::__construct($a_parent_obj, $a_parent_cmd, $a_template_context);
48 $this->
setFormAction($this->ctrl->getFormAction($this->getParentObject(),
'showThreads'));
49 $this->
setRowTemplate(
'tpl.forums_threads_drafts_table.html',
'Modules/Forum');
54 $this->
addColumn(
'',
'check',
'1px',
true);
55 $this->
addColumn($this->lng->txt(
'drafts'),
'');
56 $this->
addColumn($this->lng->txt(
'edited_on'),
'');
58 $this->
addMultiCommand(
'confirmDeleteThreadDrafts', $this->lng->txt(
'delete'));
65 (isset(
$_POST[
'draft_ids']) && in_array($draft[
'draft_id'],
$_POST[
'draft_ids']) ?
true :
false),
'draft_ids[]', $draft[
'draft_id']
68 $subject =
'<div><a href="' . $this->ctrl->getLinkTarget($this->
getParentObject(),
'editThreadDraft&draft_id='.$draft[
'draft_id']) .
'">' . $draft[
'subject'] .
'</a></div>';
70 $this->tpl->setVariable(
'VAL_SUBJECT', $subject);
71 $this->tpl->setVariable(
'VAL_DATE', $date);
__construct($a_parent_obj, $a_parent_cmd="", $a_template_context="")
Constructor.
Class ilForumDraftsTableGUI.
getParentObject()
Get parent object.
addMultiCommand($a_cmd, $a_text)
Add Command button.
static formatDate(ilDateTime $date)
Format a date public.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
setSelectAllCheckbox($a_select_all_checkbox)
Set the name of the checkbox that should be toggled with a select all button.
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