Open Journal Systems  3.3.0
DRIVERDAO.inc.php
1 <?php
2 
16 import('classes.oai.ojs.OAIDAO');
17 
18 
19 class DRIVERDAO extends OAIDAO {
20 
25  function setOAI($oai) {
26  $this->oai = $oai;
27  }
28 
29  //
30  // Records
31  //
32 
44  function &getDRIVERRecordsOrIdentifiers($setIds, $from, $until, $offset, $limit, &$total, $funcName) {
45  $records = array();
46 
47  $result = $this->_getRecordsRecordSet($setIds, $from, $until, null);
48 
49  $total = $result->RecordCount();
50 
51  $result->Move($offset);
52  for ($count = 0; $count < $limit && !$result->EOF; $count++) {
53  $row = $result->GetRowAssoc(false);
54  $record = $this->_returnRecordFromRow($row);
55  if(in_array('driver', $record->sets)){
56  $records[] = $record;
57  }
58  $result->MoveNext();
59  }
60 
61  $result->Close();
62  return $records;
63  }
64 
65 }
66 
67 
PKPOAIDAO\$oai
$oai
Definition: PKPOAIDAO.inc.php:25
OAIDAO
DAO operations for the OJS OAI interface.
Definition: OAIDAO.inc.php:20
OAIDAO\_getRecordsRecordSet
_getRecordsRecordSet($setIds, $from, $until, $set, $submissionId=null, $orderBy='journal_id, submission_id')
Definition: OAIDAO.inc.php:207
DRIVERDAO\setOAI
setOAI($oai)
Definition: DRIVERDAO.inc.php:25
PKPOAIDAO\_returnRecordFromRow
_returnRecordFromRow($row)
Definition: PKPOAIDAO.inc.php:215
DRIVERDAO\getDRIVERRecordsOrIdentifiers
& getDRIVERRecordsOrIdentifiers($setIds, $from, $until, $offset, $limit, &$total, $funcName)
Definition: DRIVERDAO.inc.php:44
DRIVERDAO
DAO operations for DRIVER.
Definition: DRIVERDAO.inc.php:19