Open Journal Systems
3.3.0
|
Public Member Functions | |
_doCommonOAIFromRowOperations ($record, $row) | |
_getRecordsRecordSet ($setIds, $from, $until, $set, $submissionId=null, $orderBy='journal_id, submission_id') | |
_returnIdentifierFromRow ($row) | |
_returnRecordFromRow ($row) | |
clearTokens () | |
getEarliestDatestamp ($setIds=array()) | |
getIdentifiers ($setIds, $from, $until, $set, $offset, $limit, &$total) | |
getRecord ($dataObjectId, $setIds=array()) | |
getRecords ($setIds, $from, $until, $set, $offset, $limit, &$total) | |
getToken ($tokenId) | |
insertToken ($token) | |
recordExists ($dataObjectId, $setIds=array()) | |
setOAI ($oai) | |
Public Member Functions inherited from DAO | |
__construct ($dataSource=null, $callHooks=true) | |
concat () | |
convertFromDB ($value, $type) | |
convertToDB ($value, &$type) | |
dateFromDB ($d) | |
datetimeFromDB ($dt) | |
datetimeToDB ($dt) | |
dateToDB ($d) | |
flushCache () | |
formatDateToDB ($date, $defaultNumWeeks=null, $acceptPastDate=true) | |
getAdditionalFieldNames () | |
getAffectedRows () | |
getDataObjectSettings ($tableName, $idFieldName, $idFieldValue, $dataObject) | |
getDataSource () | |
getDirectionMapping ($direction) | |
getDriver () | |
getLocaleFieldNames () | |
getType ($value) | |
handleError ($dataSource, $sql) | |
nullOrInt ($value) | |
replace ($table, $arrFields, $keyCols) | |
& | retrieve ($sql, $params=false, $callHooks=true) |
& | retrieveCached ($sql, $params=false, $secsToCache=3600, $callHooks=true) |
& | retrieveLimit ($sql, $params=false, $numRows=false, $offset=false, $callHooks=true) |
& | retrieveRange ($sql, $params=false, $dbResultRange=null, $callHooks=true) |
setCacheDir () | |
setDataSource ($dataSource) | |
update ($sql, $params=false, $callHooks=true, $dieOnError=true) | |
updateDataObjectSettings ($tableName, $dataObject, $idArray) | |
Data Fields | |
$oai | |
Data Fields inherited from DAO | |
$_dataSource | |
Additional Inherited Members | |
Static Public Member Functions inherited from DAO | |
static | getDataChangedEvent ($elementId=null, $parentElementId=null, $content='') |
Protected Member Functions inherited from DAO | |
_getInsertId ($table='', $id='') | |
Base class for DAO operations for the OAI interface.
Definition at line 19 of file PKPOAIDAO.inc.php.
PKPOAIDAO::_doCommonOAIFromRowOperations | ( | $record, | |
$row | |||
) |
Common operations for OAIRecord and OAIIdentifier object data set.
$record | OAIRecord/OAIIdentifier |
$row | array |
Definition at line 244 of file PKPOAIDAO.inc.php.
References DAO\datetimeFromDB(), and OAIUtils\UTCDate().
Referenced by _returnIdentifierFromRow(), and _returnRecordFromRow().
|
abstract |
Get a OAI records record set.
$setIds | array Objects ids that specify an OAI set, in hierarchical order. |
$from | int/string *nix timestamp or ISO datetime string |
$until | int/string *nix timestamp or ISO datetime string |
$set | string |
$submissionId | int optional |
$orderBy | string UNFILTERED |
Reimplemented in OAIDAO.
Referenced by getEarliestDatestamp(), getIdentifiers(), getRecord(), and getRecords().
PKPOAIDAO::_returnIdentifierFromRow | ( | $row | ) |
Return OAIIdentifier object from database row.
$row | array |
Definition at line 229 of file PKPOAIDAO.inc.php.
References _doCommonOAIFromRowOperations(), and HookRegistry\call().
Referenced by getIdentifiers().
PKPOAIDAO::_returnRecordFromRow | ( | $row | ) |
Return OAIRecord object from database row.
$row | array |
Definition at line 215 of file PKPOAIDAO.inc.php.
References _doCommonOAIFromRowOperations(), and HookRegistry\call().
Referenced by DRIVERDAO\getDRIVERRecordsOrIdentifiers(), getEarliestDatestamp(), getRecord(), and getRecords().
PKPOAIDAO::clearTokens | ( | ) |
Clear stale resumption tokens.
Definition at line 42 of file PKPOAIDAO.inc.php.
References DAO\update().
PKPOAIDAO::getEarliestDatestamp | ( | $setIds = array() | ) |
Return the *nix timestamp of the earliest published submission.
$setIds | array optional Objects ids that specify an OAI set, in hierarchical order. If empty, all records from all sets will be included. |
Definition at line 193 of file PKPOAIDAO.inc.php.
References _getRecordsRecordSet(), _returnRecordFromRow(), and OAIUtils\UTCtoTimestamp().
PKPOAIDAO::getIdentifiers | ( | $setIds, | |
$from, | |||
$until, | |||
$set, | |||
$offset, | |||
$limit, | |||
& | $total | ||
) |
Return set of OAI identifiers matching specified parameters.
$setIds | array Objects ids that specify an OAI set, in hierarchical order. The returned records will be part of this set. |
$from | int timestamp |
$until | int timestamp |
$set | string setSpec |
$offset | int |
$limit | int |
$total | int |
Definition at line 171 of file PKPOAIDAO.inc.php.
References _getRecordsRecordSet(), and _returnIdentifierFromRow().
PKPOAIDAO::getRecord | ( | $dataObjectId, | |
$setIds = array() |
|||
) |
Return OAI record for specified data object.
$dataObjectId | int |
$setIds | array optional Objects ids that specify an OAI set, in hierarchical order. If passed, will check for the data object id only inside the specified set. |
Definition at line 120 of file PKPOAIDAO.inc.php.
References _getRecordsRecordSet(), and _returnRecordFromRow().
Referenced by recordExists().
PKPOAIDAO::getRecords | ( | $setIds, | |
$from, | |||
$until, | |||
$set, | |||
$offset, | |||
$limit, | |||
& | $total | ||
) |
Return set of OAI records matching specified parameters.
$setIds | array Objects ids that specify an OAI set, in hierarchical order. The returned records will be part of this set. |
$from | int timestamp |
$until | int timestamp |
$set | string setSpec |
$offset | int |
$limit | int |
$total | int |
Definition at line 143 of file PKPOAIDAO.inc.php.
References _getRecordsRecordSet(), and _returnRecordFromRow().
PKPOAIDAO::getToken | ( | $tokenId | ) |
Retrieve a resumption token.
$tokenId | string OAI resumption token |
Definition at line 53 of file PKPOAIDAO.inc.php.
References DAO\retrieve().
PKPOAIDAO::insertToken | ( | $token | ) |
Insert an OAI resumption token, generating a new ID.
$token | OAIResumptionToken |
Definition at line 76 of file PKPOAIDAO.inc.php.
References DAO\retrieve(), and DAO\update().
PKPOAIDAO::recordExists | ( | $dataObjectId, | |
$setIds = array() |
|||
) |
Check if a data object ID specifies a data object.
$dataObjectId | int |
$setIds | array optional Objects ids that specify an OAI set, in hierarchical order. If passed, will check for the data object id only inside the specified set. |
Definition at line 108 of file PKPOAIDAO.inc.php.
References getRecord().
PKPOAIDAO::setOAI | ( | $oai | ) |
Set parent OAI object.
JournalOAI |
Reimplemented in DRIVERDAO.
Definition at line 32 of file PKPOAIDAO.inc.php.
References $oai.
OAI PKPOAIDAO::$oai |
parent OAI object
Definition at line 25 of file PKPOAIDAO.inc.php.
Referenced by DRIVERDAO\setOAI(), and setOAI().