本文整理匯總了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);
}
示例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);
}
}
示例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);
}
}