mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-21 08:52:21 +00:00
8e0ca12deb
- All return messages functions are in the message helper and it is loaded by the core classes - Added the missing constant FHC_NOPK - Updated all the interested classes with the new permission method - Updated all the interested classes with the new return message functions
26 lines
438 B
PHP
26 lines
438 B
PHP
<?php
|
|
class Vorlage_model extends DB_Model
|
|
{
|
|
|
|
/**
|
|
* Constructor
|
|
*/
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
$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 success($res);
|
|
else
|
|
return error($this->db->error());
|
|
}
|
|
}
|