4include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
 
    5include_once(
"./Modules/Portfolio/classes/class.ilPortfolioTemplatePage.php");
 
    6include_once(
"./Modules/Portfolio/classes/class.ilPortfolioPage.php");
 
   34        $this->ctrl = 
$DIC->ctrl();
 
   35        $this->lng = 
$DIC->language();
 
   36        $this->
user = $DIC->user();
 
   40        parent::__construct($a_parent_obj, $a_parent_cmd);
 
   44        $this->portfolio = $a_parent_obj->object;
 
   46        $this->is_template = ($this->portfolio->getType() == 
"prtt");
 
   51        $this->
addColumn($this->lng->txt(
"user_order"));
 
   52        $this->
addColumn($this->lng->txt(
"title"));
 
   53        $this->
addColumn($this->lng->txt(
"type"));
 
   54        $this->
addColumn($this->lng->txt(
"actions"));
 
   57        $this->
setRowTemplate(
"tpl.portfolio_page_row.html", 
"Modules/Portfolio");
 
   63            "savePortfolioPagesOrdering",
 
   64            $lng->txt(
"user_save_ordering_and_titles")
 
   69        $lng->loadLanguageModule(
"blog");
 
   79        if (!$this->is_template) {
 
   80            $this->blogs = array();
 
   81            include_once 
"Services/PersonalWorkspace/classes/class.ilWorkspaceTree.php";
 
   87                    if ($node[
"type"] == 
"blog") {
 
   88                        $this->blogs[$node[
"obj_id"]] = $node[
"wsp_id"];
 
   93            include_once 
"Services/PersonalWorkspace/classes/class.ilWorkspaceAccessHandler.php";
 
   94            include_once(
"./Modules/Blog/classes/class.ilObjBlog.php");
 
  108        switch ($a_set[
"type"]) {
 
  110                $this->tpl->setCurrentBlock(
"title_field");
 
  111                $this->tpl->setVariable(
"ID", $a_set[
"id"]);
 
  113                $this->tpl->parseCurrentBlock();
 
  121                $action_item->setCaption(
'edit_page');
 
  122                $action_item->setUrl(
$ilCtrl->getLinkTargetByClass($this->page_gui, 
"edit"));
 
  123                $action_items[] = $action_item;
 
  126                $this->tpl->setVariable(
"TYPE", 
$lng->txt(
"page"));
 
  130                if (!$this->is_template) {
 
  131                    $this->tpl->setCurrentBlock(
"title_static");
 
  133                    $this->tpl->parseCurrentBlock();
 
  135                    $obj_id = (int) $a_set[
"title"];
 
  136                    if (isset($this->blogs[$obj_id])) {
 
  137                        $node_id = $this->blogs[$obj_id];
 
  146                        $link = 
$ilCtrl->getLinkTargetByClass(array($this->page_gui, 
"ilobjbloggui"), 
"render");
 
  149                        $action_item->setCaption(
'blog_edit');
 
  150                        $action_item->setUrl($link);
 
  151                        $action_items[] = $action_item;
 
  153                    $this->tpl->setVariable(
"TYPE", 
$lng->txt(
"obj_blog"));
 
  158                if ($this->is_template) {
 
  159                    $this->tpl->setCurrentBlock(
"title_field");
 
  160                    $this->tpl->setVariable(
"ID", $a_set[
"id"]);
 
  162                    $this->tpl->parseCurrentBlock();
 
  164                    $this->tpl->setCurrentBlock(
"title_static");
 
  166                    $this->tpl->parseCurrentBlock();
 
  167                    $this->tpl->setVariable(
"TYPE", 
$lng->txt(
"obj_blog"));
 
  172        $ilCtrl->setParameter($this->parent_obj, 
"prtf_pages[]", $a_set[
"id"]);
 
  176        $action_item->setCaption(
'prtf_copy_tab');
 
  177        $action_item->setUrl(
$ilCtrl->getLinkTarget($this->parent_obj, 
"copyPageForm"));
 
  178        $action_items[] = $action_item;
 
  182        $action_item->setCaption(
'delete');
 
  183        $action_item->setUrl(
$ilCtrl->getLinkTarget($this->parent_obj, 
"confirmPortfolioPageDeletion"));
 
  184        $action_items[] = $action_item;
 
  187        $ilCtrl->setParameter($this->parent_obj, 
"prtf_pages[]", 
"");
 
  189        if (count($action_items) > 0) {
 
  192            foreach ($action_items as $item) {
 
  194                    $split_button->setDefaultButton($item);
 
  199            $this->tpl->setVariable(
"SPLIT_BUTTON", $split_button->render());
 
  203        $this->tpl->setVariable(
"ID", $a_set[
"id"]);
 
  204        $this->tpl->setVariable(
"VAL_ORDER_NR", $a_set[
"order_nr"]);
 
An exception for terminatinating execution or to throw for unit testing.
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 getAllPortfolioPages($a_portfolio_id)
Get pages of portfolio.
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.
setLimit($a_limit=0, $a_default_limit=0)
set max.
addColumn( $a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.
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.
disable($a_module_name)
diesables particular modules of table
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.