ILIAS  release_4-4 Revision
ilPCListItemGUI Class Reference

Class ilPCListItemGUI. More...

+ Inheritance diagram for ilPCListItemGUI:
+ Collaboration diagram for ilPCListItemGUI:

Public Member Functions

 ilPCListItemGUI (&$a_pg_obj, &$a_content_obj, $a_hier_id, $a_pc_id="")
 Constructor public. More...
 
executeCommand ()
 execute command More...
 
 newItemAfter ()
 insert new list item after current one More...
 
 newItemBefore ()
 insert new list item before current one More...
 
 deleteItem ()
 delete a list item More...
 
 moveItemDown ()
 move list item down More...
 
 moveItemUp ()
 move list item up More...
 
- Public Member Functions inherited from ilPageContentGUI
 ilPageContentGUI ($a_pg_obj, $a_content_obj, $a_hier_id=0, $a_pc_id="")
 Constructor public. More...
 
 setContentObject ($a_val)
 Set content object. More...
 
 getContentObject ()
 Get content object. More...
 
 setPage ($a_val)
 Set page. More...
 
 getPage ()
 Get page. More...
 
 setPageConfig ($a_val)
 Set Page Config. More...
 
 getPageConfig ()
 Get Page Config. More...
 
 setStyleId ($a_styleid)
 Set Style Id. More...
 
 getStyleId ()
 Get Style Id. More...
 
 getStyle ()
 Get style object. More...
 
 setCharacteristics ($a_chars)
 Set Characteristics. More...
 
 getCharacteristics ()
 Get characteristics. More...
 
 getHierId ()
 get hierarchical id in dom object More...
 
 setHierId ($a_hier_id)
 get hierarchical id in dom object More...
 
 getBBMenu ($a_ta_name="par_content")
 Get the bb menu incl. More...
 
 delete ()
 delete content element More...
 
 moveAfter ()
 move content element after another element More...
 
 moveBefore ()
 move content element before another element More...
 
 splitPage ()
 split page to new page at specified position More...
 
 splitPageNext ()
 split page to next page at specified position More...
 
 displayValidationError ()
 display validation errors More...
 
 cancelCreate ()
 cancel creating page content More...
 
 cancelUpdate ()
 cancel update More...
 
 cancel ()
 Cancel. More...
 
 deactivate ()
 gui function set enabled if is not enabled and vice versa More...
 
 cut ()
 Cut single element. More...
 
 copy ()
 Copy single element. More...
 
 getTemplateOptions ($a_type)
 Get table templates. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from ilPageContentGUI
static _getCommonBBButtons ()
 Get common bb buttons. More...
 
- Data Fields inherited from ilPageContentGUI
 $content_obj
 
 $ilias
 
 $tpl
 
 $lng
 
 $ctrl
 
 $pg_obj
 
 $hier_id
 
 $dom
 
 $updated
 
 $target_script
 
 $return_location
 
 $page_config = null
 
- Protected Member Functions inherited from ilPageContentGUI
 getCharacteristicsOfCurrentStyle ($a_type)
 Get characteristics of current style. More...
 
- Static Protected Attributes inherited from ilPageContentGUI
static $common_bb_buttons
 

Detailed Description

Class ilPCListItemGUI.

Handles user commands on list items

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$I$

Definition at line 37 of file class.ilPCListItemGUI.php.

Member Function Documentation

◆ deleteItem()

ilPCListItemGUI::deleteItem ( )

delete a list item

Definition at line 94 of file class.ilPCListItemGUI.php.

References $_SESSION.

95  {
96  $this->content_obj->deleteItem();
97  $_SESSION["il_pg_error"] = $this->pg_obj->update();
98  $this->ctrl->returnToParent($this, "jump".$this->hier_id);
99  }
< a tabindex="-1" style="border-style: none;" href="#" title="Refresh Image" onclick="document.getElementById('siimage').src = './securimage_show.php?sid=' + Math.random(); this.blur(); return false">< img src="./images/refresh.png" alt="Reload Image" height="32" width="32" onclick="this.blur()" align="bottom" border="0"/></a >< br/>< strong > Enter Code *if($_SERVER['REQUEST_METHOD']=='POST' &&@ $_POST['do']=='contact') $_SESSION['ctform']['success']

◆ executeCommand()

& ilPCListItemGUI::executeCommand ( )

execute command

Definition at line 52 of file class.ilPCListItemGUI.php.

References $cmd, and $ret.

