Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
OAIDAO Class Reference
Inheritance diagram for OAIDAO:
PKPOAIDAO DAO

Public Member Functions

 getAccessibleRecordWhereClause ()
 
 getDateRangeWhereClause ($from, $until)
 
 getEarliestDatestamp ($setIds)
 
 getPress ($pressId)
 
 getRecordJoinClause ($publicationFormatId=null, $setIds=array(), $set=null)
 
 getRecordSelectStatement ()
 
 getSeries ($seriesId)
 
 getSetPressSeriesId ($pressSpec, $seriesSpec, $restrictPressId=null)
 
getSets ($pressId=null, $offset, $limit, &$total)
 
 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 ()
 
getDataSource ()
 
 getDirectionMapping ($direction)
 
 getDriver ()
 
 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

- Static Public Member Functions inherited from DAO
static getDataChangedEvent ($elementId=null, $parentElementId=null)
 
- Public Attributes inherited from PKPOAIDAO
 $oai
 
- Public Attributes inherited from DAO
 $_dataSource
 
- Protected Member Functions inherited from DAO
 _getInsertId ($table= '', $id= '')
 

Detailed Description

DAO operations for the OMP OAI interface.

See Also
OAI

Definition at line 19 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.

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

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

OAIDAO::getPress (   $pressId)

Cached function to get a press

Parameters
$pressIdint
Returns
Press

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

Referenced by getSeries().

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

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

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

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

OAIDAO::getSeries (   $seriesId)

Cached function to get a press series

Parameters
$seriesIdint
Returns
Series

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

References DAORegistry\getDAO(), and getPress().

OAIDAO::getSetPressSeriesId (   $pressSpec,
  $seriesSpec,
  $restrictPressId = null 
)

Return the press ID and series ID corresponding to a press/series pairing.

Parameters
$pressSpecstring
$seriesSpecstring
$restrictPressIdint
Returns
array (int, int, int)

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

& OAIDAO::getSets (   $pressId = null,
  $offset,
  $limit,
$total 
)

Return hierarchy of OAI sets (presses plus press series).

Parameters
$pressIdint
$offsetint
$totalint
Returns
array OAISet

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

OAIDAO::OAIDAO ( )

Constructor.

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

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

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


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