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


PHP ResultSet::getBoolean方法代码示例

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


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

示例1: hydrate

 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->id = $rs->getInt($startcol + 0);
         $this->user_id = $rs->getInt($startcol + 1);
         $this->newsletter = $rs->getBoolean($startcol + 2);
         $this->mail = $rs->getBoolean($startcol + 3);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 4;
     } catch (Exception $e) {
         throw new PropelException("Error populating Flags object", $e);
     }
 }
开发者ID:Ayaan123,项目名称:alumnisangam,代码行数:14,代码来源:BaseFlags.php

示例2: hydrate

 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->event_id = $rs->getInt($startcol + 0);
         $this->reg_field_id = $rs->getInt($startcol + 1);
         $this->required_field = $rs->getBoolean($startcol + 2);
         $this->field_order = $rs->getInt($startcol + 3);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 4;
     } catch (Exception $e) {
         throw new PropelException("Error populating RegForm object", $e);
     }
 }
开发者ID:soon0009,项目名称:EMS,代码行数:14,代码来源:BaseRegForm.php

示例3: hydrate

 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->id = $rs->getInt($startcol + 0);
         $this->label = $rs->getString($startcol + 1);
         $this->page_type = $rs->getString($startcol + 2);
         $this->navigation_title = $rs->getString($startcol + 3);
         $this->meta_description = $rs->getString($startcol + 4);
         $this->meta_keywords = $rs->getString($startcol + 5);
         $this->image = $rs->getInt($startcol + 6);
         $this->template = $rs->getString($startcol + 7);
         $this->content = $rs->getString($startcol + 8);
         $this->page_id = $rs->getInt($startcol + 9);
         $this->url = $rs->getString($startcol + 10);
         $this->description = $rs->getString($startcol + 11);
         $this->is_secure = $rs->getBoolean($startcol + 12);
         $this->created_at = $rs->getTimestamp($startcol + 13, null);
         $this->updated_at = $rs->getTimestamp($startcol + 14, null);
         $this->publication_status = $rs->getString($startcol + 15);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 16;
     } catch (Exception $e) {
         throw new PropelException("Error populating Page object", $e);
     }
 }
开发者ID:kotow,项目名称:work,代码行数:26,代码来源:BasePage.php

示例4: hydrate

 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->id = $rs->getInt($startcol + 0);
         $this->title = $rs->getString($startcol + 1);
         $this->slug = $rs->getString($startcol + 2);
         $this->status_id = $rs->getInt($startcol + 3);
         $this->category_id = $rs->getInt($startcol + 4);
         $this->published = $rs->getBoolean($startcol + 5);
         $this->media_potential = $rs->getBoolean($startcol + 6);
         $this->description = $rs->getString($startcol + 7);
         $this->notes = $rs->getString($startcol + 8);
         $this->image_url = $rs->getString($startcol + 9);
         $this->updated_at = $rs->getTimestamp($startcol + 10, null);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 11;
     } catch (Exception $e) {
         throw new PropelException("Error populating Event object", $e);
     }
 }
开发者ID:soon0009,项目名称:EMS,代码行数:21,代码来源:BaseEvent.php

示例5: hydrate

 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->id = $rs->getInt($startcol + 0);
         $this->name = $rs->getString($startcol + 1);
         $this->is_triple = $rs->getBoolean($startcol + 2);
         $this->triple_namespace = $rs->getString($startcol + 3);
         $this->triple_key = $rs->getString($startcol + 4);
         $this->triple_value = $rs->getString($startcol + 5);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 6;
     } catch (Exception $e) {
         throw new PropelException("Error populating Tag object", $e);
     }
 }
开发者ID:sgrove,项目名称:cothinker,代码行数:16,代码来源:BaseTag.php

示例6: hydrate

 /**
  * Hydrates (populates) the object variables with values from the database resultset.
  *
  * An offset (1-based "start column") is specified so that objects can be hydrated
  * with a subset of the columns in the resultset rows.  This is needed, for example,
  * for results of JOIN queries where the resultset row includes columns from two or
  * more tables.
  *
  * @param      ResultSet $rs The ResultSet class with cursor advanced to desired record pos.
  * @param      int $startcol 1-based offset column which indicates which restultset column to start with.
  * @return     int next starting column
  * @throws     PropelException  - Any caught Exception will be rewrapped as a PropelException.
  */
 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->user_id = $rs->getInt($startcol + 0);
         $this->production_id = $rs->getInt($startcol + 1);
         $this->transmit = $rs->getBoolean($startcol + 2);
         $this->resetModified();
         $this->setNew(false);
         // FIXME - using NUM_COLUMNS may be clearer.
         return $startcol + 3;
         // 3 = OnlinePeer::NUM_COLUMNS - OnlinePeer::NUM_LAZY_LOAD_COLUMNS).
     } catch (Exception $e) {
         throw new PropelException("Error populating Online object", $e);
     }
 }
