ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
class.ilPCGridCell.php
Go to the documentation of this file.
1
<?
php
2
3
/* Copyright (c) 1998-2017 ILIAS open source, Extended GPL, see docs/LICENSE */
4
5
require_once(
"./Services/COPage/classes/class.ilPageContent.php"
);
6
14
class
ilPCGridCell
extends
ilPageContent
15
{
19
public
function
init
()
20
{
21
$this->
setType
(
"gcell"
);
22
}
23
27
public
function
deleteCell
()
28
{
29
$grid_cell = $this->
getNode
();
30
$grid_cell->unlink($grid_cell);
31
}
32
36
public
function
moveCellRight
()
37
{
38
$grid_cell = $this->
getNode
();
39
$next = $grid_cell->next_sibling();
40
$next_copy = $next->clone_node(
true
);
41
$grid_cell->insert_before($next_copy, $grid_cell);
42
$next->unlink($next);
43
}
44
48
public
function
moveCellLeft
()
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
}
ilPageContent\getNode
& getNode()
Get xml node of page content.
Definition:
class.ilPageContent.php:124
ilPageContent\setType
setType($a_type)
Set Type.
Definition:
class.ilPageContent.php:93
ilPCGridCell\init
init()
Init page content component.
Definition:
class.ilPCGridCell.php:19
ilPageContent
Class ilPageContent.
Definition:
class.ilPageContent.php:17
ilPCGridCell\deleteCell
deleteCell()
delete tab
Definition:
class.ilPCGridCell.php:27
ilPCGridCell\moveCellRight
moveCellRight()
Move cell right.
Definition:
class.ilPCGridCell.php:36
ilPCGridCell
Cell of a grid.
Definition:
class.ilPCGridCell.php:14
php
ilPCGridCell\moveCellLeft
moveCellLeft()
Move cell left.
Definition:
class.ilPCGridCell.php:48
Services
COPage
classes
class.ilPCGridCell.php
Generated on Thu Jan 16 2025 19:02:20 for ILIAS by
1.8.13 (using
Doxyfile
)