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

Public Member Functions

 _getXMLGalleyFromId ($galleyId, $articleId=null)
 
 appendXMLGalleys ($hookName, $args)
 
 ArticleXMLGalleyDAO ($parentPluginName)
 
 deleteXMLGalleys ($hookName, $args)
 
 incrementXMLViews ($hookName, $args)
 
 insertXMLGalleys ($hookName, $args)
 
- Public Member Functions inherited from ArticleGalleyDAO
_returnGalleyFromRow (&$row)
 
 ArticleGalleyDAO ()
 
 changePubId ($galleyId, $pubIdType, $pubId)
 
 deleteAllPubIds ($journalId, $pubIdType)
 
 deleteGalley (&$galley)
 
 deleteGalleyById ($galleyId, $articleId=null)
 
 deleteGalleyImage ($galleyId, $fileId)
 
 deleteGalleysByArticle ($articleId)
 
 deleteImagesByGalley ($galleyId)
 
 galleyExistsByFileId ($articleId, $fileId)
 
 getAdditionalFieldNames ()
 
getGalley ($galleyId, $articleId=null)
 
getGalleyByBestGalleyId ($galleyId, $articleId)
 
getGalleyByPubId ($pubIdType, $pubId, $articleId=null)
 
getGalleyImages ($galleyId)
 
getGalleysByArticle ($articleId)
 
getGalleysByJournalId ($journalId)
 
getGalleysBySetting ($settingName, $settingValue, $articleId=null, $journalId=null)
 
 getInsertGalleyId ()
 
 getLocaleFieldNames ()
 
 getNextGalleySequence ($articleId)
 
 incrementViews ($galleyId)
 
 insertGalley (&$galley)
 
 insertGalleyImage ($galleyId, $fileId)
 
 pubIdExists ($pubIdType, $pubId, $galleyId, $journalId)
 
 resequenceGalleys ($articleId)
 
 updateGalley (&$galley)
 
 updateLocaleFields (&$galley)
 
- 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 ArticleGalleyDAO
 $articleFileDao
 
- Public Attributes inherited from DAO
 $_dataSource
 

Detailed Description

Extended DAO methods for XML-derived galleys NB: These require access to a number of hooks in ArticleGalleyDAO to override the default methods; this is prime for refactoring!

Definition at line 21 of file ArticleXMLGalleyDAO.inc.php.

Member Function Documentation

ArticleXMLGalleyDAO::_getXMLGalleyFromId (   $galleyId,
  $articleId = null 
)

Internal function to return an ArticleXMLGalley object from an XML galley Id

Parameters
$galleyIdint
$articleIdint
Returns
ArticleXMLGalley

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

References ArticleGalleyDAO\_returnGalleyFromRow(), PluginRegistry\getPlugin(), and DAO\retrieve().

Referenced by appendXMLGalleys().

ArticleXMLGalleyDAO::appendXMLGalleys (   $hookName,
  $args 
)

Append XML-derived galleys (eg. PDF) to the list of galleys for an article

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

References _getXMLGalleyFromId(), Request\getJournal(), PluginRegistry\getPlugin(), and DAO\retrieve().

ArticleXMLGalleyDAO::ArticleXMLGalleyDAO (   $parentPluginName)

Constructor

Definition at line 28 of file ArticleXMLGalleyDAO.inc.php.

ArticleXMLGalleyDAO::deleteXMLGalleys (   $hookName,
  $args 
)

Delete XML-derived galleys from article_xml_galleys when the XML galley is deleted

Definition at line 197 of file ArticleXMLGalleyDAO.inc.php.

References DAO\update().

ArticleXMLGalleyDAO::incrementXMLViews (   $hookName,
  $args 
)

Increment views on XML-derived galleys

Definition at line 218 of file ArticleXMLGalleyDAO.inc.php.

References DAO\update().

ArticleXMLGalleyDAO::insertXMLGalleys (   $hookName,
  $args 
)

Insert XML-derived galleys into article_xml_galleys

Definition at line 135 of file ArticleXMLGalleyDAO.inc.php.

References DAO\update().


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