4 include_once(
"Services/Table/classes/class.ilTable2GUI.php");
20 parent::__construct($a_parent_obj, $a_parent_cmd);
21 $this->
setTitle($lng->txt(
"content_page_history"));
25 $this->
addColumn($lng->txt(
"date"),
"",
"33%");
26 $this->
addColumn($lng->txt(
"user"),
"",
"33%");
27 $this->
addColumn($lng->txt(
"action"),
"",
"33%");
29 $this->
setRowTemplate(
"tpl.page_history_row.html",
"Services/COPage");
32 $this->
addMultiCommand(
"compareVersion", $lng->txt(
"cont_page_compare"));
43 if ($a_field ==
"sortkey")
61 $ilCtrl->setParameter($this->
getParentObject(),
"old_nr", $a_set[
"nr"]);
62 $this->tpl->setCurrentBlock(
"command");
63 $this->tpl->setVariable(
"TXT_COMMAND", $lng->txt(
"cont_rollback"));
64 $this->tpl->setVariable(
"HREF_COMMAND",
65 $ilCtrl->getLinkTarget($this->getParentObject(),
"rollbackConfirmation"));
66 $this->tpl->parseCurrentBlock();
72 $this->tpl->setVariable(
"RSELECT",
'checked="checked"');
73 $this->rselect =
true;
75 else if (!$this->lselect)
77 $this->tpl->setVariable(
"LSELECT",
'checked="checked"');
78 $this->lselect =
true;
82 $this->tpl->setVariable(
"NR", $a_set[
"nr"]);
83 $this->tpl->setVariable(
"TXT_HDATE",
86 $ilCtrl->setParameter($this->
getParentObject(),
"old_nr", $a_set[
"nr"]);
87 $this->tpl->setVariable(
"HREF_OLD_PAGE",
88 $ilCtrl->getLinkTarget($this->getParentObject(),
"preview"));
95 $this->tpl->setVariable(
"TXT_LINKED_USER",
96 $user[
"lastname"].
", ".$user[
"firstname"].
" [".$login.
"]");
99 $ilCtrl->setParameterByClass(
"ilpublicuserprofilegui",
"user", $a_set[
"user"]);
100 $ilCtrl->setParameterByClass(
"ilpublicuserprofilegui",
"back_url",
101 rawurlencode($ilCtrl->getLinkTarget($this->getParentObject(), $this->
getParentCmd())));
102 $this->tpl->setVariable(
"USER_LINK",
103 $ilCtrl->getLinkTargetByClass(
"ilpublicuserprofilegui",
"getHTML"));
105 $this->tpl->setVariable(
"IMG_USER",
$img);
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.
addColumn($a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="")
Add a column to the header.
addMultiCommand($a_cmd, $a_text)
Add Command button.
static formatDate(ilDateTime $date)
Format a date public.
_lookupLogin($a_user_id)
lookup login
setRowTemplate($a_template, $a_template_dir="")
Set row template.
__construct($a_parent_obj, $a_parent_cmd="")
static _getPersonalPicturePath($a_usr_id, $a_size="small", $a_force_pic=false, $a_prevent_no_photo_image=false)
Get path to personal picture.
setFormAction($a_form_action)
Set Form action parameter.
numericOrdering($a_field)
Should this field be sorted numeric?
fillRow($a_set)
Standard Version of Fill Row.