ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilPCGridCell.php
Go to the documentation of this file.
1 <?php
2 
24 {
28  public function init(): void
29  {
30  $this->setType("gcell");
31  }
32 
33  public function deleteCell(): void
34  {
35  $grid_cell = $this->getNode();
36  $grid_cell->unlink($grid_cell);
37  }
38 
39  public function moveCellRight(): void
40  {
41  $grid_cell = $this->getNode();
42  $next = $grid_cell->next_sibling();
43  $next_copy = $next->clone_node(true);
44  $grid_cell->insert_before($next_copy, $grid_cell);
45  $next->unlink($next);
46  }
47 
48  public function moveCellLeft(): void
49  {
50  $grid_cell = $this->getNode();
51  $prev = $grid_cell->previous_sibling();
52  $grid_cell_copy = $grid_cell->clone_node(true);
53  $prev->insert_before($grid_cell_copy, $prev);
54  $grid_cell->unlink($grid_cell);
55  }
56 }
setType(string $a_type)
Set Type.
init()
Init page content component.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...