|
Open Monograph Press
3.3.0
|
22 parent::__construct();
34 'SELECT submission_id FROM new_releases WHERE assoc_type = ? AND assoc_id = ?',
35 array((
int) $assocType, (
int) $assocId)
38 while (!$result->EOF) {
39 list($monographId) = $result->fields;
40 $returner[$monographId] =
true;
56 import(
'classes.submission.Submission');
58 'SELECT n.submission_id
62 WHERE n.submission_id = s.submission_id
63 AND p.publication_id = s.current_publication_id
64 AND n.assoc_type = ? AND n.assoc_id = ?
66 ORDER BY p.date_published DESC',
67 array((
int) $assocType, (
int) $assocId, STATUS_PUBLISHED)
71 while (!$result->EOF) {
72 list($monographId) = $result->fields;
88 'INSERT INTO new_releases
89 (submission_id, assoc_type, assoc_id)
107 'DELETE FROM new_releases WHERE submission_id = ?',
119 'DELETE FROM new_releases WHERE assoc_type = ? AND assoc_id = ?',
120 array((
int) $assocType, (
int) $assocId)
132 'DELETE FROM new_releases
133 WHERE submission_id = ? AND
156 'SELECT submission_id FROM new_releases WHERE submission_id = ? AND assoc_type = ? AND assoc_id = ?',
157 array((
int) $monographId, (
int) $assocType, (
int) $assocId)
159 if ($result->RecordCount() > 0) {
174 'SELECT assoc_type, assoc_id FROM new_releases WHERE submission_id = ?',
175 array((
int) $monographId)
178 $newRelease = array();
179 while (!$result->EOF) {
180 $newRelease[] = array(
181 'assoc_type' => (
int) $result->fields[
'assoc_type'],
182 'assoc_id' => (
int) $result->fields[
'assoc_id'],
getNewReleaseAll($monographId)
& retrieve($sql, $params=false, $callHooks=true)
insertNewRelease($monographId, $assocType, $assocId)
deleteNewRelease($monographId, $assocType, $assocId)
getMonographsByAssoc($assocType, $assocId)
update($sql, $params=false, $callHooks=true, $dieOnError=true)
isNewRelease($monographId, $assocType, $assocId)
deleteByMonographId($monographId)
Operations for retrieving and modifying objects from a database.
Operations for setting new release status on various items.
deleteByAssoc($assocType, $assocId)
getMonographIdsByAssoc($assocType, $assocId)