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

Public Member Functions

 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)
 

Public Attributes

 $journalDao
 
- Public Attributes inherited from DAO
 $_dataSource
 

Detailed Description

DAO operations for the OJS OAI interface.

See Also
OAI

Definition at line 20 of file OAIDAO.inc.php.

Member Function Documentation

OAIDAO::getAccessibleRecordWhereClause ( )
See Also
lib/pkp/classes/oai/PKPOAIDAO::getAccessibleRecordWhereClause()

Definition at line 215 of file OAIDAO.inc.php.

OAIDAO::getDateRangeWhereClause (   $from,
  $until 
)
See Also
lib/pkp/classes/oai/PKPOAIDAO::getDateRangeWhereClause()

Definition at line 222 of file OAIDAO.inc.php.

References DAO\datetimeToDB().

OAIDAO::getEarliestDatestamp (   $setIds = array())
See Also
lib/pkp/classes/oai/PKPOAIDAO::getEarliestDatestamp()

Definition at line 57 of file OAIDAO.inc.php.

& OAIDAO::getIssue (   $issueId)

Cached function to get an issue

Parameters
$issueIdint
Returns
object

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

Referenced by setOAIData().

& OAIDAO::getJournal (   $journalId)

Cached function to get a journal

Parameters
$journalIdint
Returns
object

Definition at line 66 of file OAIDAO.inc.php.

Referenced by setOAIData().

& OAIDAO::getJournalSets (   $journalId,
  $offset,
  $limit,
$total 
)

Return hierarchy of OAI sets (journals plus journal sections).

Parameters
$journalIdint
$offsetint
$totalint
Returns
array OAISet

Definition at line 108 of file OAIDAO.inc.php.

References HookRegistry\call(), and DAORegistry\getDAO().

OAIDAO::getRecordJoinClause (   $articleId = null,
  $setIds = array(),
  $set = null 
)
See Also
lib/pkp/classes/oai/PKPOAIDAO::getRecordJoinClause()

Definition at line 196 of file OAIDAO.inc.php.

OAIDAO::getRecordSelectStatement ( )
See Also
lib/pkp/classes/oai/PKPOAIDAO::getRecordSelectStatement()

Definition at line 182 of file OAIDAO.inc.php.

& OAIDAO::getSection (   $sectionId)

Cached function to get a journal section

Parameters
$sectionIdint
Returns
object

Definition at line 90 of file OAIDAO.inc.php.

Referenced by setOAIData().

OAIDAO::getSetJournalSectionId (   $journalSpec,
  $sectionSpec,
  $restrictJournalId = null 
)

Return the journal ID and section ID corresponding to a journal/section pairing.

Parameters
$journalSpecstring
$sectionSpecstring
$restrictJournalIdint
Returns
array (int, int)

Definition at line 153 of file OAIDAO.inc.php.

OAIDAO::OAIDAO ( )

Constructor.

Definition at line 39 of file OAIDAO.inc.php.

References DAORegistry\getDAO().

& OAIDAO::setOAIData ( $record,
$row,
  $isRecord = true 
)
See Also
lib/pkp/classes/oai/PKPOAIDAO::setOAIData()

Definition at line 231 of file OAIDAO.inc.php.

References getIssue(), getJournal(), getSection(), and OAI\sets().

Member Data Documentation

OAIDAO::$journalDao

Helper DAOs

Definition at line 23 of file OAIDAO.inc.php.


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