This commit is contained in:
Paminger
2016-03-11 10:08:34 +01:00
parent 24756d9cf3
commit 19129266b2
19 changed files with 1153 additions and 12 deletions
@@ -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();
}
}