开发者ID:rodrigoprestesmachado,项目名称:whiteboard,代码行数:28,代码来源:BaseOnline.php

示例7: hydrate

 /**
  * Hydrates (populates) the object variables with values from the database resultset.
  *
  * An offset (1-based "start column") is specified so that objects can be hydrated
  * with a subset of the columns in the resultset rows.  This is needed, for example,
  * for results of JOIN queries where the resultset row includes columns from two or
  * more tables.
  *
  * @param      ResultSet $rs The ResultSet class with cursor advanced to desired record pos.
  * @param      int $startcol 1-based offset column which indicates which restultset column to start with.
  * @return     int next starting column
  * @throws     PropelException  - Any caught Exception will be rewrapped as a PropelException.
  */
 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->id = $rs->getInt($startcol + 0);
         $this->name = $rs->getString($startcol + 1);
         $this->approved = $rs->getBoolean($startcol + 2);
         $this->resetModified();
         $this->setNew(false);
         // FIXME - using NUM_COLUMNS may be clearer.
         return $startcol + 3;
         // 3 = TagPeer::NUM_COLUMNS - TagPeer::NUM_LAZY_LOAD_COLUMNS).
     } catch (Exception $e) {
         throw new PropelException("Error populating Tag object", $e);
     }
 }
开发者ID:noose,项目名称:Planeta,代码行数:28,代码来源:BaseTag.php

示例8: hydrate

 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->id = $rs->getInt($startcol + 0);
         $this->label = $rs->getString($startcol + 1);
         $this->login = $rs->getString($startcol + 2);
         $this->backend = $rs->getBoolean($startcol + 3);
         $this->type = $rs->getString($startcol + 4);
         $this->sha1_password = $rs->getString($startcol + 5);
         $this->salt = $rs->getString($startcol + 6);
         $this->first_name = $rs->getString($startcol + 7);
         $this->last_name = $rs->getString($startcol + 8);
         $this->email = $rs->getString($startcol + 9);
         $this->phone = $rs->getString($startcol + 10);
         $this->city = $rs->getString($startcol + 11);
         $this->address = $rs->getString($startcol + 12);
         $this->zip = $rs->getString($startcol + 13);
         $this->state = $rs->getString($startcol + 14);
         $this->address2 = $rs->getString($startcol + 15);
         $this->mobile_phone = $rs->getString($startcol + 16);
         $this->work_phone = $rs->getString($startcol + 17);
         $this->contact_name = $rs->getString($startcol + 18);
         $this->contact_number = $rs->getString($startcol + 19);
         $this->activation_code = $rs->getString($startcol + 20);
         $this->created_at = $rs->getTimestamp($startcol + 21, null);
         $this->updated_at = $rs->getTimestamp($startcol + 22, null);
         $this->publication_status = $rs->getString($startcol + 23);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 24;
     } catch (Exception $e) {
         throw new PropelException("Error populating User object", $e);
     }
 }
开发者ID:kotow,项目名称:work,代码行数:34,代码来源:BaseUser.php

