Example #1
0
 public function getDateSortedJobs()
 {
     $output = '';
     $request = Controller::curr()->getRequest();
     $foundation = $request->requestVar('foundation');
     $jobs = $this->repository->getDateSortedJobs($foundation);
     foreach ($jobs as $job) {
         $output .= $job->renderWith('JobHolder_job', ['FormattedMoreInfoLink' => $this->getViewInfoLink($job->MoreInfoLink)]);
     }
     return $output;
 }
Example #2
0
 /**
  * @return SS_HTTPResponse
  */
 public function getJobList()
 {
     try {
         $output = '';
         $foundation = $this->getRequest()->getVar('foundation');
         $jobs = $this->repository->getDateSortedJobs($foundation);
         foreach ($jobs as $job) {
             $output .= $job->renderWith('JobHolder_job');
         }
         return $output;
     } catch (NotFoundEntityException $ex1) {
         SS_Log::log($ex1, SS_Log::ERR);
         return $this->notFound($ex1->getMessage());
     } catch (Exception $ex) {
         SS_Log::log($ex, SS_Log::ERR);
         return $this->serverError();
     }
 }