5 require_once(
"./Services/COPage/classes/class.ilPageContent.php");
41 $this->ctrl = $DIC->ctrl();
42 $this->lng = $DIC->language();
52 parent::setNode($a_node);
53 $this->q_node = $a_node->first_child();
59 public function create(&$a_pg_obj, $a_hier_id, $a_pc_id =
"")
63 $this->q_node = $this->dom->create_element(
"PlaceHolder");
64 $this->q_node = $this->node->append_child($this->q_node);
74 if (is_object($this->q_node)) {
75 $this->q_node->set_attribute(
"ContentClass", $a_class);
86 if (is_object($this->q_node)) {
87 return $this->q_node->get_attribute(
"ContentClass", $a_class);
99 if (is_object($this->q_node)) {
100 $this->q_node->set_attribute(
"Height", $a_height);
112 if (is_object($this->q_node)) {
113 return $this->q_node->get_attribute(
"Height", $a_class);
134 return array(
"question_placeh",
"media_placeh",
"text_placeh",
135 "ed_insert_plach",
"question_placehl",
"media_placehl",
"text_placehl",
136 "verification_placeh",
"verification_placehl");
153 $start = strpos($a_html,
"{{{{{PlaceHolder#");
154 if (is_int($start)) {
155 $end = strpos($a_html,
"}}}}}", $start);
159 $param = substr($a_html, $start + 17, $end - $start - 17);
165 $html =
$lng->txt(
"cont_text_placeh");
169 $html =
$lng->txt(
"cont_media_placeh");
173 $html =
$lng->txt(
"cont_question_placeh");
177 $html =
$lng->txt(
"cont_verification_placeh");
181 $h2 = substr($a_html, 0, $start) .
183 substr($a_html, $end + 5);
187 $start = strpos($a_html,
"{{{{{PlaceHolder#", $start + 5);
189 if (is_int($start)) {
190 $end = strpos($a_html,
"}}}}}", $start);
201 $model = new \stdClass();
static getPlaceHolderStylePath()
get placeholder style path (for Page Layouts)
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.
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) ...
getCssFiles($a_mode)
Get css files.
create(&$a_pg_obj, $a_hier_id, $a_pc_id="")
Create PlaceHolder Element.
modifyPageContentPostXsl($a_html, $a_mode, $a_abstract_only=false)
setHeight($a_height)
Set Height.