ILIAS
release_4-4 Revision
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
y
+
Files
File List
+
Globals
+
All
$
(
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
o
p
r
s
t
u
v
w
x
+
Variables
$
(
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
class.ilPCTab.php
Go to the documentation of this file.
1
<?php
2
3
/* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
4
5
require_once(
"./Services/COPage/classes/class.ilPageContent.php"
);
6
17
class
ilPCTab
extends
ilPageContent
18
{
19
var
$dom
;
20
24
function
init
()
25
{
26
$this->
setType
(
"tabstab"
);
27
}
28
32
function
newItemAfter
()
33
{
34
$tab
= $this->
getNode
();
35
$new_tab =& $this->dom->create_element(
"Tab"
);
36
if
($next_tab =&
$tab
->next_sibling())
37
{
38
$new_tab =& $next_tab->insert_before($new_tab, $next_tab);
39
}
40
else
41
{
42
$parent_tabs =
$tab
->parent_node();
43
$new_tab =& $parent_tabs->append_child($new_tab);
44
}
45
}
46
47
51
function
newItemBefore
()
52
{
53
$tab
= $this->
getNode
();
54
$new_tab = $this->dom->create_element(
"Tab"
);
55
$new_tab =
$tab
->insert_before($new_tab,
$tab
);
56
}
57
58
62
function
deleteItem
()
63
{
64
$tab
=& $this->
getNode
();
65
$tab
->unlink(
$tab
);
66
}
67
71
function
moveItemDown
()
72
{
73
$tab
= $this->
getNode
();
74
$next =
$tab
->next_sibling();
75
$next_copy = $next->clone_node(
true
);
76
$next_copy =
$tab
->insert_before($next_copy,
$tab
);
77
$next->unlink($next);
78
}
79
83
function
moveItemUp
()
84
{
85
$tab
= $this->
getNode
();
86
$prev =
$tab
->previous_sibling();
87
$tab_copy =
$tab
->clone_node(
true
);
88
$tab_copy =& $prev->insert_before($tab_copy, $prev);
89
$tab
->unlink(
$tab
);
90
}
91
92
}
93
?>
ilPCTab\moveItemUp
moveItemUp()
move tab item up
Definition:
class.ilPCTab.php:83
ilPageContent\getNode
& getNode()
Get xml node of page content.
Definition:
class.ilPageContent.php:103
ilPCTab\$dom
$dom
Definition:
class.ilPCTab.php:19
ilPageContent\setType
setType($a_type)
Set Type.
Definition:
class.ilPageContent.php:72
ilPCTab
Class ilPCTab.
Definition:
class.ilPCTab.php:17
ilPageContent
Class ilPageContent.
Definition:
class.ilPageContent.php:17
ilPCTab\newItemBefore
newItemBefore()
insert new tab item before current one
Definition:
class.ilPCTab.php:51
$tab
$tab
Definition:
inc.client_tabs.php:15
ilPCTab\moveItemDown
moveItemDown()
move tab item down
Definition:
class.ilPCTab.php:71
ilPCTab\init
init()
Init page content component.
Definition:
class.ilPCTab.php:24
ilPCTab\deleteItem
deleteItem()
delete tab
Definition:
class.ilPCTab.php:62
ilPCTab\newItemAfter
newItemAfter()
insert new tab item after current one
Definition:
class.ilPCTab.php:32
Services
COPage
classes
class.ilPCTab.php
Generated on Mon Dec 21 2020 19:01:12 for ILIAS by
1.8.13 (using
Doxyfile
)