From c0bf5a544f01ed6f66d0c685a3b902e42cc01f9c Mon Sep 17 00:00:00 2001 From: paolo Date: Wed, 13 Jul 2016 10:13:19 +0200 Subject: [PATCH] Added method postDelReihungstest() to controller Prestudent --- .../controllers/api/v1/crm/Prestudent.php | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/application/controllers/api/v1/crm/Prestudent.php b/application/controllers/api/v1/crm/Prestudent.php index 7ea27576f..e067a3894 100644 --- a/application/controllers/api/v1/crm/Prestudent.php +++ b/application/controllers/api/v1/crm/Prestudent.php @@ -142,6 +142,27 @@ class Prestudent extends APIv1_Controller } } + /** + * @return void + */ + public function postDelReihungstest() + { + $ddReihungstest = $this->_parseData($this->post()); + + if ($this->_validateAddReihungstest($ddReihungstest)) + { + $this->load->model('crm/RtPerson_model', 'RtPersonModel'); + + $result = $this->RtPersonModel->delete(array($ddReihungstest['person_id'], $ddReihungstest['rt_id']), $ddReihungstest); + + $this->response($result, REST_Controller::HTTP_OK); + } + else + { + $this->response(); + } + } + private function _validate($prestudent = NULL) { return true;