本文整理汇总了PHP中Gpf_Data_RecordSet::getRecord方法的典型用法代码示例。如果您正苦于以下问题:PHP Gpf_Data_RecordSet::getRecord方法的具体用法?PHP Gpf_Data_RecordSet::getRecord怎么用?PHP Gpf_Data_RecordSet::getRecord使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Gpf_Data_RecordSet
的用法示例。
在下文中一共展示了Gpf_Data_RecordSet::getRecord方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: isColumnRequired
protected function isColumnRequired($columnName) {
if ($this->_requiredColumns == null) {
return false;
}
try {
$column = $this->_requiredColumns->getRecord($columnName);
return true;
} catch (Gpf_Data_RecordSetNoRowException $e) {
return false;
}
}
示例2: getCachedRecordSet
private function getCachedRecordSet(Gpf_Data_RecordSet $recordSet) {
$from = $this->params->get(Gpf_Ui_RichListBox::FROM);
$rowsPerPage = $this->params->get(Gpf_Ui_RichListBox::ROWS_PER_PAGE);
$this->count = $recordSet->getSize();
if ($this->count > $this->params->get(Gpf_Ui_RichListBox::MAX_CACHED_COUNT)) {
$cachedRecordSet = $recordSet->toShalowRecordSet();
if ($from + $rowsPerPage > $this->count) {
$to = $this->count;
} else {
$to = $from + $rowsPerPage;
}
for ($from; $from < $to; $from++) {
$cachedRecordSet->add($recordSet->getRecord($from));
}
return $cachedRecordSet;
}
return $recordSet;
}