|
Open Monograph Press
3.3.0
|
Public Member Functions | |
| __construct () | |
| deleteByAssoc ($assocType, $assocId) | |
| deleteByMonographId ($monographId) | |
| deleteNewRelease ($monographId, $assocType, $assocId) | |
| getMonographIdsByAssoc ($assocType, $assocId) | |
| getMonographsByAssoc ($assocType, $assocId) | |
| getNewReleaseAll ($monographId) | |
| insertNewRelease ($monographId, $assocType, $assocId) | |
| isNewRelease ($monographId, $assocType, $assocId) | |
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) | |
| getAdditionalFieldNames () | |
| getAffectedRows () | |
| getDataObjectSettings ($tableName, $idFieldName, $idFieldValue, $dataObject) | |
| getDataSource () | |
| getDirectionMapping ($direction) | |
| getDriver () | |
| getLocaleFieldNames () | |
| 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 setting new release status on various items.
Definition at line 17 of file NewReleaseDAO.inc.php.
| NewReleaseDAO::__construct | ( | ) |
Constructor
Definition at line 21 of file NewReleaseDAO.inc.php.
| NewReleaseDAO::deleteByAssoc | ( | $assocType, | |
| $assocId | |||
| ) |
Delete a new release by association.
| $assocType | int ASSOC_TYPE_... |
| $assocId | int |
Definition at line 117 of file NewReleaseDAO.inc.php.
References DAO\update().
| NewReleaseDAO::deleteByMonographId | ( | $monographId | ) |
Delete a new release by ID.
| $monographId | int |
| $pressId | int optional |
Definition at line 105 of file NewReleaseDAO.inc.php.
References DAO\update().
| NewReleaseDAO::deleteNewRelease | ( | $monographId, | |
| $assocType, | |||
| $assocId | |||
| ) |
Delete a new release.
| $monographId | int |
| $assocType | int ASSOC_TYPE_... |
| $assocId | int |
Definition at line 130 of file NewReleaseDAO.inc.php.
References DAO\update().
| NewReleaseDAO::getMonographIdsByAssoc | ( | $assocType, | |
| $assocId | |||
| ) |
Get monograph IDs by association.
| $assocType | int ASSOC_TYPE_... |
| $assocId | int |
Definition at line 31 of file NewReleaseDAO.inc.php.
References DAO\retrieve().
| NewReleaseDAO::getMonographsByAssoc | ( | $assocType, | |
| $assocId | |||
| ) |
Get monographs by association.
| $assocType | int ASSOC_TYPE_... |
| $assocId | int |
Definition at line 54 of file NewReleaseDAO.inc.php.
References PKPServices\get(), and DAO\retrieve().
| NewReleaseDAO::getNewReleaseAll | ( | $monographId | ) |
Return the monograph's new release settings in all assoc types
| $monographId | int The monograph ID to get the new release state |
Definition at line 172 of file NewReleaseDAO.inc.php.
References DAO\retrieve().
| NewReleaseDAO::insertNewRelease | ( | $monographId, | |
| $assocType, | |||
| $assocId | |||
| ) |
Insert a new NewRelease.
| $monographId | int |
| $assocType | int ASSOC_TYPE_... |
| $assocId | int |
Definition at line 86 of file NewReleaseDAO.inc.php.
References DAO\update().
| NewReleaseDAO::isNewRelease | ( | $monographId, | |
| $assocType, | |||
| $assocId | |||
| ) |
Check if the passed monograph id is marked as new release on the passed associated object.
| $monographId | int The monograph id to check the new release state. |
| $assocType | int The associated object type that the monograph is checked for a new release mark. |
| $assocId | int The associated object id that the monograph is checked for a new release mark. |
Definition at line 154 of file NewReleaseDAO.inc.php.
References DAO\retrieve().