4 include_once(
"Services/Table/classes/class.ilTable2GUI.php");
26 public function __construct($a_parent_obj, $a_parent_cmd =
"")
30 $this->ctrl = $DIC->ctrl();
31 $this->lng = $DIC->language();
32 $this->access = $DIC->access();
34 $lng = $DIC->language();
36 $this->
setId(
"ilCOPgHistoryTable");
37 parent::__construct($a_parent_obj, $a_parent_cmd);
46 $this->
setRowTemplate(
"tpl.page_history_row.html",
"Services/COPage");
60 if ($a_field ==
"sortkey") {
77 if ($a_set[
"nr"] > 0) {
79 $this->tpl->setCurrentBlock(
"command");
80 $this->tpl->setVariable(
"TXT_COMMAND",
$lng->txt(
"cont_rollback"));
81 $this->tpl->setVariable(
83 $ilCtrl->getLinkTarget($this->getParentObject(),
"rollbackConfirmation")
85 $this->tpl->parseCurrentBlock();
89 if (!$this->rselect) {
90 $this->tpl->setVariable(
"RSELECT",
'checked="checked"');
91 $this->rselect =
true;
92 } elseif (!$this->lselect) {
93 $this->tpl->setVariable(
"LSELECT",
'checked="checked"');
94 $this->lselect =
true;
98 $this->tpl->setVariable(
"NR", $a_set[
"nr"]);
99 $this->tpl->setVariable(
106 $this->tpl->setVariable(
108 $ilCtrl->getLinkTarget($this->getParentObject(),
"preview")
120 include_once(
"./Services/User/classes/class.ilUserUtil.php");
129 $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.
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false, $include_seconds=false)
Format a date public.
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.
addMultiCommand($a_cmd, $a_text)
Add Command button.
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, $a_ctrl_path="ilpublicuserprofilegui")
Default behaviour is:
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.