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

Public Member Functions

_returnAuthorFromRow (&$row)
 
 BookForReviewAuthorDAO ($parentPluginName)
 
 deleteAuthor (&$author)
 
 deleteAuthorById ($authorId, $bookId=null)
 
 deleteAuthorsByBookForReview ($bookId)
 
getAuthor ($authorId)
 
getAuthorIdsByBookForReview ($bookId)
 
getAuthorsByBookForReview ($bookId)
 
 getInsertAuthorId ()
 
 insertAuthor (&$author)
 
 resequenceAuthors ($bookId)
 
 updateAuthor (&$author)
 
- 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 BookForReviewAuthor objects.

See Also
BookForReviewAuthor

Definition at line 17 of file BookForReviewAuthorDAO.inc.php.

Member Function Documentation

& BookForReviewAuthorDAO::_returnAuthorFromRow ( $row)

Internal function to return a BookForReviewAuthor object from a row.

Parameters
$rowarray
Returns
BookForReviewAuthor

Definition at line 103 of file BookForReviewAuthorDAO.inc.php.

References HookRegistry\call(), and PluginRegistry\getPlugin().

Referenced by getAuthor(), and getAuthorsByBookForReview().

BookForReviewAuthorDAO::BookForReviewAuthorDAO (   $parentPluginName)

Constructor

Definition at line 24 of file BookForReviewAuthorDAO.inc.php.

BookForReviewAuthorDAO::deleteAuthor ( $author)

Delete an Author.

Parameters
$authorAuthor

Definition at line 171 of file BookForReviewAuthorDAO.inc.php.

References deleteAuthorById().

Referenced by deleteAuthorsByBookForReview().

BookForReviewAuthorDAO::deleteAuthorById (   $authorId,
  $bookId = null 
)

Delete an author by ID.

Parameters
$authorIdint
$bookIdint optional

Definition at line 180 of file BookForReviewAuthorDAO.inc.php.

References DAO\update().

Referenced by deleteAuthor().

BookForReviewAuthorDAO::deleteAuthorsByBookForReview (   $bookId)

Delete authors by book for review.

Parameters
$bookIdint

Definition at line 194 of file BookForReviewAuthorDAO.inc.php.

References deleteAuthor(), and getAuthorsByBookForReview().

& BookForReviewAuthorDAO::getAuthor (   $authorId)

Retrieve an author by ID.

Parameters
$authorIdint
Returns
BookForReviewAuthor

Definition at line 34 of file BookForReviewAuthorDAO.inc.php.

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

& BookForReviewAuthorDAO::getAuthorIdsByBookForReview (   $bookId)

Retrieve the IDs of all authors for a book for review.

Parameters
$bookIdint
Returns
array int ordered by sequence

Definition at line 79 of file BookForReviewAuthorDAO.inc.php.

References DAO\retrieve().

& BookForReviewAuthorDAO::getAuthorsByBookForReview (   $bookId)

Retrieve all authors for a book for review.

Parameters
$bookIdint
Returns
array BookForReviewAuthors ordered by sequence

Definition at line 55 of file BookForReviewAuthorDAO.inc.php.

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

Referenced by deleteAuthorsByBookForReview().

BookForReviewAuthorDAO::getInsertAuthorId ( )

Get the ID of the last inserted author.

Returns
int

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

References DAO\getInsertId().

Referenced by insertAuthor().

BookForReviewAuthorDAO::insertAuthor ( $author)

Insert a new BookForReviewAuthor.

Parameters
$authorBookForReviewAuthor

Definition at line 124 of file BookForReviewAuthorDAO.inc.php.

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

BookForReviewAuthorDAO::resequenceAuthors (   $bookId)

Sequentially renumber a book for review's authors in their sequence order.

Parameters
$bookIdint

Definition at line 205 of file BookForReviewAuthorDAO.inc.php.

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

BookForReviewAuthorDAO::updateAuthor ( $author)

Update an existing BookForReviewAuthor.

Parameters
$authorBookForReviewAuthor

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

References DAO\update().


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