36 require_once
"./Services/Object/classes/class.ilObjectGUI.php";
51 parent::__construct($a_data,$a_id,$a_call_by_reference,
false);
63 if (!$rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
65 $this->
ilias->raiseError($this->lng->txt(
"permission_denied"),$this->
ilias->error_obj->MESSAGE);
73 $this->
data[
"cols"] =
array(
"type",
"title",
"last_change");
75 $this->maxcount = count($this->
data[
"data"]);
78 foreach ($this->
data[
"data"] as $key => $val)
81 "ref_id" => $this->
id,
82 "obj_id" => $val[
"obj_id"],
83 "type" => $val[
"type"],
86 unset($this->
data[
"data"][$key][
"obj_id"]);
100 include_once
"./Services/Table/classes/class.ilTableGUI.php";
104 $this->tpl->addBlockfile(
"ADM_CONTENT",
"adm_content",
"tpl.table.html");
107 $this->tpl->addBlockfile(
"TBL_CONTENT",
"tbl_content",
"tpl.obj_tbl_rows.html");
111 $obj_str = ($this->call_by_reference) ?
"" :
"&obj_id=".$this->obj_id;
112 $this->tpl->setVariable(
"FORMACTION",
113 $this->ctrl->getFormAction($this));
121 foreach ($this->
data[
"cols"] as $val)
123 $header_names[] = $this->lng->txt($val);
126 $tbl->setHeaderNames($header_names);
129 $header_params = $this->ctrl->getParameterArray($this,
"view");
130 $tbl->setHeaderVars($this->
data[
"cols"],$header_params);
131 $tbl->setColumnWidth(
array(
"15",
"75%",
"25%"));
135 $tbl->setOrderDirection(
$_GET[
"sort_order"]);
138 $tbl->setMaxCount($this->maxcount);
141 $tbl->setFooter(
"tblfooter",$this->lng->txt(
"previous"),$this->lng->txt(
"next"));
147 if (is_array($this->
data[
"data"][0]))
150 for ($i=0; $i < count($this->
data[
"data"]); $i++)
158 $this->tpl->setCurrentBlock(
"table_cell");
159 $this->tpl->setVariable(
"CELLSTYLE",
"tblrow1");
160 $this->tpl->parseCurrentBlock();
162 foreach (
$data as $key => $val)
221 $this->tpl->setCurrentBlock(
"tbl_content");
222 $this->tpl->setVariable(
"CSS_ROW", $css_row);
223 $this->tpl->parseCurrentBlock();
229 $this->tpl->setCurrentBlock(
"notfound");
230 $this->tpl->setVariable(
"TXT_OBJECT_NOT_FOUND", $this->lng->txt(
"obj_not_found"));
231 $this->tpl->setVariable(
"NUM_COLS", $num);
232 $this->tpl->parseCurrentBlock();
238 $next_class = $this->ctrl->getNextClass($this);
239 $cmd = $this->ctrl->getCmd();
244 case 'ilpermissiongui':
245 include_once(
"Services/AccessControl/classes/class.ilPermissionGUI.php");
247 $ret =& $this->ctrl->forwardCommand($perm_gui);
272 if ($rbacsystem->checkAccess(
'edit_permission',$this->object->getRefId()))
274 $this->tabs_gui->addTarget(
"settings",
275 $this->ctrl->getLinkTarget($this,
"view"),
array(
"view",
""),
"",
"");
277 $this->tabs_gui->addTarget(
"perm_settings",
278 $this->ctrl->getLinkTargetByClass(
array(get_class($this),
'ilpermissiongui'),
"perm"),
array(
"perm",
"info",
"owner"),
'ilpermissiongui');
__construct($a_data, $a_id, $a_call_by_reference)
Constructor.
Class ilObjObjectFolderGUI.
displayList()
display object list
prepareOutput($a_show_subobjects=true)
prepare output
Class ilObjectGUI Basic methods of all Output classes.
static formatDate(ilDateTime $date)
Format a date public.
redirection script todo: (a better solution should control the processing via a xml file) ...
viewObject()
list childs of current object
Create styles array
The data for the language used.
Create new PHPExcel object
obj_idprivate
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.