mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 20:29:29 +00:00
dabcf8188b
- Copied functionalities from old libraries to controllers - Ported old libraries to CI - Modified codeception
33 lines
799 B
PHP
33 lines
799 B
PHP
<?php
|
|
|
|
class Orgform_model extends DB_Model
|
|
{
|
|
/**
|
|
* Constructor
|
|
*/
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
$this->dbTable = 'bis.tbl_orgform';
|
|
$this->pk = 'orgform_kurzbz';
|
|
}
|
|
|
|
public function getOrgformLV()
|
|
{
|
|
// Checks if the operation is permitted by the API caller
|
|
if (! $this->fhc_db_acl->isBerechtigt($this->acl['bis.tbl_orgform'], 's'))
|
|
return $this->_error(lang('fhc_'.FHC_NORIGHT).' -> '.$this->acl['bis.tbl_orgform'], FHC_MODEL_ERROR);
|
|
|
|
$query = "SELECT *
|
|
FROM bis.tbl_orgform
|
|
WHERE orgform_kurzbz NOT IN ('VBB', 'ZGS')
|
|
ORDER BY orgform_kurzbz";
|
|
|
|
$result = $this->db->query($query);
|
|
|
|
if (is_object($result))
|
|
return $this->_success($result->result());
|
|
else
|
|
return $this->_error($this->db->error(), FHC_DB_ERROR);
|
|
}
|
|
} |