- Added method getOnlyKontakt to controller Kontakt

- Added method getAkten to the controller Akte
This commit is contained in:
paolo
2016-06-14 15:26:51 +02:00
parent dfa5b0386d
commit 3df35d0ed5
2 changed files with 38 additions and 0 deletions
@@ -46,6 +46,28 @@ class Akte extends APIv1_Controller
$this->response();
}
}
/**
* @return void
*/
public function getAkten()
{
$person_id = $this->get('person_id');
$dokument_kurzbz = $this->get('dokument_kurzbz');
$stg_kz = $this->get('stg_kz');
$prestudent_id = $this->get('prestudent_id');
if (isset($person_id))
{
$result = $this->AkteModel->getAkten($person_id, $dokument_kurzbz, $stg_kz, $prestudent_id);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void
@@ -53,6 +53,22 @@ class Kontakt extends APIv1_Controller
}
}
public function getOnlyKontakt()
{
$kontakt_id = $this->get("kontakt_id");
if (isset($kontakt_id))
{
$result = $this->KontaktModel->loadWhere(array('kontakt_id' => $kontakt_id));
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
public function getKontaktByPersonID()
{
$person_id = $this->get("person_id");