mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-01 19:09:27 +00:00
Added the method getOnlyKontaktByPersonID to controller Kontakt
This commit is contained in:
@@ -93,6 +93,22 @@ class Kontakt extends APIv1_Controller
|
||||
}
|
||||
}
|
||||
|
||||
public function getOnlyKontaktByPersonID()
|
||||
{
|
||||
$person_id = $this->get("person_id");
|
||||
|
||||
if (isset($person_id))
|
||||
{
|
||||
$result = $this->KontaktModel->loadWhere(array('person_id' => $person_id));
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
public function getKontaktByPersonIDKontaktTyp()
|
||||
{
|
||||
$person_id = $this->get("person_id");
|
||||
|
||||
Reference in New Issue
Block a user