24 require_once(
"./Services/COPage/classes/class.ilPCListItem.php");
25 require_once(
"./Services/COPage/classes/class.ilPageContentGUI.php");
44 public function __construct(&$a_pg_obj, &$a_content_obj, $a_hier_id, $a_pc_id =
"")
46 parent::__construct($a_pg_obj, $a_content_obj, $a_hier_id, $a_pc_id);
55 $next_class = $this->ctrl->getNextClass($this);
58 $cmd = $this->ctrl->getCmd();
60 switch ($next_class) {
75 $this->content_obj->newItemAfter();
76 $_SESSION[
"il_pg_error"] = $this->pg_obj->update();
77 $this->ctrl->returnToParent($this,
"jump" . $this->hier_id);
85 $this->content_obj->newItemBefore();
86 $_SESSION[
"il_pg_error"] = $this->pg_obj->update();
87 $this->ctrl->returnToParent($this,
"jump" . $this->hier_id);
95 $this->content_obj->deleteItem();
96 $_SESSION[
"il_pg_error"] = $this->pg_obj->update();
97 $this->ctrl->returnToParent($this,
"jump" . $this->hier_id);
105 $this->content_obj->moveItemDown();
106 $_SESSION[
"il_pg_error"] = $this->pg_obj->update();
107 $this->ctrl->returnToParent($this,
"jump" . $this->hier_id);
115 $this->content_obj->moveItemUp();
116 $_SESSION[
"il_pg_error"] = $this->pg_obj->update();
117 $this->ctrl->returnToParent($this,
"jump" . $this->hier_id);
moveItemDown()
move list item down
moveItemUp()
move list item up
newItemBefore()
insert new list item before current one
deleteItem()
delete a list item
User Interface for Editing of Page Content Objects (Paragraphs, Tables, ...)
newItemAfter()
insert new list item after current one
executeCommand()
execute command
__construct(&$a_pg_obj, &$a_content_obj, $a_hier_id, $a_pc_id="")
Constructor public.