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


PHP ResultSet::getTimestamp方法代码示例

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


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

示例1: hydrate

 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->question_id = $rs->getInt($startcol + 0);
         $this->user_id = $rs->getInt($startcol + 1);
         $this->created_at = $rs->getTimestamp($startcol + 2, null);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 3;
     } catch (Exception $e) {
         throw new PropelException("Error populating Interest object", $e);
     }
 }
开发者ID:arrisray,项目名称:askeet,代码行数:13,代码来源:BaseInterest.php

示例2: hydrate

 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->student_id = $rs->getString($startcol + 0);
         $this->datetime = $rs->getTimestamp($startcol + 1, null);
         $this->status = $rs->getString($startcol + 2);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 3;
     } catch (Exception $e) {
         throw new PropelException("Error populating Attendance object", $e);
     }
 }
开发者ID:taryono,项目名称:school,代码行数:13,代码来源:BaseAttendance.php

示例3: hydrate

 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->id = $rs->getInt($startcol + 0);
         $this->name = $rs->getString($startcol + 1);
         $this->type_status = $rs->getString($startcol + 2);
         $this->created = $rs->getTimestamp($startcol + 3, null);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 4;
     } catch (Exception $e) {
         throw new PropelException("Error populating NgStatusApplicant object", $e);
     }
 }
开发者ID:taryono,项目名称:school,代码行数:14,代码来源:BaseNgStatusApplicant.php

示例4: hydrate

 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->id = $rs->getInt($startcol + 0);
         $this->user_id = $rs->getInt($startcol + 1);
         $this->title = $rs->getString($startcol + 2);
         $this->body = $rs->getString($startcol + 3);
         $this->created_at = $rs->getTimestamp($startcol + 4, null);
         $this->updated_at = $rs->getTimestamp($startcol + 5, null);
         $this->interested_users = $rs->getInt($startcol + 6);
         $this->stripped_title = $rs->getString($startcol + 7);
         $this->html_body = $rs->getString($startcol + 8);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 9;
     } catch (Exception $e) {
         throw new PropelException("Error populating Question object", $e);
     }
 }
开发者ID:arrisray,项目名称:askeet,代码行数:19,代码来源:BaseQuestion.php

示例5: hydrate

 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->id = $rs->getInt($startcol + 0);
         $this->payer = $rs->getInt($startcol + 1);
         $this->academic_cost_id = $rs->getInt($startcol + 2);
         $this->job_id = $rs->getInt($startcol + 3);
         $this->academic_process_id = $rs->getInt($startcol + 4);
         $this->amount = $rs->getFloat($startcol + 5);
         $this->created_at = $rs->getTimestamp($startcol + 6, null);
         $this->updated_at = $rs->getTimestamp($startcol + 7, null);
         $this->payer_type = $rs->getString($startcol + 8);
         $this->receivable = $rs->getFloat($startcol + 9);
         $this->paid = $rs->getFloat($startcol + 10);
         $this->status = $rs->getString($startcol + 11);
         $this->comments = $rs->getString($startcol + 12);
         $this->payment_model_id = $rs->getInt($startcol + 13);
         $this->transaction_status_id = $rs->getInt($startcol + 14);
         $this->paid_at = $rs->getTimestamp($startcol + 15, null);
         $this->year = $rs->getFloat($startcol + 16);
         $this->month = $rs->getString($startcol + 17);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 18;
     } catch (Exception $e) {
         throw new PropelException("Error populating VPaymentJournal object", $e);
     }
 }
开发者ID:taryono,项目名称:school,代码行数:28,代码来源:BaseVPaymentJournal.php

示例6: hydrate

 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->id = $rs->getInt($startcol + 0);
         $this->code = $rs->getString($startcol + 1);
         $this->name = $rs->getString($startcol + 2);
         $this->course_model = $rs->getString($startcol + 3);
         $this->ordered = $rs->getInt($startcol + 4);
         $this->created = $rs->getTimestamp($startcol + 5, null);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 6;
     } catch (Exception $e) {
         throw new PropelException("Error populating ClassLevel object", $e);
     }
 }
