ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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
5require_once("./Services/COPage/classes/class.ilPCTableData.php");
6require_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}
$_SESSION["AccountId"]
An exception for terminatinating execution or to throw for unit testing.
Grid cell UI class.
executeCommand()
execute command
__construct($a_pg_obj, &$a_content_obj, $a_hier_id, $a_pc_id="")
Constructor.
moveCellLeft()
Move cell left.
moveCellRight()
Move cell right.
User Interface for Editing of Page Content Objects (Paragraphs, Tables, ...)
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
$ret
Definition: parser.php:6