當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。