开发者ID:taryono,项目名称:school,代码行数:16,代码来源:BaseClassLevel.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->log_uid = $rs->getString($startcol + 0);
         $this->log_status = $rs->getString($startcol + 1);
         $this->log_ip = $rs->getString($startcol + 2);
         $this->log_sid = $rs->getString($startcol + 3);
         $this->log_init_date = $rs->getTimestamp($startcol + 4, null);
         $this->log_end_date = $rs->getTimestamp($startcol + 5, null);
         $this->log_client_hostname = $rs->getString($startcol + 6);
         $this->usr_uid = $rs->getString($startcol + 7);
         $this->resetModified();
         $this->setNew(false);
         // FIXME - using NUM_COLUMNS may be clearer.
         return $startcol + 8;
         // 8 = LoginLogPeer::NUM_COLUMNS - LoginLogPeer::NUM_LAZY_LOAD_COLUMNS).
     } catch (Exception $e) {
         throw new PropelException("Error populating LoginLog object", $e);
     }
 }
开发者ID:emildev35,项目名称:processmaker,代码行数:33,代码来源:BaseLoginLog.php

示例8: hydrate

 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->id = $rs->getInt($startcol + 0);
         $this->label = $rs->getString($startcol + 1);
         $this->application_number = $rs->getString($startcol + 2);
         $this->register_number = $rs->getString($startcol + 3);
         $this->registration_date = $rs->getTimestamp($startcol + 4, null);
         $this->from_system = $rs->getInt($startcol + 5);
         $this->kind = $rs->getString($startcol + 6);
         $this->application_date = $rs->getTimestamp($startcol + 7, null);
         $this->status = $rs->getString($startcol + 8);
         $this->expires_on = $rs->getTimestamp($startcol + 9, null);
         $this->publications = $rs->getString($startcol + 10);
         $this->vienna_classes = $rs->getString($startcol + 11);
         $this->colors = $rs->getString($startcol + 12);
         $this->nice_classes = $rs->getString($startcol + 13);
         $this->rights_owner = $rs->getString($startcol + 14);
         $this->rights_owner_id = $rs->getString($startcol + 15);
         $this->rights_owner_address = $rs->getString($startcol + 16);
         $this->rights_representative = $rs->getString($startcol + 17);
         $this->rights_representative_id = $rs->getString($startcol + 18);
         $this->rights_representative_address = $rs->getString($startcol + 19);
         $this->office_of_origin = $rs->getString($startcol + 20);
         $this->designated_contracting_party = $rs->getString($startcol + 21);
         $this->image = $rs->getInt($startcol + 22);
         $this->contestation = $rs->getTimestamp($startcol + 23, null);
         $this->created_at = $rs->getTimestamp($startcol + 24, null);
         $this->updated_at = $rs->getTimestamp($startcol + 25, null);
         $this->publication_status = $rs->getString($startcol + 26);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 27;
     } catch (Exception $e) {
         throw new PropelException("Error populating Trademark object", $e);
     }
 }
开发者ID:kotow,项目名称:work,代码行数:37,代码来源:BaseTrademark.php

示例9: 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->created_at = $rs->getTimestamp($startcol + 2, null);
         $this->deleted_at = $rs->getTimestamp($startcol + 3, null);
         $this->updated_at = $rs->getTimestamp($startcol + 4, null);
         $this->created_user_id = $rs->getInt($startcol + 5);
         $this->schema_id = $rs->getInt($startcol + 6);
         $this->timeslice = $rs->getTimestamp($startcol + 7, null);
         $this->resetModified();
         $this->setNew(false);
         // FIXME - using NUM_COLUMNS may be clearer.
         return $startcol + 8;
         // 8 = SchemaHasVersionPeer::NUM_COLUMNS - SchemaHasVersionPeer::NUM_LAZY_LOAD_COLUMNS).
     } catch (Exception $e) {
         throw new PropelException("Error populating SchemaHasVersion object", $e);
     }
 }
开发者ID:jonphipps,项目名称:Metadata-Registry,代码行数:33,代码来源:BaseSchemaHasVersion.php

