mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-02 04:39:28 +00:00
29 lines
476 B
PHP
29 lines
476 B
PHP
<?php
|
|
class Firma_model extends DB_Model
|
|
{
|
|
|
|
/**
|
|
* Constructor
|
|
*/
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
$this->dbTable = 'public.tbl_firma';
|
|
$this->pk = 'firma_id';
|
|
}
|
|
|
|
public function searchFirmen($filter)
|
|
{
|
|
$filter = strtoLower($filter);
|
|
$qry = "
|
|
SELECT
|
|
f.name, f.firma_id
|
|
FROM
|
|
public.tbl_firma f
|
|
WHERE
|
|
lower (f.name) LIKE '%". $this->db->escape_like_str($filter)."%'";
|
|
|
|
return $this->execQuery($qry);
|
|
}
|
|
}
|