本文整理汇总了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);
}
}