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

Public Member Functions

 deleteByPressId ($pressId)
 
 deleteByUserId ($userId)
 
 getNotifiableUsersByPressId ($pressId)
 
 getNotifiableUsersCount ($pressId)
 
 NotificationStatusDAO ()
 
 setPressNotifications ($pressId, $userId, $notificationStatus)
 
- 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

Operations for retrieving and modifying users' press notification status.

Definition at line 16 of file NotificationStatusDAO.inc.php.

Member Function Documentation

NotificationStatusDAO::deleteByPressId (   $pressId)

Delete notification status entries by press ID

Parameters
$pressIdint

Definition at line 61 of file NotificationStatusDAO.inc.php.

References DAO\update().

NotificationStatusDAO::deleteByUserId (   $userId)

Delete notification status entries by user ID

Parameters
$userIdint

Definition at line 71 of file NotificationStatusDAO.inc.php.

References DAO\update().

NotificationStatusDAO::getNotifiableUsersByPressId (   $pressId)

Retrieve a list of users who wish to receive updates about the specified press.

Parameters
$pressIdint
Returns
DAOResultFactory matching Users

Definition at line 82 of file NotificationStatusDAO.inc.php.

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

NotificationStatusDAO::getNotifiableUsersCount (   $pressId)

Retrieve the number of users who wish to receive updates about the specified press.

Parameters
$pressIdint
Returns
int

Definition at line 98 of file NotificationStatusDAO.inc.php.

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

NotificationStatusDAO::NotificationStatusDAO ( )

Constructor

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

NotificationStatusDAO::setPressNotifications (   $pressId,
  $userId,
  $notificationStatus 
)

Changes whether or not a user will receive email notifications about a given press.

Parameters
$pressIdint
$userIdint
$notificationStatusbool

Definition at line 49 of file NotificationStatusDAO.inc.php.

References DAO\update().


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