4require_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");
 
An exception for terminatinating execution or to throw for unit testing.
setStyleClass($a_val)
Set style class.
getStartValue()
Get start value.
addItems($a_nr)
Add a number of items to list.
getStyleClass()
Get style class.
create(&$a_pg_obj, $a_hier_id, $a_pc_id="")
Create new list.
setNode($a_node)
Set pc node.
getListType()
Get list type.
getOrderType()
Set order type.
init()
Init page content component.
setStartValue($a_val)
Set start value.
getNumberingType()
Get numbering type.
setListType($a_val)
Set list type.
setNumberingType($a_val)
Set numbering type.
createPageContentNode($a_set_this_node=true)
Create page content node (always use this method first when adding a new element)
setType($a_type)
Set Type.