Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
PublishedMonographDAO Class Reference
Inheritance diagram for PublishedMonographDAO:
MonographDAO

Public Member Functions

 _fromRow ($row)
 
 deleteById ($monographId)
 
 getByCategoryId ($categoryId, $pressId=null, $rangeInfo=null)
 
 getById ($monographId, $pressId=null, $metadataApprovedOnly=true)
 
 getByPressId ($pressId, $searchText=null, $rangeInfo=null)
 
 getBySeriesId ($seriesId, $pressId=null, $rangeInfo=null)
 
 getPressFeatures ($pressId, $rangeInfo=null)
 
 insertObject ($publishedMonograph)
 
 newDataObject ()
 
 PublishedMonographDAO ()
 
 updateObject ($publishedMonograph)
 
- Public Member Functions inherited from MonographDAO
 _fromRow ($row)
 
 addCategory ($monographId, $categoryId)
 
 categoryAssociationExists ($monographId, $categoryId)
 
 deleteById ($monographId)
 
 getByPressId ($pressId)
 
 getBySubEditorId ($contextId=null, $subEditorId=null, $includeDeclined=true, $includePublished=true, $rangeInfo=null)
 
 getCategories ($monographId, $pressId=null)
 
 getLocaleFieldNames ()
 
 getUnassignedCategories ($monographId, $pressId=null)
 
 getUnpublishedMonographsByPressId ($pressId)
 
 insertObject ($monograph)
 
 MonographDAO ()
 
 newDataObject ()
 
 removeCategories ($monographId)
 
 removeCategory ($monographId, $categoryId)
 
 removeMonographsFromSeries ($seriesId)
 
 updateObject ($monograph)
 

Additional Inherited Members

- Protected Member Functions inherited from MonographDAO
 _getFetchColumns ()
 
 _getFetchJoins ()
 
 _getFetchParameters ()
 

Detailed Description

Operations for retrieving and modifying PublishedMonograph objects.

See Also
PublishedMonograph

Definition at line 20 of file PublishedMonographDAO.inc.php.

Member Function Documentation

PublishedMonographDAO::_fromRow (   $row)

Creates and returns a published monograph object from a row

Parameters
$rowarray
Returns
PublishedMonograph object

Definition at line 225 of file PublishedMonographDAO.inc.php.

References HookRegistry\call().

Referenced by getById().

PublishedMonographDAO::deleteById (   $monographId)

Removes an published monograph by monograph id

Parameters
monographIdint

Definition at line 271 of file PublishedMonographDAO.inc.php.

PublishedMonographDAO::getByCategoryId (   $categoryId,
  $pressId = null,
  $rangeInfo = null 
)

Retrieve all published monographs in a category.

Parameters
$categoryIdint
$pressIdint
$rangeInfoobject optional
Returns
DAOResultFactory

Definition at line 145 of file PublishedMonographDAO.inc.php.

References MonographDAO\_getFetchColumns(), MonographDAO\_getFetchJoins(), and MonographDAO\_getFetchParameters().

PublishedMonographDAO::getById (   $monographId,
  $pressId = null,
  $metadataApprovedOnly = true 
)

Retrieve Published Monograph by monograph id

Parameters
$monographIdint
$pressIdint
Returns
PublishedMonograph object

Definition at line 185 of file PublishedMonographDAO.inc.php.

References _fromRow(), MonographDAO\_getFetchColumns(), MonographDAO\_getFetchJoins(), and MonographDAO\_getFetchParameters().

PublishedMonographDAO::getByPressId (   $pressId,
  $searchText = null,
  $rangeInfo = null 
)

Retrieve all published monographs in a press.

Parameters
$pressIdint
$rangeInfoobject optional
Returns
DAOResultFactory

Definition at line 34 of file PublishedMonographDAO.inc.php.

References MonographDAO\_getFetchColumns(), MonographDAO\_getFetchJoins(), MonographDAO\_getFetchParameters(), AppLocale\getLocale(), and AppLocale\getPrimaryLocale().

PublishedMonographDAO::getBySeriesId (   $seriesId,
  $pressId = null,
  $rangeInfo = null 
)

Retrieve all published monographs in a series.

Parameters
$seriesIdint
$pressIdint
$rangeInfoobject optional
Returns
DAOResultFactory

Definition at line 110 of file PublishedMonographDAO.inc.php.

References MonographDAO\_getFetchColumns(), MonographDAO\_getFetchJoins(), and MonographDAO\_getFetchParameters().

PublishedMonographDAO::getPressFeatures (   $pressId,
  $rangeInfo = null 
)

Retrieve featured monographs for the press homepage.

Parameters
$pressIdint
$rangeInfoobject optional
Returns
DAOResultFactory

Definition at line 81 of file PublishedMonographDAO.inc.php.

References MonographDAO\_getFetchColumns(), and MonographDAO\_getFetchJoins().

PublishedMonographDAO::insertObject (   $publishedMonograph)

Inserts a new published monograph into published_submissions table

Parameters
PublishedMonographobject

Definition at line 247 of file PublishedMonographDAO.inc.php.

PublishedMonographDAO::newDataObject ( )

Generate and return a new data object.

Returns
PublishedMonograph

Definition at line 216 of file PublishedMonographDAO.inc.php.

PublishedMonographDAO::PublishedMonographDAO ( )

Constructor.

Definition at line 24 of file PublishedMonographDAO.inc.php.

PublishedMonographDAO::updateObject (   $publishedMonograph)

Update a published monograph

Parameters
PublishedMonographobject

Definition at line 282 of file PublishedMonographDAO.inc.php.


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