Recover fhcdb_helper

This commit is contained in:
Paminger
2016-06-16 11:40:49 +02:00
parent 3df35d0ed5
commit 9ed42794a7
10 changed files with 541 additions and 685 deletions
@@ -11,4 +11,15 @@ class Vorlage_model extends DB_Model
$this->dbTable = 'public.tbl_vorlage';
$this->pk = 'vorlage_kurzbz';
}
public function getMimeTypes()
{
$qry = 'SELECT DISTINCT mimetype FROM public.tbl_vorlage ORDER BY mimetype;';
if ($res = $this->db->query($qry))
return $this->_success($res);
else
return $this->_error($this->db->error());
}
}