4include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
 
    5include_once(
"./Modules/Portfolio/classes/class.ilPortfolioTemplatePage.php");
 
    6include_once(
"./Modules/Portfolio/classes/class.ilPortfolioPage.php");          
 
   29                parent::__construct($a_parent_obj, $a_parent_cmd);
 
   31                $this->portfolio = $a_parent_obj->object;               
 
   33                $this->is_template = ($this->portfolio->getType() == 
"prtt");   
 
   37                $this->
addColumn($this->lng->txt(
""), 
"", 
"1");
 
   38                $this->
addColumn($this->lng->txt(
"user_order"));
 
   39                $this->
addColumn($this->lng->txt(
"title"));
 
   40                $this->
addColumn($this->lng->txt(
"actions"));
 
   43                $this->
setRowTemplate(
"tpl.portfolio_page_row.html", 
"Modules/Portfolio");
 
   45                $this->
addMultiCommand(
"confirmPortfolioPageDeletion", $lng->txt(
"delete"));
 
   49                        $lng->txt(
"user_save_ordering_and_titles"));
 
   53                $lng->loadLanguageModule(
"blog");                       
 
   63                if(!$this->is_template)
 
   65                        $this->blogs = array();
 
   66                        include_once 
"Services/PersonalWorkspace/classes/class.ilWorkspaceTree.php";
 
   68                        $root = $tree->readRootId();
 
   71                                $root = $tree->getNodeData($root);
 
   72                                foreach ($tree->getSubTree($root) as $node)
 
   74                                        if ($node[
"type"] == 
"blog")
 
   76                                                $this->blogs[$node[
"obj_id"]] = $node[
"wsp_id"];
 
   81                        include_once 
"Services/PersonalWorkspace/classes/class.ilWorkspaceAccessHandler.php";   
 
   82                        include_once(
"./Modules/Blog/classes/class.ilObjBlog.php");
 
   93                switch($a_set[
"type"])
 
   96                                $this->tpl->setCurrentBlock(
"title_field");
 
   97                                $this->tpl->setVariable(
"ID", $a_set[
"id"]);
 
   99                                $this->tpl->parseCurrentBlock();
 
  101                                $this->tpl->setCurrentBlock(
"action");
 
  102                                $this->tpl->setVariable(
"TXT_EDIT", 
$lng->txt(
"edit_page"));
 
  103                                $ilCtrl->setParameterByClass($this->page_gui,
 
  104                                        "ppage", $a_set[
"id"]);
 
  105                                $this->tpl->setVariable(
"CMD_EDIT",
 
  106                                        $ilCtrl->getLinkTargetByClass($this->page_gui, 
"edit"));        
 
  107                                $this->tpl->parseCurrentBlock();
 
  111                                if(!$this->is_template)
 
  113                                        $this->tpl->setCurrentBlock(
"title_static");
 
  115                                        $this->tpl->parseCurrentBlock();
 
  117                                        $obj_id = (int)$a_set[
"title"];
 
  118                                        if(isset($this->blogs[$obj_id]))
 
  120                                                $node_id = $this->blogs[$obj_id];
 
  124                                                $ilCtrl->setParameterByClass($this->page_gui,
 
  125                                                        "ppage", $a_set[
"id"]);
 
  126                                                $link = 
$ilCtrl->getLinkTargetByClass(array($this->page_gui, 
"ilobjbloggui"), 
"render");
 
  128                                                $this->tpl->setCurrentBlock(
"action");
 
  129                                                $this->tpl->setVariable(
"TXT_EDIT", 
$lng->txt(
"blog_edit"));
 
  130                                                $this->tpl->setVariable(
"CMD_EDIT", $link);     
 
  131                                                $this->tpl->parseCurrentBlock();
 
  137                                if($this->is_template)
 
  139                                        $this->tpl->setCurrentBlock(
"title_field");
 
  140                                        $this->tpl->setVariable(
"ID", $a_set[
"id"]);
 
  142                                        $this->tpl->parseCurrentBlock();
 
  144                                        $this->tpl->setCurrentBlock(
"title_static");
 
  145                                        $this->tpl->setVariable(
"VAL_TITLE_STATIC", 
$lng->txt(
"obj_blog"));
 
  146                                        $this->tpl->parseCurrentBlock();
 
  151                $this->tpl->setVariable(
"ID", $a_set[
"id"]);
 
  152                $this->tpl->setVariable(
"VAL_ORDER_NR", $a_set[
"order_nr"]);
 
Portfolio view gui base class.
static _lookupTitle($a_id)
lookup object title
fillRow($a_set)
Fill table row.
__construct(ilObjPortfolioBaseGUI $a_parent_obj, $a_parent_cmd)
Constructor.
static getAllPages($a_portfolio_id)
Get pages of portfolio.
addColumn($a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="")
Add a column to the header.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
setData($a_data)
set table data @access public
setRowTemplate($a_template, $a_template_dir="")
Set row template.
addMultiCommand($a_cmd, $a_text)
Add Command button.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms @access public
static getGotoLink($a_node_id, $a_obj_id, $a_additional=null)
Tree handler for personal workspace.