mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-26 09:04:28 +00:00
RESTv1
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
class Person_model extends DB_Model
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
public function getPersonen($person_id = FALSE)
|
||||
{
|
||||
if ($person_id === FALSE)
|
||||
{
|
||||
$query = $this->db->get_where('public.tbl_person', array('vorname' => 'Christian'));
|
||||
return $query->result_object();
|
||||
}
|
||||
|
||||
$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