/** * Searches for pilot * CODE: pilot_index */ public function executeIndex(sfWebRequest $request) { # security if (!$this->getUser()->hasCredential(array('Administrator', 'Staff', 'Pilot', 'Coordinator', 'Volunteer'), false)) { $this->getUser()->setFlash("warning", 'You don\'t have permission to access this url ' . $request->getReferer()); $this->redirect('dashboard/index'); } $this->getUser()->addRecentItem('Pilot', 'pilot', 'pilot/index'); # for navigation menu sfContext::getInstance()->getConfiguration()->loadHelpers('Partial'); slot('nav_menu', array('mission_coord', '')); # filter $this->processFilter($request); if ($request->isMethod('post') || $request->getParameter('page')) { $this->pager = PilotPeer::getPager($this->max, $this->page, $this->firstname, $this->lastname, $this->city, $this->state, $this->wing_name, $this->flight_status, $this->available, $this->identifier, $this->ifr_rated, $this->n_number, $this->make, $this->model, $this->hseat_status, $this->transplant); $this->pilots = $this->pager->getResults(); } }