mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 20:29:29 +00:00
31 lines
531 B
PHP
31 lines
531 B
PHP
<?php
|
|
class Abschluss_model extends DB_Model
|
|
{
|
|
|
|
/**
|
|
* Constructor
|
|
*/
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
$this->dbTable = 'bis.tbl_abschluss';
|
|
$this->pk = 'ausbildung_code';
|
|
}
|
|
|
|
public function getActiveAbschluesse($languageIndex)
|
|
{
|
|
return $this->execQuery(
|
|
'
|
|
SELECT
|
|
ausbildung_code, bezeichnung[?], in_oesterreich
|
|
FROM
|
|
bis.tbl_abschluss
|
|
WHERE
|
|
aktiv
|
|
ORDER BY
|
|
CASE WHEN in_oesterreich THEN 0 ELSE 1 END, ausbildung_code',
|
|
array($languageIndex)
|
|
);
|
|
}
|
|
}
|