示例#1
0
 public function executePhotoApproved(sfWebRequest $request)
 {
     #Security
     if (!$this->getUser()->hasCredential(array('Administrator', 'Staff'), false)) {
         $this->getUser()->setFlash("warning", 'You don\'t have permission to access this url ' . $request->getReferer());
         $this->redirect('dashboard/index');
     }
     $this->processFilter2($request);
     $this->pager = MissionPhotoPeer::getMissionPhotoApproved($this->max, $this->page, $this->sort_by, $this->pilot_name, $this->passenger_name);
     $this->mission_photo_approved = $this->pager->getResults();
 }