36 require_once
"./Services/Object/classes/class.ilObjectGUI.php";
58 public function __construct($a_data, $a_id, $a_call_by_reference)
62 $this->rbacsystem = $DIC->rbac()->system();
63 $this->error = $DIC[
"ilErr"];
65 parent::__construct($a_data, $a_id, $a_call_by_reference,
false);
78 if (!
$rbacsystem->checkAccess(
"visible,read", $this->object->getRefId())) {
79 $ilErr->raiseError($this->lng->txt(
"permission_denied"),
$ilErr->MESSAGE);
83 $this->
data = array();
84 $this->
data[
"data"] = array();
85 $this->
data[
"ctrl"] = array();
87 $this->
data[
"cols"] = array(
"type",
"title",
"last_change");
89 $this->maxcount = count($this->
data[
"data"]);
92 foreach ($this->
data[
"data"] as
$key => $val) {
94 "ref_id" => $this->
id,
95 "obj_id" => $val[
"obj_id"],
96 "type" => $val[
"type"],
99 unset($this->
data[
"data"][
$key][
"obj_id"]);
113 include_once
"./Services/Table/classes/class.ilTableGUI.php";
117 $this->tpl->addBlockfile(
"ADM_CONTENT",
"adm_content",
"tpl.table.html");
120 $this->tpl->addBlockfile(
"TBL_CONTENT",
"tbl_content",
"tpl.obj_tbl_rows.html");
124 $obj_str = ($this->call_by_reference) ?
"" :
"&obj_id=" . $this->obj_id;
125 $this->tpl->setVariable(
127 $this->ctrl->getFormAction($this)
134 $tbl->setTitle($this->object->getTitle());
136 foreach ($this->
data[
"cols"] as $val) {
137 $header_names[] = $this->lng->txt($val);
140 $tbl->setHeaderNames($header_names);
143 $header_params = $this->ctrl->getParameterArray($this,
"view");
144 $tbl->setHeaderVars($this->
data[
"cols"], $header_params);
145 $tbl->setColumnWidth(array(
"15",
"75%",
"25%"));
149 $tbl->setOrderDirection(
$_GET[
"sort_order"]);
152 $tbl->setMaxCount($this->maxcount);
155 $tbl->setFooter(
"tblfooter", $this->lng->txt(
"previous"), $this->lng->txt(
"next"));
161 if (is_array($this->
data[
"data"][0])) {
163 for (
$i = 0;
$i < count($this->
data[
"data"]);
$i++) {
170 $this->tpl->setCurrentBlock(
"table_cell");
171 $this->tpl->setVariable(
"CELLSTYLE",
"tblrow1");
172 $this->tpl->parseCurrentBlock();
232 $this->tpl->setCurrentBlock(
"tbl_content");
233 $this->tpl->setVariable(
"CSS_ROW", $css_row);
234 $this->tpl->parseCurrentBlock();
238 $this->tpl->setCurrentBlock(
"notfound");
239 $this->tpl->setVariable(
"TXT_OBJECT_NOT_FOUND", $this->lng->txt(
"obj_not_found"));
240 $this->tpl->setVariable(
"NUM_COLS", $num);
241 $this->tpl->parseCurrentBlock();
247 $next_class = $this->ctrl->getNextClass($this);
248 $cmd = $this->ctrl->getCmd();
251 switch ($next_class) {
252 case 'ilpermissiongui':
253 include_once(
"Services/AccessControl/classes/class.ilPermissionGUI.php");
255 $ret = &$this->ctrl->forwardCommand($perm_gui);
279 if (
$rbacsystem->checkAccess(
'edit_permission', $this->object->getRefId())) {
280 $this->tabs_gui->addTarget(
282 $this->ctrl->getLinkTarget($this,
"view"),
288 $this->tabs_gui->addTarget(
290 $this->ctrl->getLinkTargetByClass(array(get_class($this),
'ilpermissiongui'),
"perm"),
291 array(
"perm",
"info",
"owner"),
__construct($a_data, $a_id, $a_call_by_reference)
Constructor.
Class ilObjObjectFolderGUI.
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false, $include_seconds=false)
Format a date public.
displayList()
display object list
prepareOutput($a_show_subobjects=true)
prepare output
Class ilObjectGUI Basic methods of all Output classes.
viewObject()
list childs of current object
static switchColor($a_num, $a_css1, $a_css2)
switches style sheets for each even $a_num (used for changing colors of different result rows) ...
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.