ILIAS
release_5-0 Revision 5.0.0-1144-gc4397b1f870
◀ 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
x
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
k
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.ilPCPlaceHolder.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
ilPCPlaceHolder
extends
ilPageContent
{
18
19
//class of placeholder
20
21
var
$q_node
;
// node of Paragraph element
22
var
$content_class
;
23
var
$height
;
24
28
function
init
()
29
{
30
$this->
setType
(
"plach"
);
31
}
32
33
37
function
setNode
(&$a_node)
38
{
39
parent::setNode($a_node);
// this is the PageContent node
40
$this->q_node =& $a_node->first_child();
//... and this the PlaceHolder
41
}
42
46
function
create
(&$a_pg_obj, $a_hier_id)
47
{
48
$this->
createPageContentNode
();
49
$a_pg_obj->insertContent($this, $a_hier_id,
IL_INSERT_AFTER
);
50
$this->q_node = $this->dom->create_element(
"PlaceHolder"
);
51
$this->q_node = $this->node->append_child($this->q_node);
52
}
53
59
function
setContentClass
($a_class)
60
{
61
if
(is_object($this->q_node))
62
{
63
$this->q_node->set_attribute(
"ContentClass"
, $a_class);
64
}
65
}
66
72
function
getContentClass
()
73
{
74
if
(is_object($this->q_node))
75
{
76
return
$this->q_node->get_attribute(
"ContentClass"
, $a_class);
77
}
78
return
false
;
79
}
80
86
function
setHeight
($a_height)
87
{
88
if
(is_object($this->q_node))
89
{
90
$this->q_node->set_attribute(
"Height"
, $a_height);
91
}
92
}
93
94
100
function
getHeight
()
101
{
102
if
(is_object($this->q_node))
103
{
104
return
$this->q_node->get_attribute(
"Height"
, $a_class);
105
}
106
return
false
;
107
}
108
114
function
getClass
()
115
{
116
return
""
;
117
}
118
123
static
function
getLangVars
()
124
{
125
return
array(
"question_placeh"
,
"media_placeh"
,
"text_placeh"
,
126
"ed_insert_plach"
,
"question_placehl"
,
"media_placehl"
,
"text_placehl"
,
127
"verification_placeh"
,
"verification_placehl"
);
128
}
129
130
131
132
}
ilPCPlaceHolder\$q_node
$q_node
Definition:
class.ilPCPlaceHolder.php:21
ilPCPlaceHolder\setNode
setNode(&$a_node)
Set node.
Definition:
class.ilPCPlaceHolder.php:37
ilPCPlaceHolder\create
create(&$a_pg_obj, $a_hier_id)
Create PlaceHolder Element.
Definition:
class.ilPCPlaceHolder.php:46
ilPCPlaceHolder\getContentClass
getContentClass()
Get Content Class.
Definition:
class.ilPCPlaceHolder.php:72
ilPCPlaceHolder\getClass
getClass()
Get characteristic of PlaceHolder.
Definition:
class.ilPCPlaceHolder.php:114
ilPageContent\setType
setType($a_type)
Set Type.
Definition:
class.ilPageContent.php:72
ilPCPlaceHolder\getLangVars
static getLangVars()
Get lang vars needed for editing.
Definition:
class.ilPCPlaceHolder.php:123
ilPageContent
Class ilPageContent.
Definition:
class.ilPageContent.php:17
ilPCPlaceHolder\init
init()
Init page content component.
Definition:
class.ilPCPlaceHolder.php:28
ilPCPlaceHolder\setContentClass
setContentClass($a_class)
Set Content Class.
Definition:
class.ilPCPlaceHolder.php:59
ilPCPlaceHolder\$content_class
$content_class
Definition:
class.ilPCPlaceHolder.php:22
ilPCPlaceHolder\getHeight
getHeight()
Get Height.
Definition:
class.ilPCPlaceHolder.php:100
IL_INSERT_AFTER
const IL_INSERT_AFTER
Definition:
class.ilPageObject.php:5
ilPageContent\createPageContentNode
createPageContentNode($a_set_this_node=true)
Create page content node (always use this method first when adding a new element) ...
Definition:
class.ilPageContent.php:358
ilPCPlaceHolder
Class ilPlaceHolder.
Definition:
class.ilPCPlaceHolder.php:17
ilPCPlaceHolder\setHeight
setHeight($a_height)
Set Height.
Definition:
class.ilPCPlaceHolder.php:86
ilPCPlaceHolder\$height
$height
Definition:
class.ilPCPlaceHolder.php:23
Services
COPage
classes
class.ilPCPlaceHolder.php
Generated on Mon Apr 14 2025 19:00:43 for ILIAS by
1.8.13 (using
Doxyfile
)