本文整理汇总了PHP中PersonPeer::getNotInRequester方法的典型用法代码示例。如果您正苦于以下问题:PHP PersonPeer::getNotInRequester方法的具体用法?PHP PersonPeer::getNotInRequester怎么用?PHP PersonPeer::getNotInRequester使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PersonPeer
的用法示例。
在下文中一共展示了PersonPeer::getNotInRequester方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: configure
public function configure()
{
unset($this['id'], $this['person_id'], $this['passenger_type_id'], $this['parent'], $this['date_of_birth'], $this['weight'], $this['illness'], $this['passenger_illness_category_id'], $this['language_spoken'], $this['best_contact_method'], $this['financial'], $this['public_considerations'], $this['private_considerations'], $this['ground_transportation_comment'], $this['travel_history_notes'], $this['releasing_physician'], $this['releasing_phone'], $this['releasing_fax1'], $this['releasing_fax1_comment'], $this['releasing_email'], $this['need_medical_release'], $this['medical_release_requested'], $this['medical_release_received'], $this['treating_physician'], $this['treating_phone'], $this['treating_fax1'], $this['treating_fax1_comment'], $this['treating_email'], $this['camp_passenger_list'], $this['camp_pilot_passenger_list']);
$requesters = PersonPeer::getNotInRequester();
$phone_options = array('mask' => '(999) 999-9999', 'ok_class' => 'field_ok', 'holder_class' => 'field_hold');
# Fields
$this->widgetSchema['lodging_name'] = new sfWidgetFormInput(array(), array('class' => 'text'));
$this->widgetSchema['lodging_phone'] = new widgetFormInputPhone($phone_options, array('class' => 'text narrow'));
$this->widgetSchema['lodging_phone_comment'] = new sfWidgetFormTextarea(array(), array('class' => 'text class'));
$this->widgetSchema['facility_name'] = new sfWidgetFormInput(array(), array('class' => 'text'));
$this->widgetSchema['facility_phone'] = new widgetFormInputPhone($phone_options, array('class' => 'text narrow'));
$this->widgetSchema['facility_phone_comment'] = new sfWidgetFormTextarea(array(), array('class' => 'text class'));
$this->widgetSchema['requester_id'] = new sfWidgetFormChoice(array('choices' => $requesters), array('class' => 'text'));
$this->widgetSchema['emergency_contact_name'] = new sfWidgetFormInput(array(), array('class' => 'text'));
$this->widgetSchema['emergency_contact_primary_phone'] = new widgetFormInputPhone($phone_options, array('class' => 'text narrow'));
$this->widgetSchema['emergency_contact_primary_comment'] = new sfWidgetFormTextarea(array(), array('class' => 'text class'));
$this->widgetSchema['emergency_contact_secondary_phone'] = new widgetFormInputPhone($phone_options, array('class' => 'text narrow'));
$this->widgetSchema['emergency_contact_secondary_comment'] = new sfWidgetFormTextarea(array(), array('class' => 'text class'));
# Labels
$this->widgetSchema->setLabels(array('lodging_name' => 'Name'));
$this->widgetSchema->setLabels(array('lodging_phone' => 'Phone'));
$this->widgetSchema->setLabels(array('lodging_phone_comment' => 'Phone Comment'));
$this->widgetSchema->setLabels(array('facility_name' => 'Name'));
$this->widgetSchema->setLabels(array('facility_phone' => 'Phone'));
$this->widgetSchema->setLabels(array('facility_phone_comment' => 'Phone Comment'));
$this->widgetSchema->setLabels(array('requester_id' => 'Requester'));
$this->widgetSchema->setLabels(array('emergency_contact_name' => 'Emergency Contact Name'));
$this->widgetSchema->setLabels(array('emergency_contact_primary_phone' => 'Primary Phone'));
$this->widgetSchema->setLabels(array('emergency_contact_primary_comment' => 'Comment'));
$this->widgetSchema->setLabels(array('emergency_contact_secondary_phone' => 'Secondary Phone'));
$this->widgetSchema->setLabels(array('emergency_contact_secondary_comment' => 'Comment'));
$this->widgetSchema->setLabels(array('facility_city' => 'Destination City'));
$this->widgetSchema->setLabels(array('facility_state' => 'Destination State'));
# Validation
$this->validatorSchema['lodging_name'] = new sfValidatorString(array('required' => false));
$this->validatorSchema['lodging_phone'] = new sfValidatorString(array('required' => false));
$this->validatorSchema['facility_name'] = new sfValidatorString(array('required' => false));
$this->validatorSchema['facility_phone'] = new sfValidatorString(array('required' => false));
$this->validatorSchema['facility_phone_comment'] = new sfValidatorString(array('required' => false));
$this->validatorSchema['requester_id'] = new sfValidatorInteger(array('required' => false));
$this->validatorSchema['emergency_contact_name'] = new sfValidatorString(array('required' => false));
$this->validatorSchema['emergency_contact_primary_phone'] = new sfValidatorString(array('required' => false));
$this->validatorSchema['emergency_contact_primary_comment'] = new sfValidatorString(array('required' => false));
$this->validatorSchema['emergency_contact_secondary_phone'] = new sfValidatorString(array('required' => false));
$this->validatorSchema['emergency_contact_secondary_comment'] = new sfValidatorString(array('required' => false));
# Descriptive message
#help
$this->widgetSchema->setHelp('weight', 'lbs.');
$this->widgetSchema->setNameFormat('pass3[%s]');
$this->disableCSRFProtection();
}
示例2: executeUpdate
//.........这里部分代码省略.........
$this->requester_a .= ', ' . $requester->getAgency()->getName();
}
if ($requester->getTitle()) {
$this->requester_a .= ', ' . $requester->getTitle();
}
}
}
}
$this->form = new ItineraryForm($itine);
$this->missionform1 = new MissionSmallForm($mis);
$this->missionform2 = new MissionSmallForm($mis2);
//$this->formI = new PassengerItiForm($passIti);
$facandlod = new PassengerDest();
$this->form6 = new PassengerDestForm($facandlod);
$passenger = new Passenger();
$this->passenger = $passenger;
//passengers,requester uses when edit
$c = new Criteria();
$c->setLimit(50);
$this->all_passengers = PassengerPeer::doSelect($c);
$this->all_requesters = RequesterPeer::doSelect($c);
//Passenger Form1
$this->form1 = new PassengerPopUpForm1($passenger);
$this->sub_title = 'Add New Passenger';
//Passenger Form 2
$this->form2 = new PassengerPopUpForm2();
//Passenger Form 3
$this->form3 = new PassengerPopUpForm3();
//Passenger Form 4
$this->form4 = new PassengerPopUpForm4();
//Passenger Form 5
$this->form5 = new PassengerPopUpForm5();
//Requester PopUp Form - Not Requester Passenger
$this->persons = PersonPeer::getNotInRequester();
$requester = new Requester();
$this->form_req = new RequesterForm($requester);
$companion = new Companion();
$this->form_com = new CompanionForm($companion);
$this->req_referer = $request->getReferer();
$this->states = sfConfig::get('app_states');
$this->errors = array();
if ($request->isMethod('post')) {
$this->form->bind($request->getParameter('itine'));
$this->referer = $request->getReferer();
$k = $this->form->isValid();
if ($k && $request->getParameter('passenger_id') && $request->getParameter('requester_id')) {
$itine->setPassengerId($request->getParameter('passenger_id'));
$itine->setRequesterId($request->getParameter('requester_id'));
$itine->setDateRequested($this->form->getValue('date_requested'));
$itine->setMissionTypeId($this->form->getValue('mission_type_id'));
$itine->setApointTime($this->form->getValue('apoint_time'));
if ($request->getParameter('facility')) {
$itine->setFacility($request->getParameter('facility'));
}
if ($request->getParameter('lodging')) {
$itine->setLodging($request->getParameter('lodging'));
}
if ($request->getParameter('hour') && $request->getParameter('minut') && $request->getParameter('hour') != '---' && $request->getParameter('minut') != '---') {
$itine->setPointTime($request->getParameter('hour') . ':' . $request->getParameter('minut') . ':00');
$itine->setTimetype($this->form->getValue('timetype'));
}
$passengerItine = PassengerPeer::retrieveByPK($request->getParameter('passenger_id'));
if ($passengerItine instanceof Passenger) {
$personpasItine = $passengerItine->getPerson();
$origin_city = $personpasItine->getCity();
$origin_state = $personpasItine->getState();