load->library('CallerLib'); } /** * Manages a HTTP get call */ public function getCall() { // Start me up! $result = $this->callerlib->callLibrary($this->get(), PermissionLib::SELECT_RIGHT); // Print the result $this->response($result, REST_Controller::HTTP_OK); } /** * @return void */ public function postCall() { // Start me up! $result = $this->callerlib->callLibrary($this->post(), PermissionLib::UPDATE_RIGHT); // Print the result $this->response($result, REST_Controller::HTTP_OK); } /** * @return void */ public function putCall() { // Start me up! $result = $this->callerlib->callLibrary($this->put(), PermissionLib::INSERT_RIGHT); // Print the result $this->response($result, REST_Controller::HTTP_OK); } /** * @return void */ public function deleteCall() { // Start me up! $result = $this->callerlib->callLibrary($this->delete(), PermissionLib::DELETE_RIGHT); // Print the result $this->response($result, REST_Controller::HTTP_OK); } }