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


PHP ResultSet::getTime方法代码示例

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


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

示例1: testSetTime

 /**
  * @covers ResultSet::setTime
  */
 public function testSetTime()
 {
     $timeKey = 'aTime';
     $time = '16:02:15';
     $this->result->setTime($timeKey, $time);
     $actual = $this->result->getTime($timeKey);
     $this->assertNotNull($actual);
 }
开发者ID:fruition-sciences,项目名称:phpfw,代码行数:11,代码来源:ResultSetTest.php

示例2: hydrate

 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->id = $rs->getInt($startcol + 0);
         $this->employee_id = $rs->getInt($startcol + 1);
         $this->academic_calendar_id = $rs->getInt($startcol + 2);
         $this->status = $rs->getInt($startcol + 3);
         $this->start = $rs->getTimestamp($startcol + 4, null);
         $this->date_in = $rs->getDate($startcol + 5, null);
         $this->datang = $rs->getTime($startcol + 6, null);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 7;
     } catch (Exception $e) {
         throw new PropelException("Error populating EmployeeAbsenceDev object", $e);
     }
 }
开发者ID:taryono,项目名称:school,代码行数:17,代码来源:BaseEmployeeAbsenceDev.php

示例3: hydrate

 public function hydrate(ResultSet $rs, $startcol = 1)
 {
     try {
         $this->id = $rs->getInt($startcol + 0);
         $this->col_item_id = $rs->getInt($startcol + 1);
         $this->member_id = $rs->getInt($startcol + 2);
         $this->col_status_id = $rs->getInt($startcol + 3);
         $this->order_date = $rs->getTime($startcol + 4, null);
         $this->due_date = $rs->getTime($startcol + 5, null);
         $this->return_date = $rs->getTime($startcol + 6, null);
         $this->order_note = $rs->getString($startcol + 7);
         $this->return_note = $rs->getString($startcol + 8);
         $this->fine = $rs->getFloat($startcol + 9);
         $this->misc_fine = $rs->getFloat($startcol + 10);
         $this->resetModified();
         $this->setNew(false);
         return $startcol + 11;
     } catch (Exception $e) {
         throw new PropelException("Error populating CirHistory object", $e);
     }
 }
开发者ID:taryono,项目名称:school,代码行数:21,代码来源:BaseCirHistory.php


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