4 include_once(
"Services/Table/classes/class.ilTable2GUI.php");
20 $this->
setId(
"ilCOPgHistoryTable");
21 parent::__construct($a_parent_obj, $a_parent_cmd);
22 $this->
setTitle($lng->txt(
"content_page_history"));
26 $this->
addColumn($lng->txt(
"date"),
"",
"33%");
27 $this->
addColumn($lng->txt(
"user"),
"",
"33%");
28 $this->
addColumn($lng->txt(
"action"),
"",
"33%");
30 $this->
setRowTemplate(
"tpl.page_history_row.html",
"Services/COPage");
33 $this->
addMultiCommand(
"compareVersion", $lng->txt(
"cont_page_compare"));
44 if ($a_field ==
"sortkey")
62 $ilCtrl->setParameter($this->
getParentObject(),
"old_nr", $a_set[
"nr"]);
63 $this->tpl->setCurrentBlock(
"command");
64 $this->tpl->setVariable(
"TXT_COMMAND", $lng->txt(
"cont_rollback"));
65 $this->tpl->setVariable(
"HREF_COMMAND",
66 $ilCtrl->getLinkTarget($this->getParentObject(),
"rollbackConfirmation"));
67 $this->tpl->parseCurrentBlock();
73 $this->tpl->setVariable(
"RSELECT",
'checked="checked"');
74 $this->rselect =
true;
76 else if (!$this->lselect)
78 $this->tpl->setVariable(
"LSELECT",
'checked="checked"');
79 $this->lselect =
true;
83 $this->tpl->setVariable(
"NR", $a_set[
"nr"]);
84 $this->tpl->setVariable(
"TXT_HDATE",
87 $ilCtrl->setParameter($this->
getParentObject(),
"old_nr", $a_set[
"nr"]);
89 $this->tpl->setVariable(
"HREF_OLD_PAGE",
90 $ilCtrl->getLinkTarget($this->getParentObject(),
"preview"));
102 include_once(
"./Services/User/classes/class.ilUserUtil.php");
111 $this->tpl->setVariable(
"TXT_USER", $name_pres);
static _lookupLogin($a_user_id)
lookup login
static _lookupName($a_user_id)
lookup user name
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
static _exists($a_id, $a_reference=false, $a_type=null)
checks if an object exists in object_data
getParentCmd()
Get parent command.
Page History Table GUI Class.
getParentObject()
Get parent object.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
static getNamePresentation($a_user_id, $a_user_image=false, $a_profile_link=false, $a_profile_back_link="", $a_force_first_lastname=false, $a_omit_login=false, $a_sortable=true, $a_return_data_array=false)
Default behaviour is:
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.
__construct($a_parent_obj, $a_parent_cmd="")
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.
numericOrdering($a_field)
Should this field be sorted numeric?
fillRow($a_set)
Standard Version of Fill Row.