public function getList() { if ($this->xml) { return $this->document->saveXML(); } else { $html = $this->document->saveHTML(); if ($this->includefiles) { $filelist = new FileList(array(), array('class' => 'type'), $this->parent, false); $html .= $filelist->getList(); } return $html; } }