Open Journal Systems  2.4.3
 All Classes Namespaces Functions Variables Groups Pages
ArticleNoteDAO Class Reference
Inheritance diagram for ArticleNoteDAO:
NoteDAO

Public Member Functions

 clearAllArticleNotes ($articleId)
 
 deleteArticleNoteById ($noteId)
 
 getAllArticleNoteFileIds ($articleId)
 
 getArticleNoteById ($noteId)
 
getArticleNotes ($articleId, $rangeInfo=NULL)
 
getArticleNotesByUserId ($userId, $rangeInfo=NULL)
 
 getInsertArticleNoteId ()
 
 insertArticleNote (&$articleNote)
 
 updateArticleNote ($articleNote)
 
- Public Member Functions inherited from NoteDAO
 newDataObject ()
 
 NoteDAO ()
 
- Public Member Functions inherited from PKPNoteDAO
_returnNoteFromRow ($row)
 
 deleteByAssoc ($assocType, $assocId)
 
 deleteById ($noteId, $userId=null)
 
 getAllFileIds ($assocType, $assocId)
 
getByAssoc ($assocType, $assocId, $userId=null)
 
getById ($noteId)
 
getByUserId ($userId, $rangeInfo=null)
 
 getInsertNoteId ()
 
 insertObject (&$note)
 
notesExistByAssoc ($assocType, $assocId, $userId=null)
 
 PKPNoteDAO ()
 
 updateObject (&$note)
 
- 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 ArticleNote objects.

See Also
ArticleNote

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

Member Function Documentation

ArticleNoteDAO::clearAllArticleNotes (   $articleId)

clear all article notes

Parameters
fileIdsarray

Definition at line 110 of file ArticleNoteDAO.inc.php.

References Config\getVar().

ArticleNoteDAO::deleteArticleNoteById (   $noteId)

removes an article note by id

Parameters
noteIdint

Definition at line 83 of file ArticleNoteDAO.inc.php.

References Config\getVar().

ArticleNoteDAO::getAllArticleNoteFileIds (   $articleId)

get all article note file ids

Parameters
fileIdsarray

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

References Config\getVar().

ArticleNoteDAO::getArticleNoteById (   $noteId)

Retrieve Article Note by note id

Parameters
$noteIdint
Returns
ArticleNote object

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

References Config\getVar().

& ArticleNoteDAO::getArticleNotes (   $articleId,
  $rangeInfo = NULL 
)

Retrieve Article Notes by article id.

Parameters
$articleIdint
Returns
DAOResultFactory containing ArticleNotes

Definition at line 31 of file ArticleNoteDAO.inc.php.

References Config\getVar().

& ArticleNoteDAO::getArticleNotesByUserId (   $userId,
  $rangeInfo = NULL 
)

Retrieve Article Notes by user id.

Parameters
$userIdint
Returns
DAOResultFactory containing ArticleNotes

Definition at line 42 of file ArticleNoteDAO.inc.php.

References Config\getVar().

ArticleNoteDAO::getInsertArticleNoteId ( )

Get the ID of the last inserted article note.

Returns
int

Definition at line 74 of file ArticleNoteDAO.inc.php.

References Config\getVar().

ArticleNoteDAO::insertArticleNote ( $articleNote)

inserts a new article note into notes table

Parameters
ArticleNoteobject
Returns
Article Note Id int

Definition at line 64 of file ArticleNoteDAO.inc.php.

References Config\getVar().

ArticleNoteDAO::updateArticleNote (   $articleNote)

updates an article note

Parameters
ArticleNoteobject

Definition at line 92 of file ArticleNoteDAO.inc.php.

References Config\getVar().


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