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

Public Member Functions

 deleteEditor ($pressId, $seriesId, $userId)
 
 deleteEditorsByPressId ($pressId)
 
 deleteEditorsBySeriesId ($seriesId, $pressId=null)
 
 deleteEditorsByUserId ($userId, $pressId=null, $seriesId=null)
 
 editorExists ($pressId, $seriesId, $userId)
 
 getEditorsBySeriesId ($seriesId, $pressId)
 
 getEditorsNotInSeries ($pressId, $seriesId)
 
 insertEditor ($pressId, $seriesId, $userId, $canReview, $canEdit)
 
 SeriesEditorsDAO ()
 
- Public Member Functions inherited from DAO
 concat ()
 
 convertFromDB ($value, $type)
 
 convertToDB ($value, &$type)
 
 DAO ($dataSource=null, $callHooks=true)
 
 dateFromDB ($d)
 
 datetimeFromDB ($dt)
 
 datetimeToDB ($dt)
 
 dateToDB ($d)
 
 flushCache ()
 
 formatDateToDB ($date, $defaultNumWeeks=null, $acceptPastDate=true)
 
 getAffectedRows ()
 
getDataSource ()
 
 getDirectionMapping ($direction)
 
 getDriver ()
 
 getType ($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)
 
- Public Attributes inherited from DAO
 $_dataSource
 
- Protected Member Functions inherited from DAO
 _getInsertId ($table= '', $id= '')
 

Detailed Description

Class for DAO relating series to editors.

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

Member Function Documentation

SeriesEditorsDAO::deleteEditor (   $pressId,
  $seriesId,
  $userId 
)

Delete a series editor.

Parameters
$pressIdint
$seriesIdint
$userIdint

Definition at line 55 of file SeriesEditorsDAO.inc.php.

References DAO\update().

SeriesEditorsDAO::deleteEditorsByPressId (   $pressId)

Delete all series editors assignments for a specified press.

Parameters
$pressIdint

Definition at line 149 of file SeriesEditorsDAO.inc.php.

References DAO\update().

SeriesEditorsDAO::deleteEditorsBySeriesId (   $seriesId,
  $pressId = null 
)

Delete all series editors for a specified series in a press.

Parameters
$seriesIdint
$pressIdint

Definition at line 134 of file SeriesEditorsDAO.inc.php.

References DAO\update().

SeriesEditorsDAO::deleteEditorsByUserId (   $userId,
  $pressId = null,
  $seriesId = null 
)

Delete all series assignments for the specified user.

Parameters
$userIdint
$pressIdint optional, include assignments only in this press
$seriesIdint optional, include only this series

Definition at line 162 of file SeriesEditorsDAO.inc.php.

References DAO\update().

SeriesEditorsDAO::editorExists (   $pressId,
  $seriesId,
  $userId 
)

Check if a user is assigned to a specified series.

Parameters
$pressIdint
$seriesIdint
$userIdint
Returns
boolean

Definition at line 178 of file SeriesEditorsDAO.inc.php.

References DAO\retrieve().

SeriesEditorsDAO::getEditorsBySeriesId (   $seriesId,
  $pressId 
)

Retrieve a list of all series editors assigned to the specified series.

Parameters
$seriesIdint
$pressIdint
Returns
array matching Users

Definition at line 72 of file SeriesEditorsDAO.inc.php.

References DAORegistry\getDAO(), and DAO\retrieve().

SeriesEditorsDAO::getEditorsNotInSeries (   $pressId,
  $seriesId 
)

Retrieve a list of all series editors not assigned to the specified series.

Parameters
$pressIdint
$seriesIdint
Returns
array matching Users

Definition at line 102 of file SeriesEditorsDAO.inc.php.

References DAORegistry\getDAO(), and DAO\retrieve().

SeriesEditorsDAO::insertEditor (   $pressId,
  $seriesId,
  $userId,
  $canReview,
  $canEdit 
)

Insert a new series editor.

Parameters
$pressIdint
$seriesIdint
$userIdint
$canReviewboolean
$canEditboolean

Definition at line 33 of file SeriesEditorsDAO.inc.php.

References DAO\update().

SeriesEditorsDAO::SeriesEditorsDAO ( )

Constructor

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


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