4 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
5 include_once(
"./Modules/Blog/classes/class.ilObjBlog.php");
26 $this->portfolio = $a_portfolio;
32 $this->
addColumn($this->lng->txt(
""),
"",
"1");
33 $this->
addColumn($this->lng->txt(
"user_order"));
34 $this->
addColumn($this->lng->txt(
"title"));
35 $this->
addColumn($this->lng->txt(
"actions"));
38 $this->
setRowTemplate(
"tpl.portfolio_page_row.html",
"Services/Portfolio");
40 $this->
addMultiCommand(
"confirmPortfolioPageDeletion", $lng->txt(
"delete"));
44 $lng->txt(
"user_save_ordering_and_titles"));
48 $lng->loadLanguageModule(
"blog");
55 include_once(
"./Services/Portfolio/classes/class.ilPortfolioPage.php");
59 $this->blogs = array();
60 include_once
"Services/PersonalWorkspace/classes/class.ilWorkspaceTree.php";
66 foreach ($tree->getSubTree($root) as $node)
68 if ($node[
"type"] ==
"blog")
70 $this->blogs[$node[
"obj_id"]] = $node[
"wsp_id"];
75 include_once
"Services/PersonalWorkspace/classes/class.ilWorkspaceAccessHandler.php";
85 switch($a_set[
"type"])
88 $this->tpl->setCurrentBlock(
"title_field");
89 $this->tpl->setVariable(
"ID", $a_set[
"id"]);
91 $this->tpl->parseCurrentBlock();
93 $this->tpl->setCurrentBlock(
"action");
94 $this->tpl->setVariable(
"TXT_EDIT", $lng->txt(
"edit_page"));
95 $ilCtrl->setParameterByClass(
"ilportfoliopagegui",
96 "ppage", $a_set[
"id"]);
97 $this->tpl->setVariable(
"CMD_EDIT",
98 $ilCtrl->getLinkTargetByClass(
"ilportfoliopagegui",
"edit"));
99 $this->tpl->parseCurrentBlock();
103 $this->tpl->setCurrentBlock(
"title_static");
105 $this->tpl->parseCurrentBlock();
107 $obj_id = (int)$a_set[
"title"];
108 if(isset($this->blogs[$obj_id]))
110 $node_id = $this->blogs[$obj_id];
113 $ilCtrl->setParameterByClass(
"ilportfoliopagegui",
114 "ppage", $a_set[
"id"]);
115 $link = $ilCtrl->getLinkTargetByClass(array(
"ilportfoliopagegui",
"ilobjbloggui"),
"edit");
117 $this->tpl->setCurrentBlock(
"action");
118 $this->tpl->setVariable(
"TXT_EDIT", $lng->txt(
"blog_edit"));
119 $this->tpl->setVariable(
"CMD_EDIT", $link);
120 $this->tpl->parseCurrentBlock();
125 $this->tpl->setVariable(
"ID", $a_set[
"id"]);
126 $this->tpl->setVariable(
"VAL_ORDER_NR", $a_set[
"order_nr"]);