mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-24 10:22:18 +00:00
Recover fhcdb_helper
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user