Open Journal Systems  3.3.0
OpenAccessNotification Class Reference
Inheritance diagram for OpenAccessNotification:
ScheduledTask

Public Member Functions

 getName ()
 
 sendNotification ($users, $journal, $issue)
 
 sendNotifications ($journal, $curDate)
 
- Public Member Functions inherited from ScheduledTask
 __construct ($args=array())
 
 addExecutionLogEntry ($message, $type=null)
 
 execute ()
 
 getHelper ()
 
 getProcessId ()
 

Protected Member Functions

 executeActions ()
 

Detailed Description

Class to perform automated email notifications when an issue becomes open access.

Definition at line 18 of file OpenAccessNotification.inc.php.

Member Function Documentation

◆ executeActions()

OpenAccessNotification::executeActions ( )
protected

Implement this method to execute the task actions.

Returns
boolean true iff success

Reimplemented from ScheduledTask.

Definition at line 109 of file OpenAccessNotification.inc.php.

References DAORegistry\getDAO(), and sendNotifications().

◆ getName()

OpenAccessNotification::getName ( )

Get the scheduled task name. Override to define a custom task name.

Returns
string

Reimplemented from ScheduledTask.

Definition at line 23 of file OpenAccessNotification.inc.php.

◆ sendNotification()

OpenAccessNotification::sendNotification (   $users,
  $journal,
  $issue 
)

Send a notification for the given users, journal, and issue.

Parameters
$usersarray
$journalJournal
$issueIssue

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

References PKPServices\get(), PKPApplication\get(), and PKPTemplateManager\getManager().

Referenced by sendNotifications().

◆ sendNotifications()

OpenAccessNotification::sendNotifications (   $journal,
  $curDate 
)

Send notifications for the specified journal based on the specified date.

Parameters
$journalJournal
$curDatearray

Definition at line 80 of file OpenAccessNotification.inc.php.

References DAORegistry\getDAO(), and sendNotification().

Referenced by executeActions().


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