示例9: hydrate

 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->id = $rs->getInt($startcol + 0);
         $this->uuid = $rs->getString($startcol + 1);
         $this->created_by = $rs->getInt($startcol + 2);
         $this->owner_id = $rs->getInt($startcol + 3);
         $this->department_id = $rs->getInt($startcol + 4);
         $this->campus_id = $rs->getInt($startcol + 5);
         $this->title = $rs->getString($startcol + 6);
         $this->picture = $rs->getString($startcol + 7);
         $this->slug = $rs->getString($startcol + 8);
         $this->description = $rs->getString($startcol + 9);
         $this->notes = $rs->getString($startcol + 10);
         $this->keywords = $rs->getString($startcol + 11);
         $this->begin = $rs->getDate($startcol + 12, null);
         $this->finish = $rs->getDate($startcol + 13, null);
         $this->budget = $rs->getInt($startcol + 14);
         $this->status = $rs->getInt($startcol + 15);
         $this->applications = $rs->getInt($startcol + 16);
         $this->season = $rs->getInt($startcol + 17);
         $this->year = $rs->getDate($startcol + 18, null);
         $this->scale = $rs->getInt($startcol + 19);
         $this->commitment = $rs->getInt($startcol + 20);
         $this->goals = $rs->getInt($startcol + 21);
         $this->goals_complete = $rs->getInt($startcol + 22);
         $this->hours_weekly = $rs->getInt($startcol + 23);
         $this->hours_total = $rs->getInt($startcol + 24);
         $this->published = $rs->getBoolean($startcol + 25);
         $this->flagged_aup = $rs->getBoolean($startcol + 26);
         $this->flagged_help = $rs->getBoolean($startcol + 27);
         $this->main_form = $rs->getString($startcol + 28);
         $this->is_approved = $rs->getBoolean($startcol + 29);
         $this->hits = $rs->getInt($startcol + 30);
         $this->version = $rs->getInt($startcol + 31);
         $this->updated_at = $rs->getTimestamp($startcol + 32, null);
         $this->deleted_at = $rs->getTimestamp($startcol + 33, null);
         $this->created_at = $rs->getTimestamp($startcol + 34, null);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 35;
     } catch (Exception $e) {
         throw new PropelException("Error populating Project object", $e);
     }
 }
开发者ID:sgrove,项目名称:cothinker,代码行数:45,代码来源:BaseProject.php

示例10: hydrate

 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->id = $rs->getInt($startcol + 0);
         $this->username = $rs->getString($startcol + 1);
         $this->algorithm = $rs->getString($startcol + 2);
         $this->salt = $rs->getString($startcol + 3);
         $this->password = $rs->getString($startcol + 4);
         $this->created_at = $rs->getTimestamp($startcol + 5, null);
         $this->last_login = $rs->getTimestamp($startcol + 6, null);
         $this->is_approved = $rs->getBoolean($startcol + 7);
         $this->is_active = $rs->getBoolean($startcol + 8);
         $this->is_super_admin = $rs->getBoolean($startcol + 9);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 10;
     } catch (Exception $e) {
         throw new PropelException("Error populating sfGuardUser object", $e);
     }
 }
开发者ID:sgrove,项目名称:cothinker,代码行数:20,代码来源:BasesfGuardUser.php

示例11: hydrate

 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->id = $rs->getInt($startcol + 0);
         $this->title = $rs->getString($startcol + 1);
         $this->description = $rs->getString($startcol + 2);
         $this->is_published = $rs->getBoolean($startcol + 3);
         $this->created_at = $rs->getTimestamp($startcol + 4, null);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 5;
     } catch (Exception $e) {
         throw new PropelException("Error populating sfPoll object", $e);
     }
 }
开发者ID:sgrove,项目名称:cothinker,代码行数:15,代码来源:BasesfPoll.php

示例12: hydrate

 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->id = $rs->getInt($startcol + 0);
         $this->creator_user_id = $rs->getInt($startcol + 1);
         $this->creator_type = $rs->getString($startcol + 2);
         $this->created = $rs->getTimestamp($startcol + 3, null);
         $this->recipient = $rs->getString($startcol + 4);
         $this->subject = $rs->getString($startcol + 5);
         $this->message = $rs->getString($startcol + 6);
         $this->scheduled = $rs->getBoolean($startcol + 7);
         $this->schedule_time = $rs->getTimestamp($startcol + 8, null);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 9;
     } catch (Exception $e) {
         throw new PropelException("Error populating SmsDraft object", $e);
     }
 }
开发者ID:taryono,项目名称:school,代码行数:19,代码来源:BaseSmsDraft.php

