Open Monograph Press  3.3.0
NewReleaseDAO Class Reference
Inheritance diagram for NewReleaseDAO:
DAO

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='')
 

Detailed Description

Operations for setting new release status on various items.

See also
NewRelease

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

Constructor & Destructor Documentation

◆ __construct()

NewReleaseDAO::__construct ( )

Constructor

Definition at line 21 of file NewReleaseDAO.inc.php.

Member Function Documentation

◆ deleteByAssoc()

NewReleaseDAO::deleteByAssoc (   $assocType,
  $assocId 
)

Delete a new release by association.

Parameters
$assocTypeint ASSOC_TYPE_...
$assocIdint

Definition at line 117 of file NewReleaseDAO.inc.php.

References DAO\update().

◆ deleteByMonographId()

NewReleaseDAO::deleteByMonographId (   $monographId)

Delete a new release by ID.

Parameters
$monographIdint
$pressIdint optional

Definition at line 105 of file NewReleaseDAO.inc.php.

References DAO\update().

◆ deleteNewRelease()

NewReleaseDAO::deleteNewRelease (   $monographId,
  $assocType,
  $assocId 
)

Delete a new release.

Parameters
$monographIdint
$assocTypeint ASSOC_TYPE_...
$assocIdint

Definition at line 130 of file NewReleaseDAO.inc.php.

References DAO\update().

◆ getMonographIdsByAssoc()

NewReleaseDAO::getMonographIdsByAssoc (   $assocType,
  $assocId 
)

Get monograph IDs by association.

Parameters
$assocTypeint ASSOC_TYPE_...
$assocIdint
Returns
array monographId

Definition at line 31 of file NewReleaseDAO.inc.php.

References DAO\retrieve().

◆ getMonographsByAssoc()

NewReleaseDAO::getMonographsByAssoc (   $assocType,
  $assocId 
)

Get monographs by association.

Parameters
$assocTypeint ASSOC_TYPE_...
$assocIdint
Returns
array Monograph

Definition at line 54 of file NewReleaseDAO.inc.php.

References PKPServices\get(), and DAO\retrieve().

◆ getNewReleaseAll()

NewReleaseDAO::getNewReleaseAll (   $monographId)

Return the monograph's new release settings in all assoc types

Parameters
$monographIdint The monograph ID to get the new release state
Returns
array

Definition at line 172 of file NewReleaseDAO.inc.php.

References DAO\retrieve().

◆ insertNewRelease()

NewReleaseDAO::insertNewRelease (   $monographId,
  $assocType,
  $assocId 
)

Insert a new NewRelease.

Parameters
$monographIdint
$assocTypeint ASSOC_TYPE_...
$assocIdint

Definition at line 86 of file NewReleaseDAO.inc.php.

References DAO\update().

◆ isNewRelease()

NewReleaseDAO::isNewRelease (   $monographId,
  $assocType,
  $assocId 
)

Check if the passed monograph id is marked as new release on the passed associated object.

Parameters
$monographIdint The monograph id to check the new release state.
$assocTypeint The associated object type that the monograph is checked for a new release mark.
$assocIdint The associated object id that the monograph is checked for a new release mark.
Returns
boolean Whether or not the monograph is marked as a new release.

Definition at line 154 of file NewReleaseDAO.inc.php.

References DAO\retrieve().


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