mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-10 00:29:27 +00:00
26 lines
454 B
PHP
26 lines
454 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 $this->_success($res);
|
|
else
|
|
return $this->_error($this->db->error());
|
|
}
|
|
}
|