|
Open Monograph Press
3.3.0
|
Public Member Functions | |
| _fromRow ($row) | |
| changePubId ($pubObjectId, $pubIdType, $pubId) | |
| deleteAllPubIds ($contextId, $pubIdType) | |
| deleteById ($chapterId) | |
| deleteObject ($chapter) | |
| deletePubId ($pubObjectId, $pubIdType) | |
| getAdditionalFieldNames () | |
| getByContextId ($pressId) | |
| getByPublicationId ($publicationId, $orderBySequence=true) | |
| getChapter ($chapterId, $publicationId=null) | |
| getInsertId () | |
| getLocaleFieldNames () | |
| insertChapter ($chapter) | |
| newDataObject () | |
| pubIdExists ($pubIdType, $pubId, $excludePubObjectId, $contextId) | |
| resequenceChapters ($publicationId) | |
| updateLocaleFields ($chapter) | |
| updateObject ($chapter) | |
Public Member Functions inherited from DAO | |
| __construct ($dataSource=null, $callHooks=true) | |
| concat () | |
| convertFromDB ($value, $type) | |
| convertToDB ($value, &$type) | |
| dateFromDB ($d) | |
| datetimeFromDB ($dt) | |
| datetimeToDB ($dt) | |
| dateToDB ($d) | |
| flushCache () | |
| formatDateToDB ($date, $defaultNumWeeks=null, $acceptPastDate=true) | |
| getAffectedRows () | |
| getDataObjectSettings ($tableName, $idFieldName, $idFieldValue, $dataObject) | |
| getDataSource () | |
| getDirectionMapping ($direction) | |
| getDriver () | |
| getType ($value) | |
| handleError ($dataSource, $sql) | |
| nullOrInt ($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 | |
Static Public Member Functions inherited from DAO | |
| static | getDataChangedEvent ($elementId=null, $parentElementId=null, $content='') |
Data Fields inherited from DAO | |
| $_dataSource | |
Protected Member Functions inherited from DAO | |
| _getInsertId ($table='', $id='') | |
Operations for retrieving and modifying ChapterAuthor objects.
Operations for retrieving and modifying Chapter objects.
@inchapter monograph
Definition at line 21 of file ChapterDAO.inc.php.
| ChapterDAO::_fromRow | ( | $row | ) |
Internal function to return a Chapter object from a row.
| $row | array |
Definition at line 120 of file ChapterDAO.inc.php.
References HookRegistry\call(), DAO\getDataObjectSettings(), and newDataObject().
Referenced by getChapter().
| ChapterDAO::changePubId | ( | $pubObjectId, | |
| $pubIdType, | |||
| $pubId | |||
| ) |
Change the public ID of a submission.
| $pubObjectId | int ID of the pub object |
| $pubIdType | string One of the NLM pub-id-type values or 'other::something' if not part of the official NLM list (see http://dtd.nlm.nih.gov/publishing/tag-library/n-4zh0.html). |
| $pubId | string |
Reimplemented from PKPPubIdPluginDAO.
Definition at line 274 of file ChapterDAO.inc.php.
References DAO\replace().
| ChapterDAO::deleteAllPubIds | ( | $contextId, | |
| $pubIdType | |||
| ) |
Delete the public IDs of all submissions in this context.
| $contextId | int |
| $pubIdType | string One of the NLM pub-id-type values or 'other::something' if not part of the official NLM list (see http://dtd.nlm.nih.gov/publishing/tag-library/n-4zh0.html). |
Reimplemented from PKPPubIdPluginDAO.
Definition at line 306 of file ChapterDAO.inc.php.
References DAO\flushCache(), getByContextId(), and DAO\update().
| ChapterDAO::deleteById | ( | $chapterId | ) |
Delete a board chapter, including membership info
| $chapterId | int |
Definition at line 196 of file ChapterDAO.inc.php.
References DAO\update().
Referenced by deleteObject().
| ChapterDAO::deleteObject | ( | $chapter | ) |
Delete a board chapter, including membership info
| $chapter | Chapter |
Definition at line 188 of file ChapterDAO.inc.php.
References deleteById().
| ChapterDAO::deletePubId | ( | $pubObjectId, | |
| $pubIdType | |||
| ) |
Delete the public ID of a submission.
| $pubObjectId | int ID of the pub object |
| $pubIdType | string One of the NLM pub-id-type values or 'other::something' if not part of the official NLM list (see http://dtd.nlm.nih.gov/publishing/tag-library/n-4zh0.html). |
Reimplemented from PKPPubIdPluginDAO.
Definition at line 291 of file ChapterDAO.inc.php.
References DAO\flushCache(), and DAO\update().
| ChapterDAO::getAdditionalFieldNames | ( | ) |
Get a list of additional fields that do not have dedicated accessors.
Reimplemented from DAO.
Definition at line 98 of file ChapterDAO.inc.php.
| ChapterDAO::getByContextId | ( | $pressId | ) |
Retrieve all chapters of a press.
| $pressId | int |
Definition at line 72 of file ChapterDAO.inc.php.
References DAO\retrieve().
Referenced by deleteAllPubIds().
| ChapterDAO::getByPublicationId | ( | $publicationId, | |
$orderBySequence = true |
|||
| ) |
Retrieve all chapters of a publication.
| $publicationId | int |
| $orderBySequence | boolean |
Definition at line 54 of file ChapterDAO.inc.php.
References DAO\retrieve().
| ChapterDAO::getChapter | ( | $chapterId, | |
$publicationId = null |
|||
| ) |
Retrieve a chapter by ID.
| $chapterId | int |
| $publicationId | int optional |
Definition at line 28 of file ChapterDAO.inc.php.
References _fromRow(), and DAO\retrieve().
| ChapterDAO::getInsertId | ( | ) |
Get the ID of the last inserted board chapter.
Definition at line 241 of file ChapterDAO.inc.php.
References DAO\_getInsertId().
Referenced by insertChapter().
| ChapterDAO::getLocaleFieldNames | ( | ) |
Get the list of fields for which locale data is stored.
Reimplemented from DAO.
Definition at line 89 of file ChapterDAO.inc.php.
| ChapterDAO::insertChapter | ( | $chapter | ) |
Insert a new board chapter.
| $chapter | Chapter |
Definition at line 147 of file ChapterDAO.inc.php.
References getInsertId(), DAO\update(), and updateLocaleFields().
| ChapterDAO::newDataObject | ( | ) |
Get a new data object
Definition at line 111 of file ChapterDAO.inc.php.
Referenced by _fromRow().
| ChapterDAO::pubIdExists | ( | $pubIdType, | |
| $pubId, | |||
| $excludePubObjectId, | |||
| $contextId | |||
| ) |
Checks if public identifier exists (other than for the specified submission ID, which is treated as an exception).
| $pubIdType | string One of the NLM pub-id-type values or 'other::something' if not part of the official NLM list (see http://dtd.nlm.nih.gov/publishing/tag-library/n-4zh0.html). |
| $pubId | string |
| $excludePubObjectId | int ID of the pub object to be excluded from the search. |
| $contextId | int |
Reimplemented from PKPPubIdPluginDAO.
Definition at line 248 of file ChapterDAO.inc.php.
References DAO\retrieve().
| ChapterDAO::resequenceChapters | ( | $publicationId | ) |
Sequentially renumber chapters in their sequence order, optionally by monographId
| $publicationId | int |
Definition at line 207 of file ChapterDAO.inc.php.
References DAO\retrieve(), and DAO\update().
| ChapterDAO::updateLocaleFields | ( | $chapter | ) |
Update the settings for this object
| $chapter | object |
Definition at line 137 of file ChapterDAO.inc.php.
References DAO\updateDataObjectSettings().
Referenced by insertChapter(), and updateObject().
| ChapterDAO::updateObject | ( | $chapter | ) |
Update an existing board chapter.
| $chapter | Chapter |
Definition at line 168 of file ChapterDAO.inc.php.
References DAO\update(), and updateLocaleFields().