当前位置: 首页>>代码示例>>PHP>>正文


PHP PersonPeer::getNotInPassenger方法代码示例

本文整理汇总了PHP中PersonPeer::getNotInPassenger方法的典型用法代码示例。如果您正苦于以下问题:PHP PersonPeer::getNotInPassenger方法的具体用法?PHP PersonPeer::getNotInPassenger怎么用?PHP PersonPeer::getNotInPassenger使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在PersonPeer的用法示例。


在下文中一共展示了PersonPeer::getNotInPassenger方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: configure

 public function configure()
 {
     unset($this['id'], $this['releasing_physician'], $this['releasing_phone'], $this['releasing_fax1'], $this['releasing_fax1_comment'], $this['releasing_email'], $this['medical_release_requested'], $this['medical_release_received'], $this['treating_physician'], $this['treating_phone'], $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['lodging_name'], $this['lodging_phone'], $this['lodging_phone_comment'], $this['facility_phone'], $this['facility_phone_comment'], $this['emergency_contact_name'], $this['emergency_contact_primary_phone'], $this['emergency_contact_primary_comment'], $this['emergency_contact_secondary_phone'], $this['emergency_contact_secondary_comment'], $this['requester_id'], $this['facility_name'], $this['camp_passenger_list'], $this['camp_pilot_passenger_list']);
     $pass_types = PassengerTypePeer::getForSelectParent();
     $persons = PersonPeer::getNotInPassenger();
     # Fields
     $this->widgetSchema['ground_transportation_comment'] = new sfWidgetFormTextarea(array());
     $this->widgetSchema['travel_history_notes'] = new sfWidgetFormTextarea(array());
     $this->widgetSchema['need_medical_release'] = new sfWidgetFormChoice(array('choices' => array('1' => 'yes', '0' => 'no'), 'expanded' => false));
     $this->widgetSchema['treating_fax1'] = new sfWidgetFormInput(array(), array('class' => 'text'));
     $this->widgetSchema['treating_fax1_comment'] = new sfWidgetFormInput(array(), array('class' => 'text'));
     $this->widgetSchema['treating_email'] = new sfWidgetFormInput(array(), array('class' => 'text'));
     # Labels
     $this->widgetSchema->setLabels(array('ground_transportation_comment' => 'Ground Transportation'));
     $this->widgetSchema->setLabels(array('travel_history_notes' => 'Travel History Notes'));
     $this->widgetSchema->setLabels(array('need_medical_release' => 'Med Release Required'));
     $this->widgetSchema->setLabels(array('treating_fax1' => 'Fax Number'));
     $this->widgetSchema->setLabels(array('treating_fax1_comment' => 'Comment'));
     $this->widgetSchema->setLabels(array('treating_email' => 'Email'));
     # Validation
     $this->validatorSchema['ground_transportation_comment'] = new sfValidatorString(array('required' => false));
     $this->validatorSchema['travel_history_notes'] = new sfValidatorString(array('required' => false));
     $this->validatorSchema['need_medical_release'] = new sfValidatorInteger(array('required' => false));
     $this->validatorSchema['treating_fax1'] = new sfValidatorString(array('required' => false));
     $this->validatorSchema['treating_fax1_comment'] = new sfValidatorString(array('required' => false));
     $this->validatorSchema['treating_email'] = new sfValidatorEmail(array('required' => false), array('invalid' => 'Invalid email !'));
     # Descriptive message
     #help
     $this->widgetSchema->setHelp('weight', 'lbs.');
     $this->widgetSchema->setNameFormat('pass5_4[%s]');
 }
开发者ID:yasirgit,项目名称:afids,代码行数:31,代码来源:PassengerForm5_4.class.php

