ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilPCGridCellGUI.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 public function deleteCell(): void
51 {
52 $this->content_obj->deleteCell();
53 $this->updateAndReturn();
54 }
55
56 public function moveCellRight(): void
57 {
58 $this->content_obj->moveCellRight();
59 $this->updateAndReturn();
60 }
61
62 public function moveCellLeft(): void
63 {
64 $this->content_obj->moveCellLeft();
65 $this->updateAndReturn();
66 }
67}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(ilPageObject $a_pg_obj, ?ilPageContent $a_content_obj, string $a_hier_id, string $a_pc_id="")
User Interface for Editing of Page Content Objects (Paragraphs, Tables, ...)
Content object of ilPageObject (see ILIAS DTD).
Class ilPageObject Handles PageObjects of ILIAS Learning Modules (see ILIAS DTD)
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc