Public Member Functions

NotificationStatusDAO Class Reference
[Press]

Operations for retrieving and modifying users' press notification status. More...

List of all members.

Public Member Functions

 deleteNotificationStatusByPress ($pressId)
 deleteNotificationStatusByUserId ($userId)
getNotifiableUsersByPressId ($pressId)
 getNotifiableUsersCount ($pressId)
 NotificationStatusDAO ()
 setPressNotifications ($pressId, $userId, $notificationStatus)

Detailed Description

Operations for retrieving and modifying users' press notification status.

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


Member Function Documentation

NotificationStatusDAO.deleteNotificationStatusByPress ( pressId  ) 

Delete notification status entries by press ID

Parameters:
$pressId int

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

NotificationStatusDAO.deleteNotificationStatusByUserId ( userId  ) 

Delete notification status entries by user ID

Parameters:
$userId int

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

& NotificationStatusDAO.getNotifiableUsersByPressId ( pressId  ) 

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

Parameters:
$pressId int
Returns:
DAOResultFactory matching Users

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

NotificationStatusDAO.getNotifiableUsersCount ( pressId  ) 

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

Parameters:
$pressId int
Returns:
int

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

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:
$pressId int
$userId int
$notificationStatus bool

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


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