Added the method getOnlyKontaktByPersonID to controller Kontakt

This commit is contained in:
paolo
2016-06-15 11:30:22 +02:00
parent 28751df237
commit 149b04654a
@@ -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");