mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-17 20:19:28 +00:00
- Added method getOnlyKontakt to controller Kontakt
- Added method getAkten to the controller Akte
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user