function setList($data)
 {
     if (gettype($data) != 'array') {
         $this->error = translateFN("Il formato dei dati non è valido");
     } else {
         $str = $this->start_tag;
         foreach ($data as $riga) {
             if (is_array($riga)) {
                 $lObj = new Ilist();
                 $lObj->initList($this->ordered, $this->type, $this->startvalue);
                 $lObj->setList($riga);
                 $str .= $lObj->getList();
             } else {
                 if ($this->type) {
                     $str .= "<li class=\"" . $this->style . "_li\" type=" . $this->type . ">{$riga}</li>\n";
                 } else {
                     $str .= "<li>{$riga}</li>\n";
                 }
             }
         }
         $str .= $this->end_tag;
         $this->data = $str;
     }
 }
 function tabled_forum_explode_nodesFN($depth, $id_parent, $id_profile, $order, $id_student, $mode = 'standard')
 {
     // returns an html list
     $lObj = new Ilist();
     if ($order == 'chrono') {
         $data = $this->forum_explode_nodes_iterativeFN($depth, $id_parent, $id_profile, $order, $id_student, $mode);
         $lObj->initList('1', '1', 1);
     } else {
         // = 'struct'
         $data = $this->forum_explode_nodesFN($depth, $id_parent, $id_profile, $order, $id_student, $mode);
         $lObj->initList(0, '', 1);
     }
     $lObj->setList($data);
     $tabled_index = $lObj->getList();
     return $tabled_index;
 }