|
Open Journal Systems
3.3.0
|
Protected Member Functions | |
| _sendFile ($method, $url, $filename) | |
Protected Member Functions inherited from Plugin | |
| _registerTemplateResource ($inCore=false) | |
Additional Inherited Members | |
Data Fields inherited from Plugin | |
| $pluginCategory | |
| $pluginPath | |
| $request | |
PLN plugin class.
Definition at line 72 of file PLNPlugin.inc.php.
|
protected |
Transfer a file to a resource.
| $method | string PUT or POST |
| $url | string |
| $headers | array |
Definition at line 618 of file PLNPlugin.inc.php.
References PKPApplication\get().
Referenced by curlPostFile(), and curlPutFile().
| PLNPlugin::callbackDeleteJournalById | ( | $hookName, | |
| $params | |||
| ) |
Delete all plug-in data for a journal when the journal is deleted
| $hookName | string (JournalDAO::deleteJournalById) |
| $args | array (JournalDAO, journalId) |
Definition at line 255 of file PLNPlugin.inc.php.
References DAORegistry\getDAO().
| PLNPlugin::callbackLoadCategory | ( | $hookName, | |
| $args | |||
| ) |
Register as a gateway plugin.
| $hookName | string |
| $args | array |
Definition at line 235 of file PLNPlugin.inc.php.
References LazyLoadPlugin\getName().
| PLNPlugin::callbackLoadHandler | ( | $hookName, | |
| $args | |||
| ) |
Callback for the LoadHandler hook
Definition at line 301 of file PLNPlugin.inc.php.
References $op, getHandlerPath(), and AppLocale\requireComponents().
| PLNPlugin::callbackNotificationContents | ( | $hookName, | |
| $args | |||
| ) |
Hook registry function to provide notification messages
| $hookName | string (NotificationManager::getNotificationContents) |
| $args | array ($notification, $message) |
Definition at line 279 of file PLNPlugin.inc.php.
| PLNPlugin::callbackParseCronTab | ( | $hookName, | |
| $args | |||
| ) |
Definition at line 267 of file PLNPlugin.inc.php.
References Plugin\getPluginPath().
| PLNPlugin::createJournalManagerNotification | ( | $contextId, | |
| $notificationType | |||
| ) |
Create notification for all journal managers
| $contextId | int |
| $notificationType | int |
Definition at line 519 of file PLNPlugin.inc.php.
References DAORegistry\getDAO().
Referenced by getServiceDocument().
| PLNPlugin::cronEnabled | ( | ) |
Check if acron is enabled, or if the scheduled_tasks config var is set. The plugin needs to run periodically through one of those systems.
Definition at line 556 of file PLNPlugin.inc.php.
References $application, PKPApplication\getApplication(), and Config\getVar().
| PLNPlugin::curlGet | ( | $url, | |
$headers = [] |
|||
| ) |
Get resource
| $url | string |
| $headers | array |
Definition at line 568 of file PLNPlugin.inc.php.
References PKPApplication\get().
Referenced by getServiceDocument().
| PLNPlugin::curlPostFile | ( | $url, | |
| $filename | |||
| ) |
Post a file to a resource
| $url | string |
| $headers | array |
Definition at line 589 of file PLNPlugin.inc.php.
References _sendFile().
| PLNPlugin::curlPutFile | ( | $url, | |
| $filename | |||
| ) |
Put a file to a resource
| $url | string |
| $filename | string |
Definition at line 599 of file PLNPlugin.inc.php.
References _sendFile().
| PLNPlugin::getActions | ( | $request, | |
| $verb | |||
| ) |
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 117 of file PLNPlugin.inc.php.
References Plugin\$request, getDisplayName(), Plugin\getEnabled(), and LazyLoadPlugin\getName().
| PLNPlugin::getContextSpecificPluginSettingsFile | ( | ) |
Reimplemented from Plugin.
Definition at line 198 of file PLNPlugin.inc.php.
References Plugin\getPluginPath().
| PLNPlugin::getDescription | ( | ) |
Reimplemented from Plugin.
Definition at line 170 of file PLNPlugin.inc.php.
| PLNPlugin::getDisplayName | ( | ) |
Reimplemented from Plugin.
Definition at line 163 of file PLNPlugin.inc.php.
Referenced by getActions().
| PLNPlugin::getHandlerPath | ( | ) |
Definition at line 191 of file PLNPlugin.inc.php.
References Plugin\getPluginPath().
Referenced by callbackLoadHandler().
| PLNPlugin::getInstallDataFile | ( | ) |
Reimplemented from Plugin.
Definition at line 184 of file PLNPlugin.inc.php.
References Plugin\getPluginPath().
| PLNPlugin::getInstallSchemaFile | ( | ) |
Reimplemented from Plugin.
Definition at line 177 of file PLNPlugin.inc.php.
References Plugin\getPluginPath().
| PLNPlugin::getManagementVerbs | ( | ) |
Definition at line 406 of file PLNPlugin.inc.php.
References Plugin\getEnabled().
| PLNPlugin::getServiceDocument | ( | $contextId | ) |
Request service document at specified URL
| $contextId | int The journal id for the service document we wish to fetch |
Definition at line 439 of file PLNPlugin.inc.php.
References $application, Plugin\$request, createJournalManagerNotification(), curlGet(), PKPApplication\getApplication(), Application\getContextDAO(), getSetting(), and Plugin\updateSetting().
Referenced by manage().
| PLNPlugin::getSetting | ( | $journalId, | |
| $settingName | |||
| ) |
| $journalId | int |
| $settingName | string |
Reimplemented from Plugin.
Definition at line 207 of file PLNPlugin.inc.php.
References Config\getVar(), newUUID(), and Plugin\updateSetting().
Referenced by getServiceDocument(), and termsAgreed().
| PLNPlugin::manage | ( | $args, | |
| $request | |||
| ) |
Reimplemented from Plugin.
Definition at line 319 of file PLNPlugin.inc.php.
References Plugin\$request, DAORegistry\getDAO(), getServiceDocument(), AppLocale\requireComponents(), tarInstalled(), Plugin\updateSetting(), and zipInstalled().
| PLNPlugin::newUUID | ( | ) |
Create a new UUID
Definition at line 607 of file PLNPlugin.inc.php.
References PKPString\generateUUID().
Referenced by getSetting().
| PLNPlugin::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 76 of file PLNPlugin.inc.php.
References Plugin\getEnabled(), HookRegistry\register(), and registerDAOs().
| PLNPlugin::registerDAOs | ( | ) |
Register this plugin's DAOs with the application
Definition at line 148 of file PLNPlugin.inc.php.
References DAORegistry\registerDAO().
Referenced by register().
| PLNPlugin::setupComponentHandlers | ( | $hookName, | |
| $params | |||
| ) |
Permit requests to the static pages grid handler
| $hookName | string The name of the hook being invoked |
| $args | array The parameters to the invoked hook |
Definition at line 100 of file PLNPlugin.inc.php.
| PLNPlugin::tarInstalled | ( | ) |
Check if the Archive_Tar extension is installed and available. BagIt requires it, and will not function without it.
Definition at line 545 of file PLNPlugin.inc.php.
Referenced by manage().
| PLNPlugin::termsAgreed | ( | $journalId | ) |
Check to see whether the PLN's terms have been agreed to to append.
| $journalId | int |
Definition at line 421 of file PLNPlugin.inc.php.
References getSetting().
| PLNPlugin::zipInstalled | ( | ) |
Get whether zip archive support is present
Definition at line 535 of file PLNPlugin.inc.php.
Referenced by manage().