5 require_once(
"./Services/COPage/classes/class.ilPageContent.php");
42 $this->ctrl = $DIC->ctrl();
43 $this->lng = $DIC->language();
53 parent::setNode($a_node);
54 $this->q_node = $a_node->first_child();
60 public function create(&$a_pg_obj, $a_hier_id)
64 $this->q_node = $this->dom->create_element(
"PlaceHolder");
65 $this->q_node = $this->node->append_child($this->q_node);
75 if (is_object($this->q_node)) {
76 $this->q_node->set_attribute(
"ContentClass", $a_class);
87 if (is_object($this->q_node)) {
88 return $this->q_node->get_attribute(
"ContentClass", $a_class);
100 if (is_object($this->q_node)) {
101 $this->q_node->set_attribute(
"Height", $a_height);
113 if (is_object($this->q_node)) {
114 return $this->q_node->get_attribute(
"Height", $a_class);
135 return array(
"question_placeh",
"media_placeh",
"text_placeh",
136 "ed_insert_plach",
"question_placehl",
"media_placehl",
"text_placehl",
137 "verification_placeh",
"verification_placehl");
157 $start = strpos($a_html,
"{{{{{PlaceHolder#");
164 $param = explode(
"#", $param);
177 $html =
$lng->txt(
"cont_question_placeh");
181 $html =
$lng->txt(
"cont_verification_placeh");
185 $h2 = substr($a_html, 0,
$start) .
187 substr($a_html,
$end + 5);
191 $start = strpos($a_html,
"{{{{{PlaceHolder#",
$start + 5);
create(&$a_pg_obj, $a_hier_id)
Create PlaceHolder Element.
getContentClass()
Get Content Class.
getClass()
Get characteristic of PlaceHolder.
setType($a_type)
Set Type.
static getLangVars()
Get lang vars needed for editing.
init()
Init page content component.
setContentClass($a_class)
Set Content Class.
modifyPageContentPostXsl($a_html, $a_mode)
Modify page content after xsl.
setNode($a_node)
Set node.
createPageContentNode($a_set_this_node=true)
Create page content node (always use this method first when adding a new element) ...
setHeight($a_height)
Set Height.