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");
167 if (is_object($this->node))
169 $this->node->set_attribute(
"PCID", $a_pc_id);
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])
236 uasort($a_array, array(
"ilPageContent",
"isGreaterHierId"));
246 $a_arr = explode(
"_", $a);
247 $b_arr = explode(
"_", $b);
248 for ($i = 0; $i < count($a_arr); $i++)
250 if ((
int) $a_arr[$i] > (int) $b_arr[$i])
254 else if ((
int) $a_arr[$i] < (int) $b_arr[$i])
270 if (is_object($this->node))
272 $this->node->set_attribute(
"Enabled", $value);
299 if (is_object($this->node) && $this->node->has_attribute(
"Enabled"))
301 $compare = $this->node->get_attribute(
"Enabled");
308 return strcasecmp($compare,
"true") == 0;
316 $node = $this->dom->create_element(
"PageContent");
317 if ($a_set_this_node)