getRecord() public method

public getRecord ( $keyValue = null )
コード例 #1
0
 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
0
    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;
    }