示例10: hydrate

 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->id = $rs->getInt($startcol + 0);
         $this->group_id = $rs->getString($startcol + 1);
         $this->uuid = $rs->getString($startcol + 2);
         $this->entity = $rs->getString($startcol + 3);
         $this->entity_id = $rs->getInt($startcol + 4);
         $this->name = $rs->getString($startcol + 5);
         $this->mime_type = $rs->getString($startcol + 6);
         $this->size = $rs->getInt($startcol + 7);
         $this->suffix = $rs->getString($startcol + 8);
         $this->title = $rs->getString($startcol + 9);
         $this->description = $rs->getString($startcol + 10);
         $this->uploaded_by = $rs->getInt($startcol + 11);
         $this->created_at = $rs->getTimestamp($startcol + 12, null);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 13;
     } catch (Exception $e) {
         throw new PropelException("Error populating sfFileGallery object", $e);
     }
 }
开发者ID:sgrove,项目名称:cothinker,代码行数:23,代码来源:BasesfFileGallery.php

示例11: hydrate

 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->id = $rs->getInt($startcol + 0);
         $this->cur13_ekskul_id = $rs->getInt($startcol + 1);
         $this->grade_spec_id = $rs->getInt($startcol + 2);
         $this->grade = $rs->getFloat($startcol + 3);
         $this->remark = $rs->getString($startcol + 4);
         $this->grade_scale = $rs->getFloat($startcol + 5);
         $this->total_value = $rs->getFloat($startcol + 6);
         $this->avg_value = $rs->getFloat($startcol + 7);
         $this->created_at = $rs->getTimestamp($startcol + 8, null);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 9;
     } catch (Exception $e) {
         throw new PropelException("Error populating Cur13GradeEkskul object", $e);
     }
 }
开发者ID:taryono,项目名称:school,代码行数:19,代码来源:BaseCur13GradeEkskul.php

示例12: hydrate

 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->id = $rs->getInt($startcol + 0);
         $this->recommendable_model = $rs->getString($startcol + 1);
         $this->recommendable_id = $rs->getString($startcol + 2);
         $this->user_id = $rs->getInt($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 sfUserRecommendation object", $e);
     }
 }
开发者ID:sgrove,项目名称:cothinker,代码行数:15,代码来源:BasesfUserRecommendation.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->run_time = $rs->getTimestamp($startcol + 1, null);
         $this->run_description = $rs->getString($startcol + 2);
         $this->object_type = $rs->getString($startcol + 3);
         $this->object_id = $rs->getInt($startcol + 4);
         $this->event_time = $rs->getTimestamp($startcol + 5, null);
         $this->event_type = $rs->getString($startcol + 6);
         $this->event_description = $rs->getString($startcol + 7);
         $this->registry_uri = $rs->getString($startcol + 8);
         $this->resetModified();
         $this->setNew(false);
         // FIXME - using NUM_COLUMNS may be clearer.
         return $startcol + 9;
         // 9 = BatchPeer::NUM_COLUMNS - BatchPeer::NUM_LAZY_LOAD_COLUMNS).
     } catch (Exception $e) {
         throw new PropelException("Error populating Batch object", $e);
     }
 }
开发者ID:jonphipps,项目名称:Metadata-Registry,代码行数:34,代码来源:BaseBatch.php

示例14: 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

示例15: 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->usr_uid = $rs->getString($startcol + 0);
         $this->usr_last_update_date = $rs->getTimestamp($startcol + 1, null);
         $this->usr_logged_next_time = $rs->getInt($startcol + 2);
         $this->usr_password_history = $rs->getString($startcol + 3);
         $this->resetModified();
         $this->setNew(false);
         // FIXME - using NUM_COLUMNS may be clearer.
         return $startcol + 4;
         // 4 = UsersPropertiesPeer::NUM_COLUMNS - UsersPropertiesPeer::NUM_LAZY_LOAD_COLUMNS).
     } catch (Exception $e) {
         throw new PropelException("Error populating UsersProperties object", $e);
     }
 }
开发者ID:nshong,项目名称:processmaker,代码行数:29,代码来源:BaseUsersProperties.php


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