4 require_once(
"./Services/COPage/classes/class.ilPageContent.php");
33 parent::setNode($a_node);
34 $this->list_node = $a_node->first_child();
40 public 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++) {
54 $new_item = $this->dom->create_element(
"ListItem");
55 $new_item = $this->list_node->append_child($new_item);
91 if ($this->list_node->get_attribute(
"Type") ==
"Unordered") {
95 $nt = $this->list_node->get_attribute(
"NumberingType");
116 if ($this->list_node->get_attribute(
"Type") ==
"Unordered") {
129 $this->list_node->set_attribute(
"Type", $a_val);
137 $nt = $this->list_node->get_attribute(
"NumberingType");
161 $this->list_node->set_attribute(
"NumberingType", $a_val);
163 if ($this->list_node->has_attribute(
"NumberingType")) {
164 $this->list_node->remove_attribute(
"NumberingType");
177 $this->list_node->set_attribute(
"StartValue", $a_val);
179 if ($this->list_node->has_attribute(
"StartValue")) {
180 $this->list_node->remove_attribute(
"StartValue");
192 return $this->list_node->get_attribute(
"StartValue");
202 if (!in_array($a_val,
array(
"",
"BulletedList",
"NumberedList"))) {
203 $this->list_node->set_attribute(
"Class", $a_val);
205 if ($this->list_node->has_attribute(
"Class")) {
206 $this->list_node->remove_attribute(
"Class");
218 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.