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