mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 20:29:29 +00:00
21 lines
489 B
PHP
21 lines
489 B
PHP
<?php
|
|
class Person_model extends CI_Model
|
|
{
|
|
public function __construct()
|
|
{
|
|
$this->load->database();
|
|
}
|
|
|
|
public function get_personen($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();
|
|
}
|
|
}
|