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

Public Member Functions

 __construct ($args)
 
 _addLogEntry ($errors)
 
 _getJournals ()
 
 _registerObjects ($objects, $filter, $journal, $objectsFileNamePart)
 
 executeActions ()
 
 getName ()
 
- Public Member Functions inherited from ScheduledTask
 addExecutionLogEntry ($message, $type=null)
 
 execute ()
 
 getHelper ()
 
 getProcessId ()
 

Data Fields

 $_plugin
 

Additional Inherited Members

Detailed Description

Scheduled task to send deposits to DOAJ.

Definition at line 19 of file DOAJInfoSender.inc.php.

Constructor & Destructor Documentation

◆ __construct()

DOAJInfoSender::__construct (   $args)

Constructor.

Parameters
$argvarray task arguments

Reimplemented from ScheduledTask.

Definition at line 30 of file DOAJInfoSender.inc.php.

References PluginRegistry\getPlugin(), and PluginRegistry\loadCategory().

Member Function Documentation

◆ _addLogEntry()

DOAJInfoSender::_addLogEntry (   $errors)

Add execution log entry

Parameters
$errorsarray

Definition at line 113 of file DOAJInfoSender.inc.php.

References ScheduledTask\addExecutionLogEntry().

Referenced by _registerObjects().

◆ _getJournals()

DOAJInfoSender::_getJournals ( )

Get all journals that meet the requirements to have their articles automatically sent to DOAJ.

Returns
array

Definition at line 74 of file DOAJInfoSender.inc.php.

References $_plugin, and Application\getContextDAO().

Referenced by executeActions().

◆ _registerObjects()

DOAJInfoSender::_registerObjects (   $objects,
  $filter,
  $journal,
  $objectsFileNamePart 
)

Register objects

Parameters
$objectsarray
$filterstring
$journalJournal
$objectsFileNamePartstring

Definition at line 96 of file DOAJInfoSender.inc.php.

References $_plugin, and _addLogEntry().

Referenced by executeActions().

◆ executeActions()

DOAJInfoSender::executeActions ( )

Implement this method to execute the task actions.

Returns
boolean true iff success

Reimplemented from ScheduledTask.

Definition at line 52 of file DOAJInfoSender.inc.php.

References $_plugin, _getJournals(), and _registerObjects().

◆ getName()

DOAJInfoSender::getName ( )

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

Returns
string

Reimplemented from ScheduledTask.

Definition at line 45 of file DOAJInfoSender.inc.php.

Field Documentation

◆ $_plugin

$_plugin DOAJInfoSender::$_plugin

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