本文整理汇总了PHP中PersonPeer类的典型用法代码示例。如果您正苦于以下问题:PHP PersonPeer类的具体用法?PHP PersonPeer怎么用?PHP PersonPeer使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了PersonPeer类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: configureWidgets
public function configureWidgets()
{
$this->setWidget('student_id', new sfWidgetFormInputHidden());
$this->setWidget('school_year_id', new sfWidgetFormInputHidden());
$this->setWidget('request_date', new csWidgetFormDateInput());
$this->setWidget('resolution_date', new csWidgetFormDateInput());
$this->getWidget('disciplinary_sanction_type_id')->setOption('add_empty', true);
$this->getWidget('sanction_type_id')->setOption('add_empty', true);
$applicants_criteria = new Criteria();
PersonPeer::doSelectOrderedCriteria($applicants_criteria);
$results = array();
foreach (PersonalPeer::doSelect(new Criteria()) as $personal) {
$results[$personal->getPersonId()] = $personal->getPersonId();
}
foreach (TeacherPeer::doSelect(new Criteria()) as $teacher) {
$results[$teacher->getPersonId()] = $teacher->getPersonId();
}
$applicants_criteria->add(PersonPeer::ID, $results, Criteria::IN);
$this->getWidget('applicant_id')->setOption('criteria', $applicants_criteria);
$preceptors_criteria = new Criteria();
PersonPeer::doSelectOrderedCriteria($preceptors_criteria);
$preceptors_criteria->addJoin(PersonPeer::ID, PersonalPeer::PERSON_ID);
$this->getWidget('responsible_id')->setOption('criteria', $preceptors_criteria);
$this->setWidget('document', new sfWidgetFormInputFile());
if ($this->getObject()->getDocument()) {
$this->setWidget('current_document', new mtWidgetFormPartial(array('module' => 'student_disciplinary_sanction', 'partial' => 'downloable_document', 'form' => $this)));
$this->setWidget('delete_document', new sfWidgetFormInputCheckbox());
$this->getWidgetSchema()->moveField('delete_document', sfWidgetFormSchema::BEFORE, 'document');
$this->getWidgetSchema()->moveField('current_document', sfWidgetFormSchema::BEFORE, 'delete_document');
}
}
示例2: getPager
public static function getPager($max = 10, $page = 1, $date_req = null, $pass_name = null, $req_name = null, $pass_lname = null, $req_lname = null)
{
$c = new Criteria();
$c->addJoin(self::PASSENGER_ID, PassengerPeer::ID, Criteria::LEFT_JOIN);
$c->addJoin(self::REQUESTER_ID, RequesterPeer::ID, Criteria::LEFT_JOIN);
$c->addJoin(PassengerPeer::PERSON_ID, PersonPeer::alias('c1', PersonPeer::ID), Criteria::LEFT_JOIN);
$c->addJoin(RequesterPeer::PERSON_ID, PersonPeer::alias('c2', PersonPeer::ID), Criteria::LEFT_JOIN);
$c->addAlias('c1', PersonPeer::TABLE_NAME);
$c->addAlias('c2', PersonPeer::TABLE_NAME);
if ($date_req) {
$c->add(self::DATE_REQUESTED, '%' . date('Y-m-d', strtotime($date_req)) . '%', Criteria::LIKE);
}
if ($pass_name) {
$c->add(PersonPeer::alias("c1", PersonPeer::FIRST_NAME), $pass_name . '%', Criteria::LIKE);
}
if ($req_name) {
$c->add(PersonPeer::alias("c2", PersonPeer::FIRST_NAME), $req_name . '%', Criteria::LIKE);
}
if ($pass_lname) {
$c->add(PersonPeer::alias("c1", PersonPeer::LAST_NAME), $pass_lname . '%', Criteria::LIKE);
}
if ($req_lname) {
$c->add(PersonPeer::alias("c2", PersonPeer::LAST_NAME), $req_lname . '%', Criteria::LIKE);
}
$c->addAscendingOrderByColumn(self::DATE_REQUESTED);
$pager = new sfPropelPager('Itinerary', $max);
$pager->setCriteria($c);
$pager->setPage($page);
$pager->init();
return $pager;
}
示例3: 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]');
}
示例4: doSelectActive
/**
* Retrieves an array of active Personal and ordered by Lastname.
* @param Criteria $criteria
* @param PropelPDO $con
* @return <array> Personal[]
*/
public static function doSelectActive(Criteria $criteria, PropelPDO $con = null)
{
$criteria = PersonPeer::doSelectOrderedCriteria($criteria, $con);
$criteria->add(PersonPeer::IS_ACTIVE, true);
$criteria->addJoin(PersonPeer::ID, self::PERSON_ID);
return self::doSelect($criteria, $con);
}
示例5: findPk
/**
* Find object by primary key
* Use instance pooling to avoid a database query if the object exists
* <code>
* $obj = $c->findPk(12, $con);
* </code>
* @param mixed $key Primary key to use for the query
* @param PropelPDO $con an optional connection object
*
* @return Person|array|mixed the result, formatted by the current formatter
*/
public function findPk($key, $con = null)
{
if (null !== ($obj = PersonPeer::getInstanceFromPool((string) $key)) && $this->getFormatter()->isObjectFormatter()) {
// the object is alredy in the instance pool
return $obj;
} else {
// the object has not been requested yet, or the formatter is not an object formatter
$criteria = $this->isKeepQuery() ? clone $this : $this;
$stmt = $criteria->filterByPrimaryKey($key)->getSelectStatement($con);
return $criteria->getFormatter()->init($criteria)->formatOne($stmt);
}
}
示例6: getForSelectParent
public static function getForSelectParent()
{
$c = new Criteria();
$c->add(PersonPeer::LAST_NAME, null, Criteria::NOT_EQUAL);
$c->addJoin(self::PERSON_ID, PersonPeer::ID);
$donors = PersonPeer::doSelect($c);
$arr = array();
$arr[0] = '-- select --';
foreach ($donors as $donor) {
$arr[$donor->getId()] = $donor->getLastName();
}
return $arr;
}
示例7: executeEdit
public function executeEdit(sfWebRequest $request)
{
if (!$this->getUser()->hasCredential(array('Administrator'), false)) {
$this->getUser()->setFlash("warning", 'You don\'t have permission to access this url ' . $request->getReferer());
$this->redirect('dashboard/index');
}
$this->forward404Unless($wing_leader = WingLeaderPeer::retrieveByPk($request->getParameter('id')), sprintf('Object wing_leader does not exist (%s).', $request->getParameter('id')));
$this->form = new WingLeaderForm($wing_leader);
$this->wing_leader_id = $request->getParameter("id");
if ($request->getParameter('person_id')) {
$this->person = PersonPeer::retrieveByPK($request->getParameter('person_id'));
}
}
示例8: 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();
}
示例9: executeUpdate
public function executeUpdate(sfWebRequest $request)
{
if (!$this->getUser()->hasCredential(array('Administrator'), false)) {
$this->getUser()->setFlash("warning", 'You don\'t have permission to access this url ' . $request->getReferer());
$this->redirect('dashboard/index');
}
$this->forward404Unless($request->isMethod('post') || $request->isMethod('put'));
$this->forward404Unless($wing_job = WingJobPeer::retrieveByPk($request->getParameter('id')), sprintf('Object wing_job does not exist (%s).', $request->getParameter('id')));
$this->form = new WingJobForm($wing_job);
$this->processForm($request, $this->form, 'update');
$this->wing_role_id = $request->getParameter("id");
if ($request->getParameter('person_id')) {
$this->person = PersonPeer::retrieveByPK($request->getParameter('person_id'));
}
}
示例10: configure
public function configure()
{
$this->setWidget('student_id', new sfWidgetFormInputHidden());
$this->setWidget('school_year_id', new sfWidgetFormInputHidden());
unset($this['resolution_date']);
$this->setWidget('request_date', new csWidgetFormDateInput());
$this->setValidator('request_date', new mtValidatorDateString());
$this->getWidgetSchema()->setLabel('request_date', 'Day');
$this->getWidgetSchema()->setHelp('value', 'This field represents the value of the disciplinary sanction');
$this->setValidator('value', new sfValidatorNumber(array('required' => true)));
$this->getWidget('disciplinary_sanction_type_id')->setOption('add_empty', true);
$this->getWidget('sanction_type_id')->setOption('add_empty', true);
$applicants_criteria = new Criteria();
PersonPeer::doSelectOrderedCriteria($applicants_criteria);
$results = array();
foreach (PersonalPeer::doSelect(new Criteria()) as $personal) {
$results[$personal->getPersonId()] = $personal->getPersonId();
}
foreach (TeacherPeer::doSelect(new Criteria()) as $teacher) {
$results[$teacher->getPersonId()] = $teacher->getPersonId();
}
$applicants_criteria->add(PersonPeer::ID, $results, Criteria::IN);
$this->getWidget('applicant_id')->setOption('criteria', $applicants_criteria);
$preceptors_criteria = new Criteria();
PersonPeer::doSelectOrderedCriteria($preceptors_criteria);
$preceptors_criteria->addJoin(PersonPeer::ID, PersonalPeer::PERSON_ID);
$this->getWidget('responsible_id')->setOption('criteria', $preceptors_criteria);
$this->setWidget('document', new sfWidgetFormInputFile());
$this->setValidator('document', new sfValidatorFile(array('path' => StudentDisciplinarySanction::getDocumentDirectory(), 'max_size' => '2097152', 'required' => false)));
$this->getWidgetSchema()->setHelp('document', 'The file must be of the following types: jpeg, jpg, gif, png, pdf.');
$this->getValidator('document')->setOption('mime_categories', array('web_images' => array('image/jpeg', 'image/pjpeg', 'image/png', 'image/x-png', 'image/gif'), 'documents' => array('application/pdf')));
$this->getWidgetSchema()->moveField('observation', sfWidgetFormSchema::LAST);
$this->getWidgetSchema()->moveField('document', sfWidgetFormSchema::AFTER, 'responsible_id');
if ($this->getObject()->getDocument()) {
$this->setWidget('current_document', new mtWidgetFormPartial(array('module' => 'student_disciplinary_sanction', 'partial' => 'downloable_document', 'form' => $this)));
$this->setValidator('current_document', new sfValidatorPass(array('required' => false)));
$this->setWidget('delete_document', new sfWidgetFormInputCheckbox());
$this->setValidator('delete_document', new sfValidatorBoolean(array('required' => false)));
$this->getWidgetSchema()->moveField('delete_document', sfWidgetFormSchema::BEFORE, 'document');
$this->getWidgetSchema()->moveField('current_document', sfWidgetFormSchema::BEFORE, 'delete_document');
}
}
示例11: getPersonPhoto
private function getPersonPhoto(sfWebRequest $request, $attachment = false)
{
$person = PersonPeer::retrieveByPK($request->getParameter('id'));
if ($person && $person->getPhoto()) {
$filePath = $person->getPhotoFullPath();
$response = $this->getResponse();
$response->setHttpHeader('Pragma', '');
$response->setHttpHeader('Cache-Control', '');
$data = file_get_contents($filePath);
$file_exploded = explode('.', $person->getPhoto());
$file_extension = end($file_exploded);
if ($file_extension == 'jpg') {
$content_type = 'jpeg';
} else {
$content_type = $file_extension;
}
$response->setHttpHeader('Content-Type', 'image/' . $content_type);
if ($attachment) {
$response->setHttpHeader('Content-Disposition', "attachment; filename=\"" . $person->getPhoto() . "\"");
}
$response->setContent($data);
}
}
示例12: configure
public function configure()
{
unset($this['id'], $this['date_added'], $this['date_updated']);
$affiliations = AffiliationPeer::getForSelectParent();
$companies = CompanyPeer::getForSelectParent();
$persons = PersonPeer::getForSelectParent();
# Fields
$this->widgetSchema['co_donor_id'] = new sfWidgetFormInput(array(), array('class' => 'text narrow'));
$this->widgetSchema['affiliation_id'] = new sfWidgetFormChoice(array('choices' => $affiliations));
$this->widgetSchema['block_mailings'] = new sfWidgetFormInputCheckbox(array(), array('value' => 1));
$this->widgetSchema['prospect_comment'] = new sfWidgetFormTextarea(array(), array('class' => 'text'));
$this->widgetSchema['salutation'] = new sfWidgetFormInput(array(), array('class' => 'text'));
$this->widgetSchema['company_id'] = new sfWidgetFormChoice(array('choices' => $companies));
$this->widgetSchema['position'] = new sfWidgetFormInput(array(), array('class' => 'text'));
$this->widgetSchema['donor_potential'] = new sfWidgetFormInput(array(), array('class' => 'text'));
$this->widgetSchema['person_id'] = new sfWidgetFormChoice(array('choices' => $persons));
$this->widgetSchema->setLabels(array('co_donor_id' => 'Co Donor Id'));
$this->widgetSchema->setLabels(array('affiliation_id' => 'Affiliation Id'));
$this->widgetSchema->setLabels(array('block_mailings' => 'Block mailings'));
$this->widgetSchema->setLabels(array('prospect_comment' => 'Prospect comment'));
$this->widgetSchema->setLabels(array('salutation' => 'Salutation'));
$this->widgetSchema->setLabels(array('company_id' => 'Company'));
$this->widgetSchema->setLabels(array('position' => 'Position'));
$this->widgetSchema->setLabels(array('donor_potential' => 'Donor potential'));
$this->widgetSchema->setLabels(array('person_id' => 'Person'));
$this->validatorSchema['co_donor_id'] = new sfValidatorInteger(array('required' => false), array('invalid' => 'Co donor id must be in number format !'));
$this->validatorSchema['affiliation_id'] = new sfValidatorInteger(array('required' => false));
$this->validatorSchema['block_mailings'] = new sfValidatorInteger(array('required' => false));
$this->validatorSchema['prospect_comment'] = new sfValidatorString(array('required' => false));
$this->validatorSchema['salutation'] = new sfValidatorString(array('required' => false));
$this->validatorSchema['company_id'] = new sfValidatorInteger(array('required' => false));
$this->validatorSchema['position'] = new sfValidatorString(array('required' => false));
$this->validatorSchema['donor_potential'] = new sfValidatorInteger(array('required' => false), array('invalid' => 'Donor porential must be in number format !'));
$this->validatorSchema['person_id'] = new sfValidatorInteger(array('required' => false));
$this->widgetSchema->setNameFormat('donor[%s]');
}
示例13: executeProcessStep3
public function executeProcessStep3(sfWebRequest $request)
{
slot('nav_menu', array('members', 'pending-renewal'));
$this->application_temp = ApplicationTempPeer::retrieveByPk($request->getParameter('id'));
$this->forward404Unless($this->application_temp);
$this->application_temp->getProcessedDate();
//Farazi
//Get Member Class Information
$this->member = MemberPeer::retrieveByPK($this->application_temp->getMemberId());
$this->memberclass = MemberClassPeer::retrieveByPK($this->member->getMemberClassId());
//echo "<pre>";
//print_r($this->memberclass);
$this->person = PersonPeer::retrieveByPK($this->application_temp->getPersonId());
if ($request->isMethod('post')) {
$this->processStep3Check($request);
}
$this->form1 = new ApplicationTempProcessStep1Form($this->application_temp);
$this->form2 = new ApplicationTempProcessStep2Form($this->application_temp);
$this->setTemplate('processSteps');
}
示例14:
<?php
//endif
?>
</dd>
<dt>Requester:</dt>
<dd>
<a href="#">
<?php
if ($itinerary->getRequesterId()) {
?>
<?php
$requester = RequesterPeer::retrieveByPK($itinerary->getRequesterId());
?>
<?php
if (isset($requester)) {
$rperson = PersonPeer::retrieveByPK($requester->getPersonId());
}
?>
<?php
if (isset($rperson)) {
?>
<?php
echo $rperson->getTitle() . ' . ' . $rperson->getFirstName() . ' ' . $rperson->getLastName();
?>
<?php
}
?>
<?php
}
?>
</a>
示例15: doSelectActivePreceptor
public static function doSelectActivePreceptor(Criteria $criteria = null)
{
$criteria = is_null($criteria) ? new Criteria() : $criteria;
$criteria->add(PersonalPeer::PERSONAL_TYPE, PersonalType::PRECEPTOR);
PersonPeer::doSelectOrderedCriteria($criteria);
$criteria->add(PersonPeer::IS_ACTIVE, true);
$criteria->addJoin(PersonPeer::ID, self::PERSON_ID);
$sf_user = sfContext::getInstance()->getUser();
if ($sf_user->isHeadPreceptor()) {
$personal_in = $sf_user->getPersonalIds();
$criteria->add(self::ID, $personal_in, Criteria::IN);
}
return self::doSelect($criteria);
}