Files
FHC-Core/application/models/system/Vorlage_model.php
T
bison-paolo 8e0ca12deb - All permission functionalities now are in the library PermissionLib
- 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
2016-10-13 17:53:12 +02:00

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());
}
}