Beispiel #1
0
 function getList($param)
 {
     $rl_xml = new xml(PATH_MODULE . __CLASS__ . '/form/rowlist.xml');
     if ($list_element = $rl_xml->de()) {
         $templates = $this->getTemplate();
         $rl = new rowlist($list_element, count($templates), param('page'));
         $headers = $rl->getHeaders();
         if (!$param['count']) {
             $list_elem = $rl->getRootElement();
             $list_elem->removeAttribute('add');
         }
         if ($templates) {
             foreach ($templates as $i => $template) {
                 if ($i >= $rl->getStartIndex() && $i <= $rl->getFinishIndex()) {
                     $rl->addRow($template->getAttribute('id'), array('id_template' => $template->getAttribute('id')));
                 }
             }
         }
         return $rl->getRootElement();
     }
 }