33 $this->dom = $a_pg_obj->getDom();
37 die (
"Error: ilPageContent::init() did not set type");
48 $this->pg_obj = $a_val;
65 abstract function init();
74 $this->type = $a_type;
94 $this->node =& $a_node;
131 $this->hier_id = $a_hier_id;
148 return $this->node->get_attribute(
"HierId");
158 if (is_object($this->node))
160 return $this->node->get_attribute(
"HierId");
171 $this->pcid = $a_pcid;
192 if (is_object($this->node))
194 return $this->node->get_attribute(
"PCID");
203 if (is_object($this->node))
205 $this->node->set_attribute(
"PCID", $a_pc_id);
218 $id = explode(
"_", $ed_id);
219 $id[count($id) - 1]++;
221 return implode($id,
"_");
233 $id = explode(
"_", $ed_id);
234 $id[count($id) - 1]--;
236 return implode($id,
"_");
249 $id1 = explode(
"_", $ed_id1);
250 $id2 = explode(
"_", $ed_id1);
251 if(count($id1) == count($id2))
255 foreach ($id1 as $key => $id)
257 if($id != $id2[$key])
272 uasort($a_array, array(
"ilPageContent",
"isGreaterHierId"));
282 $a_arr = explode(
"_", $a);
283 $b_arr = explode(
"_", $b);
284 for ($i = 0; $i < count($a_arr); $i++)
286 if ((
int) $a_arr[$i] > (int) $b_arr[$i])
290 else if ((
int) $a_arr[$i] < (int) $b_arr[$i])
306 if (is_object($this->node))
308 $this->node->set_attribute(
"Enabled", $value);
335 if (is_object($this->node) && $this->node->has_attribute(
"Enabled"))
337 $compare = $this->node->get_attribute(
"Enabled");
344 return strcasecmp($compare,
"true") == 0;
352 $node = $this->dom->create_element(
"PageContent");
353 if ($a_set_this_node)