mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-24 02:12:17 +00:00
RESTv1
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
<?php
|
||||
class Person_model extends CI_Model
|
||||
class Person_model extends DB_Model
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
$this->load->database();
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
public function get_personen($person_id = FALSE)
|
||||
public function getPersonen($person_id = FALSE)
|
||||
{
|
||||
if ($person_id === FALSE)
|
||||
{
|
||||
@@ -17,4 +17,10 @@ class Person_model extends CI_Model
|
||||
$query = $this->db->get_where('public.tbl_person', array('person_id' => $person_id));
|
||||
return $query->row_object();
|
||||
}
|
||||
|
||||
public function getPersonByCode($code)
|
||||
{
|
||||
$query = $this->db->get_where('public.tbl_person', array('zugangscode' => $code));
|
||||
return $query->result_object();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user