4 require_once(
"./Services/COPage/classes/class.ilPageContent.php");
34 $this->list_node =& $a_node->first_child();
40 function create(&$a_pg_obj, $a_hier_id, $a_pc_id =
"")
44 $this->list_node =& $this->dom->create_element(
"List");
45 $this->list_node =& $this->node->append_child($this->list_node);
53 for ($i=1; $i<=$a_nr; $i++)
55 $new_item =& $this->dom->create_element(
"ListItem");
56 $new_item =& $this->list_node->append_child($new_item);
92 if ($this->list_node->get_attribute(
"Type") ==
"Unordered")
97 $nt = $this->list_node->get_attribute(
"NumberingType");
119 if ($this->list_node->get_attribute(
"Type") ==
"Unordered")
133 $this->list_node->set_attribute(
"Type", $a_val);
141 $nt = $this->list_node->get_attribute(
"NumberingType");
167 $this->list_node->set_attribute(
"NumberingType", $a_val);
171 if ($this->list_node->has_attribute(
"NumberingType"))
173 $this->list_node->remove_attribute(
"NumberingType");
187 $this->list_node->set_attribute(
"StartValue", $a_val);
191 if ($this->list_node->has_attribute(
"StartValue"))
193 $this->list_node->remove_attribute(
"StartValue");
205 return $this->list_node->get_attribute(
"StartValue");
215 if (!in_array($a_val, array(
"",
"BulletedList",
"NumberedList")))
217 $this->list_node->set_attribute(
"Class", $a_val);
221 if ($this->list_node->has_attribute(
"Class"))
223 $this->list_node->remove_attribute(
"Class");
235 return $this->list_node->get_attribute(
"Class");