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;
132 return $this->node->get_attribute(
"HierId");
142 if (is_object($this->node))
144 return $this->node->get_attribute(
"HierId");
155 $this->pcid = $a_pcid;
176 if (is_object($this->node))
178 return $this->node->get_attribute(
"PCID");
191 $id = explode(
"_", $ed_id);
192 $id[count($id) - 1]++;
194 return implode($id,
"_");
206 $id = explode(
"_", $ed_id);
207 $id[count($id) - 1]--;
209 return implode($id,
"_");
222 $id1 = explode(
"_", $ed_id1);
223 $id2 = explode(
"_", $ed_id1);
224 if(count($id1) == count($id2))
228 foreach ($id1 as
$key => $id)
230 if($id != $id2[
$key])
245 uasort($a_array, array(
"ilPageContent",
"isGreaterHierId"));
255 $a_arr = explode(
"_", $a);
256 $b_arr = explode(
"_", $b);
257 for ($i = 0; $i < count($a_arr); $i++)
259 if ((
int) $a_arr[$i] > (int) $b_arr[$i])
263 else if ((
int) $a_arr[$i] < (int) $b_arr[$i])
279 if (is_object($this->node))
281 $this->node->set_attribute(
"Enabled", $value);
308 if (is_object($this->node) && $this->node->has_attribute(
"Enabled"))
310 $compare = $this->node->get_attribute(
"Enabled");
317 return strcasecmp($compare,
"true") == 0;
325 $node = $this->dom->create_element(
"PageContent");
326 if ($a_set_this_node)