36 die (
"Error: ilPageContent::init() did not set type");
44 abstract function init();
53 $this->type = $a_type;
73 $this->node =& $a_node;
95 $this->hier_id = $a_hier_id;
112 return $this->node->get_attribute(
"HierId");
122 if (is_object($this->node))
124 return $this->node->get_attribute(
"HierId");
135 $this->pcid = $a_pcid;
156 if (is_object($this->node))
158 return $this->node->get_attribute(
"PCID");
171 $id = explode(
"_", $ed_id);
172 $id[count($id) - 1]++;
174 return implode($id,
"_");
186 $id = explode(
"_", $ed_id);
187 $id[count($id) - 1]--;
189 return implode($id,
"_");
202 $id1 = explode(
"_", $ed_id1);
203 $id2 = explode(
"_", $ed_id1);
204 if(count($id1) == count($id2))
208 foreach ($id1 as $key => $id)
210 if($id != $id2[$key])
225 uasort($a_array, array(
"ilPageContent",
"isGreaterHierId"));
235 $a_arr = explode(
"_", $a);
236 $b_arr = explode(
"_", $b);
237 for ($i = 0; $i < count($a_arr); $i++)
239 if ((
int) $a_arr[$i] > (int) $b_arr[$i])
243 else if ((
int) $a_arr[$i] < (int) $b_arr[$i])
259 if (is_object($this->node))
261 $this->node->set_attribute(
"Enabled", $value);
288 if (is_object($this->node) && $this->node->has_attribute(
"Enabled"))
290 $compare = $this->node->get_attribute(
"Enabled");
297 return strcasecmp($compare,
"true") == 0;
305 $node = $this->dom->create_element(
"PageContent");
306 if ($a_set_this_node)