ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
◀ ilDoc Overview
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\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:94
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
array
Create styles array
The data for the language used.
Definition:
40duplicateStyle.php:19
ilPCPlaceHolder\setNode
setNode($a_node)
Set node.
Definition:
class.ilPCPlaceHolder.php:37
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:440
ilPCPlaceHolder
Class ilPlaceHolder.
Definition:
class.ilPCPlaceHolder.php:17
php
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 Fri Jan 17 2025 19:01:10 for ILIAS by
1.8.13 (using
Doxyfile
)