4 require_once(
"./Services/COPage/classes/class.ilPageContent.php");
33 parent::setNode($a_node);
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");
setStartValue($a_val)
Set start value.
setListType($a_val)
Set list type.
getOrderType()
Set order type.
setType($a_type)
Set Type.
addItems($a_nr)
Add a number of items to list.
getListType()
Get list type.
setStyleClass($a_val)
Set style class.
getNumberingType()
Get numbering type.
Create styles array
The data for the language used.
createPageContentNode($a_set_this_node=true)
Create page content node (always use this method first when adding a new element) ...
create(&$a_pg_obj, $a_hier_id, $a_pc_id="")
Create new list.
setNumberingType($a_val)
Set numbering type.
getStartValue()
Get start value.
init()
Init page content component.
setNode($a_node)
Set pc node.
getStyleClass()
Get style class.