ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
class.ilPCGridCell.php
Go to the documentation of this file.
1
<?php
2
23
class
ilPCGridCell
extends
ilPageContent
24
{
28
public
function
init
(): void
29
{
30
$this->
setType
(
"gcell"
);
31
}
32
33
public
function
deleteCell
(): void
34
{
35
$grid_cell = $this->
getDomNode
();
36
$grid_cell->parentNode->removeChild($grid_cell);
37
}
38
39
public
function
moveCellRight
(): void
40
{
41
$grid_cell = $this->
getDomNode
();
42
$next = $grid_cell->nextSibling;
43
$next_copy = $next->cloneNode(
true
);
44
$grid_cell->parentNode->insertBefore($next_copy, $grid_cell);
45
$next->parentNode->removeChild($next);
46
}
47
48
public
function
moveCellLeft
(): void
49
{
50
$grid_cell = $this->
getDomNode
();
51
$prev = $grid_cell->previousSibling;
52
$grid_cell_copy = $grid_cell->cloneNode(
true
);
53
$prev->parentNode->insertBefore($grid_cell_copy, $prev);
54
$grid_cell->parentNode->removeChild($grid_cell);
55
}
56
}
ilPageContent\setType
setType(string $a_type)
Set Type.
Definition:
class.ilPageContent.php:103
ilPCGridCell\init
init()
Init page content component.
Definition:
class.ilPCGridCell.php:28
ilPageContent
Content object of ilPageObject (see ILIAS DTD).
Definition:
class.ilPageContent.php:28
ilPCGridCell\deleteCell
deleteCell()
Definition:
class.ilPCGridCell.php:33
ilPCGridCell\moveCellRight
moveCellRight()
Definition:
class.ilPCGridCell.php:39
ilPCGridCell
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.ilPCGridCell.php:23
ilPageContent\getDomNode
getDomNode()
Definition:
class.ilPageContent.php:113
ilPCGridCell\moveCellLeft
moveCellLeft()
Definition:
class.ilPCGridCell.php:48
components
ILIAS
COPage
PC
Grid
class.ilPCGridCell.php
Generated on Sun Aug 31 2025 23:02:40 for ILIAS by
1.8.13 (using
Doxyfile
)