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;
139 $this->hier_id = $a_hier_id;
156 return $this->node->get_attribute(
"HierId");
166 if (is_object($this->node))
168 return $this->node->get_attribute(
"HierId");
179 $this->pcid = $a_pcid;
200 if (is_object($this->node))
202 return $this->node->get_attribute(
"PCID");
211 if (is_object($this->node))
213 $this->node->set_attribute(
"PCID", $a_pc_id);
226 $id = explode(
"_", $ed_id);
227 $id[count($id) - 1]++;
229 return implode($id,
"_");
241 $id = explode(
"_", $ed_id);
242 $id[count($id) - 1]--;
244 return implode($id,
"_");
257 $id1 = explode(
"_", $ed_id1);
258 $id2 = explode(
"_", $ed_id1);
259 if(count($id1) == count($id2))
263 foreach ($id1 as $key => $id)
265 if($id != $id2[$key])
280 uasort($a_array, array(
"ilPageContent",
"isGreaterHierId"));
290 $a_arr = explode(
"_", $a);
291 $b_arr = explode(
"_", $b);
292 for ($i = 0; $i < count($a_arr); $i++)
294 if ((
int) $a_arr[$i] > (int) $b_arr[$i])
298 else if ((
int) $a_arr[$i] < (int) $b_arr[$i])
314 if (is_object($this->node))
316 $this->node->set_attribute(
"Enabled", $value);
343 if (is_object($this->node) && $this->node->has_attribute(
"Enabled"))
345 $compare = $this->node->get_attribute(
"Enabled");
352 return strcasecmp($compare,
"true") == 0;
360 $node = $this->dom->create_element(
"PageContent");
361 if ($a_set_this_node)