Open Journal Systems  2.4.4
 All Classes Namespaces Functions Variables Groups Pages
OpenAIREDAO Class Reference
Inheritance diagram for OpenAIREDAO:
OAIDAO PKPOAIDAO DAO

Public Member Functions

getOpenAIRERecordsOrIdentifiers ($setIds, $from, $until, $offset, $limit, &$total, $funcName)
 
 isOpenAIREArticle ($articleId)
 
 isOpenAIRERecord ($row)
 
 OpenAIREDAO ()
 
 setOAI (&$oai)
 
- Public Member Functions inherited from OAIDAO
 getAccessibleRecordWhereClause ()
 
 getDateRangeWhereClause ($from, $until)
 
 getEarliestDatestamp ($setIds=array())
 
getIssue ($issueId)
 
getJournal ($journalId)
 
getJournalSets ($journalId, $offset, $limit, &$total)
 
 getRecordJoinClause ($articleId=null, $setIds=array(), $set=null)
 
 getRecordSelectStatement ()
 
getSection ($sectionId)
 
 getSetJournalSectionId ($journalSpec, $sectionSpec, $restrictJournalId=null)
 
 OAIDAO ()
 
setOAIData (&$record, &$row, $isRecord=true)
 
- Public Member Functions inherited from PKPOAIDAO
_doCommonOAIFromRowOperations (&$record, &$row)
 
_getRecordsRecordSet ($setIds, $from, $until, $set)
 
_returnIdentifierFromRow (&$row)
 
_returnRecordFromRow (&$row)
 
 clearTokens ()
 
 getAccessibleRecordWhereClause ()
 
 getDateRangeWhereClause ($from, $until)
 
 getEarliestDatestamp ($selectStatement, $setIds=array())
 
getIdentifiers ($setIds, $from, $until, $set, $offset, $limit, &$total)
 
 getOrderedRecordParams ($dataObjectId=null, $setIds=array(), $set=null)
 
getRecord ($dataObjectId, $setIds=array())
 
 getRecordJoinClause ($dataObjectId=null, $setIds=array(), $set=null)
 
getRecords ($setIds, $from, $until, $set, $offset, $limit, &$total)
 
 getRecordSelectStatement ()
 
getToken ($tokenId)
 
insertToken (&$token)
 
 PKPOAIDAO ()
 
 recordExists ($dataObjectId, $setIds=array())
 
 setOAI (&$oai)
 
setOAIData ($record, &$row, $isRecord)
 
- Public Member Functions inherited from DAO
 concat ()
 
 convertFromDB ($value, $type)
 
 convertToDB ($value, &$type)
 
 DAO ($dataSource=null, $callHooks=true)
 
 dateFromDB ($d)
 
 datetimeFromDB ($dt)
 
 datetimeToDB ($dt)
 
 dateToDB ($d)
 
 flushCache ()
 
 formatDateToDB ($date, $defaultNumWeeks=null, $acceptPastDate=true)
 
 getAffectedRows ()
 
 getDataChangedEvent ($elementId=null, $parentElementId=null)
 
getDataSource ()
 
 getDirectionMapping ($direction)
 
 getDriver ()
 
 getInsertId ($table= '', $id= '', $callHooks=true)
 
 getType ($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)
 

Additional Inherited Members

- Public Attributes inherited from OAIDAO
 $journalDao
 
- Public Attributes inherited from DAO
 $_dataSource
 

Detailed Description

DAO operations for OpenAIRE.

Definition at line 19 of file OpenAIREDAO.inc.php.

Member Function Documentation

& OpenAIREDAO::getOpenAIRERecordsOrIdentifiers (   $setIds,
  $from,
  $until,
  $offset,
  $limit,
$total,
  $funcName 
)

Return set of OAI records or identifiers matching specified parameters.

Parameters
$setIdsarray Objects ids that specify an OAI set, in this case only journal ID.
$fromint timestamp
$untilint timestamp
$offsetint
$limitint
$totalint
$funcNamestring
Returns
array OAIRecord

Definition at line 51 of file OpenAIREDAO.inc.php.

References PKPOAIDAO\_getRecordsRecordSet(), and isOpenAIRERecord().

OpenAIREDAO::isOpenAIREArticle (   $articleId)

Check if it's an OpenAIRE article, if it contains projectID.

Parameters
$articleIdint
Returns
boolean

Definition at line 101 of file OpenAIREDAO.inc.php.

References DAO\retrieve().

OpenAIREDAO::isOpenAIRERecord (   $row)

Check if it's an OpenAIRE record, if it contains projectID.

Parameters
$rowarray of database fields
Returns
boolean

Definition at line 78 of file OpenAIREDAO.inc.php.

References DAORegistry\getDAO(), and DAO\retrieve().

Referenced by getOpenAIRERecordsOrIdentifiers().

OpenAIREDAO::OpenAIREDAO ( )

Constructor.

Definition at line 24 of file OpenAIREDAO.inc.php.

OpenAIREDAO::setOAI ( $oai)

Set parent OAI object.

Parameters
JournalOAI

Definition at line 32 of file OpenAIREDAO.inc.php.


The documentation for this class was generated from the following file: