- Added new method getAktenAccepted in the Akte controller

- Added new method getAktenAccepted in the Akte model
This commit is contained in:
bison-paolo
2016-10-11 13:16:18 +02:00
parent 0465c1639f
commit dfcb7ac2bd
2 changed files with 73 additions and 0 deletions
@@ -68,6 +68,26 @@ class Akte extends APIv1_Controller
$this->response();
}
}
/**
* @return void
*/
public function getAktenAccepted()
{
$person_id = $this->get('person_id');
$dokument_kurzbz = $this->get('dokument_kurzbz');
if (isset($person_id) && isset($dokument_kurzbz))
{
$result = $this->AkteModel->getAktenAccepted($person_id, $dokument_kurzbz);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
/**
* @return void