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