mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-04 12:29:28 +00:00
35 lines
616 B
PHP
35 lines
616 B
PHP
<?php
|
|
|
|
class Vorlage_model extends DB_Model
|
|
{
|
|
/**
|
|
* Constructor
|
|
*/
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
$this->dbTable = 'public.tbl_vorlage';
|
|
$this->pk = 'vorlage_kurzbz';
|
|
}
|
|
|
|
/**
|
|
* Returns mime types
|
|
*/
|
|
public function getMimeTypes()
|
|
{
|
|
$query = 'SELECT DISTINCT mimetype FROM public.tbl_vorlage ORDER BY mimetype';
|
|
|
|
return $this->execQuery($query);
|
|
}
|
|
|
|
/**
|
|
* Returns all Vorlagen for archive
|
|
*/
|
|
public function getArchivVorlagen()
|
|
{
|
|
$query ="SELECT * FROM public.tbl_vorlage WHERE archivierbar=true ORDER BY bezeichnung";
|
|
|
|
return $this->execQuery($query);
|
|
}
|
|
}
|