示例13: hydrate

 /**
  * Hydrates (populates) the object variables with values from the database resultset.
  *
  * An offset (1-based "start column") is specified so that objects can be hydrated
  * with a subset of the columns in the resultset rows.  This is needed, for example,
  * for results of JOIN queries where the resultset row includes columns from two or
  * more tables.
  *
  * @param      ResultSet $rs The ResultSet class with cursor advanced to desired record pos.
  * @param      int $startcol 1-based offset column which indicates which restultset column to start with.
  * @return     int next starting column
  * @throws     PropelException  - Any caught Exception will be rewrapped as a PropelException.
  */
 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->id = $rs->getInt($startcol + 0);
         $this->created_at = $rs->getTimestamp($startcol + 1, null);
         $this->updated_at = $rs->getTimestamp($startcol + 2, null);
         $this->deleted_at = $rs->getTimestamp($startcol + 3, null);
         $this->schema_id = $rs->getInt($startcol + 4);
         $this->user_id = $rs->getInt($startcol + 5);
         $this->is_maintainer_for = $rs->getBoolean($startcol + 6);
         $this->is_registrar_for = $rs->getBoolean($startcol + 7);
         $this->is_admin_for = $rs->getBoolean($startcol + 8);
         $this->languages = $rs->getString($startcol + 9);
         $this->default_language = $rs->getString($startcol + 10);
         $this->current_language = $rs->getString($startcol + 11);
         $this->resetModified();
         $this->setNew(false);
         // FIXME - using NUM_COLUMNS may be clearer.
         return $startcol + 12;
         // 12 = SchemaHasUserPeer::NUM_COLUMNS - SchemaHasUserPeer::NUM_LAZY_LOAD_COLUMNS).
     } catch (Exception $e) {
         throw new PropelException("Error populating SchemaHasUser object", $e);
     }
 }
开发者ID:jonphipps,项目名称:Metadata-Registry,代码行数:37,代码来源:BaseSchemaHasUser.php

示例14: hydrate

 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->etime_id = $rs->getInt($startcol + 0);
         $this->attending = $rs->getBoolean($startcol + 1);
         $this->paid = $rs->getBoolean($startcol + 2);
         $this->reg_date = $rs->getTimestamp($startcol + 3, null);
         $this->extra_info = $rs->getString($startcol + 4);
         $this->created_at = $rs->getTimestamp($startcol + 5, null);
         $this->updated_at = $rs->getTimestamp($startcol + 6, null);
         $this->title = $rs->getString($startcol + 7);
         $this->firstname = $rs->getString($startcol + 8);
         $this->lastname = $rs->getString($startcol + 9);
         $this->preferred_name = $rs->getString($startcol + 10);
         $this->email = $rs->getString($startcol + 11);
         $this->phone = $rs->getString($startcol + 12);
         $this->mobile = $rs->getString($startcol + 13);
         $this->primary_address_line_1 = $rs->getString($startcol + 14);
         $this->primary_address_line_2 = $rs->getString($startcol + 15);
         $this->primary_address_line_3 = $rs->getString($startcol + 16);
         $this->primary_address_city = $rs->getString($startcol + 17);
         $this->primary_address_postcode = $rs->getString($startcol + 18);
         $this->primary_address_state = $rs->getString($startcol + 19);
         $this->primary_address_country = $rs->getString($startcol + 20);
         $this->secondary_address_line_1 = $rs->getString($startcol + 21);
         $this->secondary_address_line_2 = $rs->getString($startcol + 22);
         $this->secondary_address_line_3 = $rs->getString($startcol + 23);
         $this->secondary_address_city = $rs->getString($startcol + 24);
         $this->secondary_address_postcode = $rs->getString($startcol + 25);
         $this->secondary_address_state = $rs->getString($startcol + 26);
         $this->secondary_address_country = $rs->getString($startcol + 27);
         $this->special_req = $rs->getString($startcol + 28);
         $this->position = $rs->getString($startcol + 29);
         $this->company = $rs->getString($startcol + 30);
         $this->srn = $rs->getString($startcol + 31);
         $this->fan = $rs->getString($startcol + 32);
         $this->aou = $rs->getString($startcol + 33);
         $this->id = $rs->getInt($startcol + 34);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 35;
     } catch (Exception $e) {
         throw new PropelException("Error populating Guest object", $e);
     }
 }
开发者ID:soon0009,项目名称:EMS,代码行数:45,代码来源:BaseGuest.php

示例15: hydrate

 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->id = $rs->getInt($startcol + 0);
         $this->uuid = $rs->getString($startcol + 1);
         $this->user_id = $rs->getInt($startcol + 2);
         $this->position_id = $rs->getInt($startcol + 3);
         $this->total_hours = $rs->getInt($startcol + 4);
         $this->position = $rs->getInt($startcol + 5);
         $this->status = $rs->getInt($startcol + 6);
         $this->is_approved = $rs->getBoolean($startcol + 7);
         $this->updated_at = $rs->getTimestamp($startcol + 8, null);
         $this->deleted_at = $rs->getTimestamp($startcol + 9, null);
         $this->created_at = $rs->getTimestamp($startcol + 10, null);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 11;
     } catch (Exception $e) {
         throw new PropelException("Error populating ProjectUser object", $e);
     }
 }
开发者ID:sgrove,项目名称:cothinker,代码行数:21,代码来源:BaseProjectUser.php


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