53  {
54  // get next class that processes or forwards current command
55  $next_class = $this->ctrl->getNextClass($this);
56 
57  // get current command
58  $cmd = $this->ctrl->getCmd();
59 
60  switch($next_class)
61  {
62  default:
63  $ret =& $this->$cmd();
64  break;
65  }
66 
67  return $ret;
68  }
$cmd
Definition: sahs_server.php:35

◆ ilPCListItemGUI()

ilPCListItemGUI::ilPCListItemGUI ( $a_pg_obj,
$a_content_obj,
  $a_hier_id,
  $a_pc_id = "" 
)

Constructor public.

Definition at line 44 of file class.ilPCListItemGUI.php.

45  {
46  parent::ilPageContentGUI($a_pg_obj, $a_content_obj, $a_hier_id, $a_pc_id);
47  }

◆ moveItemDown()

ilPCListItemGUI::moveItemDown ( )

move list item down

Definition at line 104 of file class.ilPCListItemGUI.php.

References $_SESSION.

105  {
106  $this->content_obj->moveItemDown();
107  $_SESSION["il_pg_error"] = $this->pg_obj->update();
108  $this->ctrl->returnToParent($this, "jump".$this->hier_id);
109  }
< a tabindex="-1" style="border-style: none;" href="#" title="Refresh Image" onclick="document.getElementById('siimage').src = './securimage_show.php?sid=' + Math.random(); this.blur(); return false">< img src="./images/refresh.png" alt="Reload Image" height="32" width="32" onclick="this.blur()" align="bottom" border="0"/></a >< br/>< strong > Enter Code *if($_SERVER['REQUEST_METHOD']=='POST' &&@ $_POST['do']=='contact') $_SESSION['ctform']['success']

◆ moveItemUp()

ilPCListItemGUI::moveItemUp ( )

move list item up

Definition at line 114 of file class.ilPCListItemGUI.php.

References $_SESSION.

115  {
116  $this->content_obj->moveItemUp();
117  $_SESSION["il_pg_error"] = $this->pg_obj->update();
118  $this->ctrl->returnToParent($this, "jump".$this->hier_id);
119  }
< a tabindex="-1" style="border-style: none;" href="#" title="Refresh Image" onclick="document.getElementById('siimage').src = './securimage_show.php?sid=' + Math.random(); this.blur(); return false">< img src="./images/refresh.png" alt="Reload Image" height="32" width="32" onclick="this.blur()" align="bottom" border="0"/></a >< br/>< strong > Enter Code *if($_SERVER['REQUEST_METHOD']=='POST' &&@ $_POST['do']=='contact') $_SESSION['ctform']['success']

◆ newItemAfter()

ilPCListItemGUI::newItemAfter ( )

insert new list item after current one

Definition at line 74 of file class.ilPCListItemGUI.php.

References $_SESSION.

75  {
76  $this->content_obj->newItemAfter();
77  $_SESSION["il_pg_error"] = $this->pg_obj->update();
78  $this->ctrl->returnToParent($this, "jump".$this->hier_id);
79  }
< a tabindex="-1" style="border-style: none;" href="#" title="Refresh Image" onclick="document.getElementById('siimage').src = './securimage_show.php?sid=' + Math.random(); this.blur(); return false">< img src="./images/refresh.png" alt="Reload Image" height="32" width="32" onclick="this.blur()" align="bottom" border="0"/></a >< br/>< strong > Enter Code *if($_SERVER['REQUEST_METHOD']=='POST' &&@ $_POST['do']=='contact') $_SESSION['ctform']['success']

◆ newItemBefore()

ilPCListItemGUI::newItemBefore ( )

insert new list item before current one

Definition at line 84 of file class.ilPCListItemGUI.php.

References $_SESSION.

85  {
86  $this->content_obj->newItemBefore();
87  $_SESSION["il_pg_error"] = $this->pg_obj->update();
88  $this->ctrl->returnToParent($this, "jump".$this->hier_id);
89  }
< a tabindex="-1" style="border-style: none;" href="#" title="Refresh Image" onclick="document.getElementById('siimage').src = './securimage_show.php?sid=' + Math.random(); this.blur(); return false">< img src="./images/refresh.png" alt="Reload Image" height="32" width="32" onclick="this.blur()" align="bottom" border="0"/></a >< br/>< strong > Enter Code *if($_SERVER['REQUEST_METHOD']=='POST' &&@ $_POST['do']=='contact') $_SESSION['ctform']['success']

The documentation for this class was generated from the following file: