Open Journal Systems
3.3.0
|
Data Fields | |
$_tasksToRun | |
$_workingDir | |
Data Fields inherited from Plugin | |
$pluginCategory | |
$pluginPath | |
$request | |
Additional Inherited Members | |
Protected Member Functions inherited from Plugin | |
_registerTemplateResource ($inCore=false) | |
Removes dependency on 'cron' for scheduled tasks, including possible tasks defined by plugins. See the PKPAcronPlugin::parseCrontab hook implementation.
Definition at line 23 of file PKPAcronPlugin.inc.php.
PKPAcronPlugin::_getTasksToRun | ( | ) |
Get all scheduled tasks that needs to be executed.
Definition at line 335 of file PKPAcronPlugin.inc.php.
References _parseCrontab(), ScheduledTaskHelper\checkFrequency(), DAORegistry\getDAO(), and Plugin\getSetting().
Referenced by callbackLoadHandler(), and shutdownFunction().
PKPAcronPlugin::_parseCrontab | ( | ) |
Parse all scheduled tasks files and save the result object in database.
Definition at line 276 of file PKPAcronPlugin.inc.php.
References HookRegistry\call(), fatalError(), ScheduledTaskHelper\getTaskArgs(), PluginRegistry\loadAllPlugins(), and Plugin\updateSetting().
Referenced by _getTasksToRun(), callbackManage(), callbackPostInstall(), and manage().
PKPAcronPlugin::callbackLoadHandler | ( | $hookName, | |
$args | |||
) |
Load handler hook to check for tasks to run.
$hookName | string |
$args | array |
Definition at line 148 of file PKPAcronPlugin.inc.php.
References Plugin\$request, _getTasksToRun(), and PKPApplication\get().
PKPAcronPlugin::callbackManage | ( | $hookName, | |
$args | |||
) |
Syncronize crontab with lazy load plugins management.
$hookName | string |
$args | array |
Definition at line 184 of file PKPAcronPlugin.inc.php.
References _parseCrontab(), and HookRegistry\getHooks().
PKPAcronPlugin::callbackPostInstall | ( | $hookName, | |
$args | |||
) |
Post install hook to flag cron tab reload on every install/upgrade.
$hookName | string |
$args | array |
Definition at line 136 of file PKPAcronPlugin.inc.php.
References _parseCrontab().
PKPAcronPlugin::getActions | ( | $request, | |
$actionArgs | |||
) |
Get a list of link actions for plugin management.
request | PKPRequest |
$actionArgs | array The list of action args to be included in request URLs. |
Reimplemented from Plugin.
Definition at line 93 of file PKPAcronPlugin.inc.php.
References Plugin\$request, Plugin\getEnabled(), and getName().
PKPAcronPlugin::getDescription | ( | ) |
Get a description of this plugin.
Reimplemented from Plugin.
Definition at line 79 of file PKPAcronPlugin.inc.php.
PKPAcronPlugin::getDisplayName | ( | ) |
Get the display name for this plugin.
Reimplemented from Plugin.
Definition at line 72 of file PKPAcronPlugin.inc.php.
PKPAcronPlugin::getInstallSitePluginSettingsFile | ( | ) |
Get the filename of the settings data for this plugin to install when the system is installed (i.e. site-level plugin settings). Subclasses using default settings should override this.
Reimplemented from Plugin.
Definition at line 86 of file PKPAcronPlugin.inc.php.
References Plugin\getPluginPath().
PKPAcronPlugin::getName | ( | ) |
Reimplemented from LazyLoadPlugin.
Definition at line 65 of file PKPAcronPlugin.inc.php.
Referenced by getActions().
PKPAcronPlugin::isSitePlugin | ( | ) |
Site-wide plugins should override this function to return true.
Reimplemented from Plugin.
Definition at line 57 of file PKPAcronPlugin.inc.php.
PKPAcronPlugin::manage | ( | $args, | |
$request | |||
) |
Reimplemented from Plugin.
Definition at line 114 of file PKPAcronPlugin.inc.php.
References Plugin\$request, _parseCrontab(), and DAO\getDataChangedEvent().
PKPAcronPlugin::register | ( | $category, | |
$path, | |||
$mainContextId = null |
|||
) |
Load and initialize the plug-in and register plugin hooks.
For backwards compatibility this method will be called whenever the plug-in's category is being loaded. If, however, registerOn() returns an array then this method will only be called when the plug-in is enabled and an entry in the result set of registerOn() matches the current request operation. An empty array matches all request operations.
$category | String Name of category plugin was registered to |
$path | String The path the plugin was found in |
$mainContextId | integer To identify if the plugin is enabled we need a context. This context is usually taken from the request but sometimes there is no context in the request (e.g. when executing CLI commands). Then the main context can be given as an explicit ID. |
Reimplemented from LazyLoadPlugin.
Definition at line 40 of file PKPAcronPlugin.inc.php.
References Plugin\addLocaleData(), Config\getVar(), and HookRegistry\register().
PKPAcronPlugin::shutdownFunction | ( | ) |
Shutdown callback.
Definition at line 212 of file PKPAcronPlugin.inc.php.
References _getTasksToRun(), and DAORegistry\getDAO().
$_tasksToRun PKPAcronPlugin::$_tasksToRun |
array
Definition at line 35 of file PKPAcronPlugin.inc.php.
$_workingDir PKPAcronPlugin::$_workingDir |
string
Definition at line 29 of file PKPAcronPlugin.inc.php.