示例2: configure

 public function configure()
 {
     unset($this['id'], $this['person_id'], $this['camp_passenger_list'], $this['camp_pilot_passenger_list']);
     $pass_types = PassengerTypePeer::getForSelectParent();
     $persons = PersonPeer::getNotInPassenger();
     # Fields
     $this->widgetSchema['person_id'] = new sfWidgetFormChoice(array('choices' => $persons));
     $this->widgetSchema['passenger_type_id'] = new sfWidgetFormChoice(array('choices' => $pass_types));
     $this->widgetSchema['parent'] = new sfWidgetFormInput();
     $this->widgetSchema['date_of_birth'] = new sfWidgetFormInput();
     $this->widgetSchema['weight'] = new sfWidgetFormInput();
     $this->widgetSchema['illness'] = new sfWidgetFormInput();
     $this->widgetSchema['passenger_illness_category_id'] = new sfWidgetFormChoice(array('choices' => array('Command pilot' => 'Command pilot', 'Orientation Complete' => 'Orientation Complete', 'Verify Orientation' => 'Verify Orientation', 'Non-pilot' => 'Non-pilot', 'Ground Angel' => 'Ground Angel', 'Mission Assistant' => 'Mission Assistant'), 'expanded' => false));
     $this->widgetSchema['language_spoken'] = new sfWidgetFormInput();
     $this->widgetSchema['best_contact_method'] = new sfWidgetFormInput();
     $this->widgetSchema['financial'] = new sfWidgetFormTextarea(array(), array('size' => 80));
     $this->widgetSchema['public_considerations'] = new sfWidgetFormTextarea(array(), array('size' => 80));
     $this->widgetSchema['private_considerations'] = new sfWidgetFormTextarea(array(), array('size' => 80));
     $this->widgetSchema['ground_transportation_comment'] = new sfWidgetFormTextarea(array(), array('size' => 80));
     $this->widgetSchema['travel_history_notes'] = new sfWidgetFormTextarea(array(), array('size' => 80));
     $this->widgetSchema['releasing_physician'] = new sfWidgetFormInput();
     $this->widgetSchema['releasing_phone'] = new sfWidgetFormInput();
     $this->widgetSchema['releasing_fax1'] = new sfWidgetFormInput();
     $this->widgetSchema['releasing_fax1_comment'] = new sfWidgetFormInput();
     $this->widgetSchema['releasing_email'] = new sfWidgetFormInput();
     $this->widgetSchema['need_medical_release'] = new sfWidgetFormInputCheckbox();
     $this->widgetSchema['medical_release_requested'] = new sfWidgetFormInput();
     $this->widgetSchema['medical_release_received'] = new sfWidgetFormInput();
     $this->widgetSchema['treating_physician'] = new sfWidgetFormInput();
     $this->widgetSchema['treating_phone'] = new sfWidgetFormInput();
     $this->widgetSchema['treating_fax1'] = new sfWidgetFormInput();
     $this->widgetSchema['treating_fax1_comment'] = new sfWidgetFormInput();
     $this->widgetSchema['treating_email'] = new sfWidgetFormInput();
     $this->widgetSchema['lodging_name'] = new sfWidgetFormInput();
     $this->widgetSchema['lodging_phone'] = new sfWidgetFormInput();
     $this->widgetSchema['lodging_phone_comment'] = new sfWidgetFormInput();
     $this->widgetSchema['facility_phone'] = new sfWidgetFormInput();
     $this->widgetSchema['facility_city'] = new sfWidgetFormInput();
     $this->widgetSchema['facility_state'] = new sfWidgetFormInput();
     $this->widgetSchema['facility_phone_comment'] = new sfWidgetFormInput();
     $this->widgetSchema['emergency_contact_name'] = new sfWidgetFormInput();
     $this->widgetSchema['emergency_contact_primary_phone'] = new sfWidgetFormInput();
     $this->widgetSchema['emergency_contact_primary_comment'] = new sfWidgetFormInput();
     $this->widgetSchema['emergency_contact_secondary_phone'] = new sfWidgetFormInput();
     $this->widgetSchema['emergency_contact_secondary_comment'] = new sfWidgetFormInput();
     # Labels
     $this->widgetSchema->setLabels(array('person_id' => 'Person'));
     $this->widgetSchema->setLabels(array('passenger_type_id' => 'Passenger Type'));
     $this->widgetSchema->setLabels(array('parent' => 'Parent Name'));
     $this->widgetSchema->setLabels(array('date_of_birth' => 'Date of birth'));
     $this->widgetSchema->setLabels(array('weight' => 'Weight'));
     $this->widgetSchema->setLabels(array('illness' => 'Passenger Illness'));
     $this->widgetSchema->setLabels(array('passenger_illness_category_id' => 'Illness Category'));
     $this->widgetSchema->setLabels(array('language_spoken' => 'Language Spoken'));
     $this->widgetSchema->setLabels(array('best_contact_method' => 'Best Contacted By'));
     $this->widgetSchema->setLabels(array('financial' => 'Financial Information'));
     $this->widgetSchema->setLabels(array('public_considerations' => 'Public Considerations'));
     $this->widgetSchema->setLabels(array('private_considerations' => 'Private Considerations'));
     $this->widgetSchema->setLabels(array('ground_transportation_comment' => 'Ground Transportation'));
     $this->widgetSchema->setLabels(array('travel_history_notes' => 'Travel History Notes'));
     $this->widgetSchema->setLabels(array('releasing_physician' => 'Name'));
     $this->widgetSchema->setLabels(array('releasing_phone' => 'Phone'));
     $this->widgetSchema->setLabels(array('releasing_fax1' => 'Fax Number'));
     $this->widgetSchema->setLabels(array('releasing_fax1_comment' => 'Comment'));
     $this->widgetSchema->setLabels(array('releasing_email' => 'Email'));
     $this->widgetSchema->setLabels(array('need_medical_release' => 'Med Release Required'));
     $this->widgetSchema->setLabels(array('medical_release_requested' => 'Medical Release Requested'));
     $this->widgetSchema->setLabels(array('medical_release_received' => 'Medical Release Received'));
     $this->widgetSchema->setLabels(array('treating_physician' => 'Name'));
     $this->widgetSchema->setLabels(array('treating_phone' => 'Phone'));
     $this->widgetSchema->setLabels(array('treating_fax1' => 'Fax Number'));
     $this->widgetSchema->setLabels(array('treating_fax1_comment' => 'Comment'));
     $this->widgetSchema->setLabels(array('treating_email' => 'Email'));
     $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_city' => 'Destination City'));
     $this->widgetSchema->setLabels(array('facility_state' => 'Destination State'));
     $this->widgetSchema->setLabels(array('facility_phone' => 'Phone'));
     $this->widgetSchema->setLabels(array('facility_phone_comment' => 'Phone Comment'));
     $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'));
     # Validation
     $this->validatorSchema['person_id'] = new sfValidatorInteger(array('required' => true));
     $this->validatorSchema['passenger_type_id'] = new sfValidatorString(array('required' => false));
     $this->validatorSchema['parent'] = new sfValidatorString(array('required' => true), array('required' => 'Please confirm first name !.'));
     $this->validatorSchema['date_of_birth'] = new sfValidatorDate(array('max' => time(), 'required' => false), array('invalid' => 'Date of birth is invalid !.'));
     $this->validatorSchema['weight'] = new sfValidatorInteger(array('required' => false));
     $this->validatorSchema['illness'] = new sfValidatorString(array('required' => false));
     $this->validatorSchema['passenger_illness_category_id'] = new sfValidatorString(array('required' => false));
     $this->validatorSchema['language_spoken'] = new sfValidatorString(array('required' => false));
     $this->validatorSchema['best_contact_method'] = new sfValidatorString(array('required' => false));
     $this->validatorSchema['financial'] = new sfValidatorString(array('required' => false));
     $this->validatorSchema['public_considerations'] = new sfValidatorString(array('required' => false));
     $this->validatorSchema['private_considerations'] = new sfValidatorString(array('required' => false));
     $this->validatorSchema['ground_transportation_comment'] = new sfValidatorString(array('required' => false));
//.........这里部分代码省略.........
开发者ID:yasirgit,项目名称:afids,代码行数:101,代码来源:PassengerForm.class.php


注:本文中的PersonPeer::getNotInPassenger方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。