Operations for retrieving and modifying Monograph objects. More...
Public Member Functions | |
| _cacheMiss (&$cache, $id) | |
| & | _fromRow (&$row) |
| & | _getCache () |
| _monographFromRow (&$monograph, &$row) | |
| addCategory ($monographId, $categoryId) | |
| categoryAssociationExists ($monographId, $categoryId) | |
| deleteById ($monographId) | |
| deleteByPressId ($pressId) | |
| deleteObject (&$monograph) | |
| flushCache () | |
| & | getById ($monographId, $pressId=null, $useCache=false) |
| & | getByPressId ($pressId) |
| & | getByUserId ($userId, $pressId=null) |
| getCategories ($monographId, $pressId=null) | |
| getInsertMonographId () | |
| getLocaleFieldNames () | |
| & | getMonographsBySeriesEditorId ($pressId=null, $seriesEditorId=null) |
| getUnassignedCategories ($monographId, $pressId=null) | |
| & | getUnpublishedMonographsByPressId ($pressId) |
| insertMonograph (&$monograph) | |
| MonographDAO () | |
| newDataObject () | |
| removeCategories ($monographId) | |
| removeCategory ($monographId, $categoryId) | |
| removeMonographsFromSeries ($seriesId) | |
| updateLocaleFields (&$monograph) | |
| updateMonograph ($monograph) | |
Operations for retrieving and modifying Monograph objects.
Definition at line 19 of file MonographDAO.inc.php.
| MonographDAO._cacheMiss | ( | &$ | cache, | |
| $ | id | |||
| ) |
Callback for a cache miss.
| $cache | Cache | |
| $id | string |
Definition at line 37 of file MonographDAO.inc.php.
| & MonographDAO._fromRow | ( | &$ | row | ) |
Internal function to return an Monograph object from a row.
| $row | array |
Reimplemented in ReviewerSubmissionDAO, and SeriesEditorSubmissionDAO.
Definition at line 137 of file MonographDAO.inc.php.
References _monographFromRow(), and newDataObject().
Referenced by getById().
| & MonographDAO._getCache | ( | ) |
Get the monograph cache.
Definition at line 47 of file MonographDAO.inc.php.
Referenced by flushCache(), and getById().
| MonographDAO._monographFromRow | ( | &$ | monograph, | |
| &$ | row | |||
| ) |
Internal function to fill in the passed monograph object from the row.
| $monograph | Monograph output monograph | |
| $row | array input row |
Definition at line 156 of file MonographDAO.inc.php.
Referenced by _fromRow().
| MonographDAO.addCategory | ( | $ | monographId, | |
| $ | categoryId | |||
| ) |
Associate a category with a monograph.
| $monographId | int | |
| $categoryId | int |
Definition at line 586 of file MonographDAO.inc.php.
| MonographDAO.categoryAssociationExists | ( | $ | monographId, | |
| $ | categoryId | |||
| ) |
Check if an monograph exists with the specified ID.
| $monographId | int | |
| $pressId | int |
Definition at line 695 of file MonographDAO.inc.php.
| MonographDAO.deleteById | ( | $ | monographId | ) |
Delete an monograph by ID.
| $monographId | int |
Reimplemented in PublishedMonographDAO.
Definition at line 273 of file MonographDAO.inc.php.
References getById().
Referenced by deleteByPressId(), and deleteObject().
| MonographDAO.deleteByPressId | ( | $ | pressId | ) |
Delete all monographs by press ID.
| $pressId | int |
Definition at line 454 of file MonographDAO.inc.php.
References deleteById(), MonographSearchIndex.deleteTextIndex(), and getByPressId().
| MonographDAO.deleteObject | ( | &$ | monograph | ) |
Delete monograph by id.
| $monograph | object Monograph |
Definition at line 265 of file MonographDAO.inc.php.
References deleteById().
| MonographDAO.flushCache | ( | ) |
Flush the monograph cache.
Definition at line 528 of file MonographDAO.inc.php.
References _getCache().
Referenced by removeMonographsFromSeries(), and updateMonograph().
| & MonographDAO.getById | ( | $ | monographId, | |
| $ | pressId = null, |
|||
| $ | useCache = false | |||
| ) |
Retrieve Monograph by monograph id
| $monographId | int | |
| $pressId | int optional | |
| $useCache | boolean optional |
Reimplemented in PublishedMonographDAO.
Definition at line 86 of file MonographDAO.inc.php.
References _fromRow(), and _getCache().
Referenced by deleteById().
| & MonographDAO.getByPressId | ( | $ | pressId | ) |
Get all monographs for a press.
| $pressId | int |
Definition at line 385 of file MonographDAO.inc.php.
Referenced by deleteByPressId().
| & MonographDAO.getByUserId | ( | $ | userId, | |
| $ | pressId = null | |||
| ) |
Get all monographs for a user.
| $userId | int | |
| $pressId | int optional |
Definition at line 472 of file MonographDAO.inc.php.
| MonographDAO.getCategories | ( | $ | monographId, | |
| $ | pressId = null | |||
| ) |
Get the categories associated with a given monograph.
| $monographId | int |
Definition at line 638 of file MonographDAO.inc.php.
| MonographDAO.getInsertMonographId | ( | ) |
Get the ID of the last inserted monograph.
Definition at line 521 of file MonographDAO.inc.php.
Referenced by insertMonograph().
| MonographDAO.getLocaleFieldNames | ( | ) |
Get a list of fields for which localized data is supported
Definition at line 59 of file MonographDAO.inc.php.
| & MonographDAO.getMonographsBySeriesEditorId | ( | $ | pressId = null, |
|
| $ | seriesEditorId = null | |||
| ) |
Get all unassigned monographs for a press or all presses
| $pressId | int optional the ID of the press to query. | |
| $seriesEditorId | int optional the ID of the series editor whose series will be included in the results (excluding others). |
Definition at line 545 of file MonographDAO.inc.php.
| MonographDAO.getUnassignedCategories | ( | $ | monographId, | |
| $ | pressId = null | |||
| ) |
Get the categories not associated with a given monograph.
| $monographId | int |
Definition at line 665 of file MonographDAO.inc.php.
| & MonographDAO.getUnpublishedMonographsByPressId | ( | $ | pressId | ) |
Get unpublished monographs for a press.
| $pressId | int |
Definition at line 419 of file MonographDAO.inc.php.
| MonographDAO.insertMonograph | ( | &$ | monograph | ) |
inserts a new monograph into monographs table
| Monograph | object |
Definition at line 186 of file MonographDAO.inc.php.
References getInsertMonographId(), and updateLocaleFields().
| MonographDAO.MonographDAO | ( | ) |
Constructor.
Definition at line 26 of file MonographDAO.inc.php.
Referenced by PublishedMonographDAO.PublishedMonographDAO(), ReviewerSubmissionDAO.ReviewerSubmissionDAO(), and SeriesEditorSubmissionDAO.SeriesEditorSubmissionDAO().
| MonographDAO.newDataObject | ( | ) |
Get a new data object representing the monograph.
Reimplemented in PublishedMonographDAO, ReviewerSubmissionDAO, and SeriesEditorSubmissionDAO.
Definition at line 147 of file MonographDAO.inc.php.
Referenced by _fromRow().
| MonographDAO.removeCategories | ( | $ | monographId | ) |
Unassociate all categories.
| $monographId | int |
Definition at line 626 of file MonographDAO.inc.php.
| MonographDAO.removeCategory | ( | $ | monographId, | |
| $ | categoryId | |||
| ) |
Unassociate a category with a monograph.
| $monographId | int | |
| $categoryId | int |
Definition at line 604 of file MonographDAO.inc.php.
| MonographDAO.removeMonographsFromSeries | ( | $ | seriesId | ) |
Remove all monographs from an series.
| $seriesId | int |
Definition at line 508 of file MonographDAO.inc.php.
References flushCache().
| MonographDAO.updateLocaleFields | ( | &$ | monograph | ) |
Update the localized fields for this object.
| $monograph |
Definition at line 73 of file MonographDAO.inc.php.
Referenced by insertMonograph(), and updateMonograph().
| MonographDAO.updateMonograph | ( | $ | monograph | ) |
updates a monograph
| Monograph | object |
Definition at line 222 of file MonographDAO.inc.php.
References flushCache(), and updateLocaleFields().
Referenced by SeriesEditorSubmissionDAO.updateSeriesEditorSubmission().
1.7.1