本文整理匯總了PHP中PersonPeer::getPager方法的典型用法代碼示例。如果您正苦於以下問題:PHP PersonPeer::getPager方法的具體用法?PHP PersonPeer::getPager怎麽用?PHP PersonPeer::getPager使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類PersonPeer
的用法示例。
在下文中一共展示了PersonPeer::getPager方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: executeSubscribe
public function executeSubscribe(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');
}
# for navigation menu
sfContext::getInstance()->getConfiguration()->loadHelpers('Partial');
slot('nav_menu', array('mission_coord', ''));
$this->email_list = EmailListPeer::retrieveByPK($request->getParameter('id'));
$this->forward404Unless($this->email_list);
# filter
$this->processFilter($request);
$this->pager = PersonPeer::getPager($this->max, $this->page, $this->firstname, $this->lastname, $this->gender, $this->city, $this->state, $this->country, $this->county, $this->deceased, $this->deceased_until, $this->deceased_after, $this->email_list->getId());
$this->persons = $this->pager->getResults();
$this->date_widget = new widgetFormDate(array('format_date' => array('js' => 'mm/dd/yy', 'php' => 'm/d/Y')), array('class' => 'text'));
}