Go to the documentation of this file.00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 require_once("./content/classes/Pages/class.ilPCListItem.php");
00025 require_once("./content/classes/Pages/class.ilPageContentGUI.php");
00026
00037 class ilPCListItemGUI extends ilPageContentGUI
00038 {
00039
00044 function ilPCListItemGUI(&$a_pg_obj, &$a_content_obj, $a_hier_id)
00045 {
00046 parent::ilPageContentGUI($a_pg_obj, $a_content_obj, $a_hier_id);
00047 }
00048
00052 function &executeCommand()
00053 {
00054
00055 $next_class = $this->ctrl->getNextClass($this);
00056
00057
00058 $cmd = $this->ctrl->getCmd();
00059
00060 switch($next_class)
00061 {
00062 default:
00063 $ret =& $this->$cmd();
00064 break;
00065 }
00066
00067 return $ret;
00068 }
00069
00070
00074 function newItemAfter()
00075 {
00076 $this->content_obj->newItemAfter();
00077 $_SESSION["il_pg_error"] = $this->pg_obj->update();
00078 $this->ctrl->returnToParent($this, "jump".$this->hier_id);
00079 }
00080
00084 function newItemBefore()
00085 {
00086 $this->content_obj->newItemBefore();
00087 $_SESSION["il_pg_error"] = $this->pg_obj->update();
00088 $this->ctrl->returnToParent($this, "jump".$this->hier_id);
00089 }
00090
00094 function deleteItem()
00095 {
00096 $this->content_obj->deleteItem();
00097 $_SESSION["il_pg_error"] = $this->pg_obj->update();
00098 $this->ctrl->returnToParent($this, "jump".$this->hier_id);
00099 }
00100
00104 function moveItemDown()
00105 {
00106 $this->content_obj->moveItemDown();
00107 $_SESSION["il_pg_error"] = $this->pg_obj->update();
00108 $this->ctrl->returnToParent($this, "jump".$this->hier_id);
00109 }
00110
00114 function moveItemUp()
00115 {
00116 $this->content_obj->moveItemUp();
00117 $_SESSION["il_pg_error"] = $this->pg_obj->update();
00118 $this->ctrl->returnToParent($this, "jump".$this->hier_id);
00119 }
00120
00121 }
00122 ?>