/** * @return SS_HTTPResponse */ public function postJobRegistrationRequest() { $request_id = (int) $this->request->param('REQUEST_ID'); try { $this->manager->postJobRegistrationRequest($request_id, Director::absoluteURL('community/jobs/')); return $this->ok(); } catch (NotFoundEntityException $ex1) { SS_Log::log($ex1, SS_Log::ERR); return $this->notFound($ex1->getMessage()); } catch (EntityValidationException $ex2) { SS_Log::log($ex2, SS_Log::NOTICE); return $this->validationError($ex2->getMessages()); } catch (Exception $ex) { SS_Log::log($ex, SS_Log::ERR); return $this->serverError(); } }