56 die (
"Error: ilPageContent::init() did not set type");
64 abstract function init();
73 $this->type = $a_type;
93 $this->node =& $a_node;
115 $this->hier_id = $a_hier_id;
133 if (is_object($this->node))
135 return $this->node->get_attribute(
"HierId");
146 $this->pcid = $a_pcid;
167 if (is_object($this->node))
169 return $this->node->get_attribute(
"PCID");
182 $id = explode(
"_", $ed_id);
183 $id[count($id) - 1]++;
185 return implode($id,
"_");
197 $id = explode(
"_", $ed_id);
198 $id[count($id) - 1]--;
200 return implode($id,
"_");
213 $id1 = explode(
"_", $ed_id1);
214 $id2 = explode(
"_", $ed_id1);
215 if(count($id1) == count($id2))
219 foreach ($id1 as $key => $id)
221 if($id != $id2[$key])
239 if (is_object($this->node))
241 $this->node->set_attribute(
"Enabled", $value);
268 if (is_object($this->node) && $this->node->has_attribute(
"Enabled"))
270 $compare = $this->node->get_attribute(
"Enabled");
277 return strcasecmp($compare,
"true") == 0;
285 $node = $this->dom->create_element(
"PageContent");
286 if ($a_set_this_node)