ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilPCGridCellGUI.php
Go to the documentation of this file.
1 <?php
2 
3 /* Copyright (c) 1998-2011 ILIAS open source, Extended GPL, see docs/LICENSE */
4 
5 require_once("./Services/COPage/classes/class.ilPCTableData.php");
6 require_once("./Services/COPage/classes/class.ilPageContentGUI.php");
7 
16 {
17 
21  public function __construct($a_pg_obj, &$a_content_obj, $a_hier_id, $a_pc_id = "")
22  {
23  parent::__construct($a_pg_obj, $a_content_obj, $a_hier_id, $a_pc_id);
24  }
25 
29  public function executeCommand()
30  {
31  // get next class that processes or forwards current command
32  $next_class = $this->ctrl->getNextClass($this);
33 
34  // get current command
35  $cmd = $this->ctrl->getCmd();
36 
37  switch ($next_class) {
38  default:
39  $ret = $this->$cmd();
40  break;
41  }
42 
43  return $ret;
44  }
45 
49  public function deleteCell()
50  {
51  $this->content_obj->deleteCell();
52  $_SESSION["il_pg_error"] = $this->pg_obj->update();
53  $this->ctrl->returnToParent($this, "jump" . $this->hier_id);
54  }
55 
56 
60  public function moveCellRight()
61  {
62  $this->content_obj->moveCellRight();
63  $_SESSION["il_pg_error"] = $this->pg_obj->update();
64  $this->ctrl->returnToParent($this, "jump" . $this->hier_id);
65  }
66 
70  public function moveCellLeft()
71  {
72  $this->content_obj->moveCellLeft();
73  $_SESSION["il_pg_error"] = $this->pg_obj->update();
74  $this->ctrl->returnToParent($this, "jump" . $this->hier_id);
75  }
76 }
__construct($a_pg_obj, &$a_content_obj, $a_hier_id, $a_pc_id="")
Constructor.
moveCellRight()
Move cell right.
executeCommand()
execute command
moveCellLeft()
Move cell left.
$_SESSION["AccountId"]
deleteCell()
delete cell
User Interface for Editing of Page Content Objects (Paragraphs, Tables, ...)
Grid cell UI class.
$ret
Definition: parser.php:6