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

Public Member Functions

_returnExternalFeedFromRow (&$row)
 
 deleteExternalFeed ($externalFeed)
 
 deleteExternalFeedById ($feedId)
 
 deleteExternalFeedsByJournalId ($journalId)
 
 ExternalFeedDAO ($parentPluginName)
 
getExternalFeed ($feedId)
 
 getExternalFeedJournalId ($feedId)
 
getExternalFeedsByJournalId ($journalId, $rangeInfo=null)
 
 getInsertExternalFeedId ()
 
 getLocaleFieldNames ()
 
 insertExternalFeed (&$externalFeed)
 
 resequenceExternalFeeds ($journalId)
 
 updateExternalFeed (&$externalFeed)
 
 updateLocaleFields (&$externalFeed)
 
- 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 DAO
 $_dataSource
 

Detailed Description

Operations for retrieving and modifying ExternalFeed objects.

Definition at line 18 of file ExternalFeedDAO.inc.php.

Member Function Documentation

& ExternalFeedDAO::_returnExternalFeedFromRow ( $row)

Internal function to return ExternalFeed object from a row.

Parameters
$rowarray
Returns
ExternalFeed

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

References PluginRegistry\getPlugin().

Referenced by getExternalFeed().

ExternalFeedDAO::deleteExternalFeed (   $externalFeed)

Delete external feed.

Parameters
$externalFeedExternalFeed
Returns
boolean

Definition at line 179 of file ExternalFeedDAO.inc.php.

References deleteExternalFeedById().

ExternalFeedDAO::deleteExternalFeedById (   $feedId)

Delete external feed by ID.

Parameters
$feedIdint
Returns
boolean

Definition at line 188 of file ExternalFeedDAO.inc.php.

References DAO\update().

Referenced by deleteExternalFeed(), and deleteExternalFeedsByJournalId().

ExternalFeedDAO::deleteExternalFeedsByJournalId (   $journalId)

Delete external_feed by journal ID.

Parameters
$journalIdint

Definition at line 202 of file ExternalFeedDAO.inc.php.

References deleteExternalFeedById(), and getExternalFeedsByJournalId().

ExternalFeedDAO::ExternalFeedDAO (   $parentPluginName)

Constructor

Definition at line 25 of file ExternalFeedDAO.inc.php.

& ExternalFeedDAO::getExternalFeed (   $feedId)

Retrieve an ExternalFeed by ID.

Parameters
$feedIdint
Returns
ExternalFeed

Definition at line 35 of file ExternalFeedDAO.inc.php.

References _returnExternalFeedFromRow(), and DAO\retrieve().

ExternalFeedDAO::getExternalFeedJournalId (   $feedId)

Retrieve external feed journal ID by feed ID.

Parameters
$feedIdint
Returns
int

Definition at line 53 of file ExternalFeedDAO.inc.php.

References DAO\retrieve().

& ExternalFeedDAO::getExternalFeedsByJournalId (   $journalId,
  $rangeInfo = null 
)

Retrieve external feeds matching a particular journal ID.

Parameters
$journalIdint
$rangeInfoobject DBRangeInfo object describing range of results to return
Returns
object DAOResultFactory containing matching ExternalFeeds

Definition at line 216 of file ExternalFeedDAO.inc.php.

References DAO\retrieveRange().

Referenced by deleteExternalFeedsByJournalId().

ExternalFeedDAO::getInsertExternalFeedId ( )

Get the ID of the last inserted external feed.

Returns
int

Definition at line 257 of file ExternalFeedDAO.inc.php.

References DAO\getInsertId().

Referenced by insertExternalFeed().

ExternalFeedDAO::getLocaleFieldNames ( )

Get a list of fields for which localized data is supported

Returns
array

Definition at line 128 of file ExternalFeedDAO.inc.php.

ExternalFeedDAO::insertExternalFeed ( $externalFeed)

Insert a new external feed.

Parameters
$externalFeedExternalFeed
Returns
int

Definition at line 95 of file ExternalFeedDAO.inc.php.

References getInsertExternalFeedId(), DAO\update(), and updateLocaleFields().

ExternalFeedDAO::resequenceExternalFeeds (   $journalId)

Sequentially renumber external feeds in their sequence order.

Definition at line 230 of file ExternalFeedDAO.inc.php.

References DAO\retrieve(), and DAO\update().

ExternalFeedDAO::updateExternalFeed ( $externalFeed)

Update an existing external feed.

Parameters
$externalFeedExternalFeed
Returns
boolean

Definition at line 147 of file ExternalFeedDAO.inc.php.

References DAO\update(), and updateLocaleFields().

ExternalFeedDAO::updateLocaleFields ( $externalFeed)

Update the localized fields for this object.

Parameters
$externalFeed

Definition at line 136 of file ExternalFeedDAO.inc.php.

References DAO\updateDataObjectSettings().

Referenced by insertExternalFeed(), and updateExternalFeed().


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