ILIAS  trunk Revision v11.0_alpha-1702-gfd3ecb7f852
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.ilPCListItemGUI.php
Go to the documentation of this file.
1 <?php
2 
25 {
26  public function __construct(
27  ilPageObject $a_pg_obj,
28  ?ilPageContent $a_content_obj,
29  string $a_hier_id,
30  string $a_pc_id = ""
31  ) {
32  parent::__construct($a_pg_obj, $a_content_obj, $a_hier_id, $a_pc_id);
33  }
34 
35  public function executeCommand(): void
36  {
37  // get next class that processes or forwards current command
38  $next_class = $this->ctrl->getNextClass($this);
39 
40  // get current command
41  $cmd = $this->ctrl->getCmd();
42 
43  switch ($next_class) {
44  default:
45  $this->$cmd();
46  break;
47  }
48  }
49 
50 
54  public function newItemAfter(): void
55  {
56  $this->content_obj->newItemAfter();
57  $this->updateAndReturn();
58  }
59 
63  public function newItemBefore(): void
64  {
65  $this->content_obj->newItemBefore();
66  $this->updateAndReturn();
67  }
68 
72  public function deleteItem(): void
73  {
74  $this->content_obj->deleteItem();
75  $this->updateAndReturn();
76  }
77 
81  public function moveItemDown(): void
82  {
83  $this->content_obj->moveItemDown();
84  $this->updateAndReturn();
85  }
86 
90  public function moveItemUp(): void
91  {
92  $this->content_obj->moveItemUp();
93  $this->updateAndReturn();
94  }
95 }
moveItemDown()
move list item down
__construct(ilPageObject $a_pg_obj, ?ilPageContent $a_content_obj, string $a_hier_id, string $a_pc_id="")
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
moveItemUp()
move list item up
Content object of ilPageObject (see ILIAS DTD).
newItemBefore()
insert new list item before current one
deleteItem()
delete a list item
User Interface for Editing of Page Content Objects (Paragraphs, Tables, ...)
Class ilPageObject Handles PageObjects of ILIAS Learning Modules (see ILIAS DTD)
newItemAfter()
insert new list item after current one
__construct(Container $dic, ilPlugin $plugin)