This commit is contained in:
Andreas Österreicher
2011-03-28 15:26:20 +00:00
parent a88bbcd4fd
commit 92ff395ac4
9 changed files with 603 additions and 33 deletions
+34
View File
@@ -73,5 +73,39 @@ class template extends basis_db
return false;
}
}
/**
* Laedt alle Templates
*/
public function getAll()
{
$qry = 'SELECT
*
FROM
campus.tbl_template
ORDER BY bezeichnung';
if($result = $this->db_query($qry))
{
while($row = $this->db_fetch_object($result))
{
$obj = new template();
$obj->template_kurzbz = $row->template_kurzbz;
$obj->bezeichnung = $row->bezeichnung;
$obj->xsd = $row->xsd;
$obj->xslt_xhtml = $row->xslt_xhtml;
$obj->xslfo_pdf = $row->xslfo_pdf;
$this->result[] = $obj;
}
return true;
}
else
{
$this->errormsg = 'Fehler beim Laden der Templates';
return false;
}
}
}
?>