Abstract class for plugins. More...
Public Member Functions | |
| getContextSpecificPluginSettingsFile () | |
| getManagementVerbLinkAction (&$request, $verb, $defaultUrl) | |
| getNewPressPluginSettingsFile () | |
| getSetting ($pressId, $name) | |
| Plugin () | |
| updateSetting ($pressId, $name, $value, $type=null) | |
Abstract class for plugins.
Definition at line 18 of file Plugin.inc.php.
| Plugin.getContextSpecificPluginSettingsFile | ( | ) |
Get the filename of the settings data for this plugin to install when a press is created (i.e. press-level plugin settings). Subclasses using default settings should override this.
Definition at line 68 of file Plugin.inc.php.
References getNewPressPluginSettingsFile().
| Plugin.getManagementVerbLinkAction | ( | &$ | request, | |
| $ | verb, | |||
| $ | defaultUrl | |||
| ) |
Get a link action to be used in plugin's grid row action for the passed verb.
| $request | Request | |
| $verb | array The verb name and locale key. | |
| $defaultUrl | string The grid that will use this method to get a management verb link action will pass a default url to be used in the link action request, with the correct plugins parameters (category, name, verb) and directing to the grid plugin management method. |
Reimplemented in ImportExportPlugin.
Definition at line 99 of file Plugin.inc.php.
| Plugin.getNewPressPluginSettingsFile | ( | ) |
For backwards compatibility only.
New plug-ins should override getContextSpecificPluginSettingsFile()
Definition at line 83 of file Plugin.inc.php.
Referenced by getContextSpecificPluginSettingsFile().
| Plugin.getSetting | ( | $ | pressId, | |
| $ | name | |||
| ) |
Backwards compatible convenience version of the generic getContextSpecificSetting() method.
| $pressId | ||
| $name |
Definition at line 35 of file Plugin.inc.php.
Referenced by PayPalPlugin.displayPaymentForm(), ManualPaymentPlugin.displayPaymentForm(), PayPalPlugin.handle(), PayPalPlugin.isConfigured(), and ManualPaymentPlugin.isConfigured().
| Plugin.Plugin | ( | ) |
Constructor
Definition at line 22 of file Plugin.inc.php.
Referenced by AuthPlugin.AuthPlugin(), and PaymethodPlugin.PaymethodPlugin().
| Plugin.updateSetting | ( | $ | pressId, | |
| $ | name, | |||
| $ | value, | |||
| $ | type = null | |||
| ) |
Backwards compatible convenience version of the generic updateContextSpecificSetting() method.
| $pressId | int | |
| $name | string The name of the setting | |
| $value | mixed | |
| $type | string optional |
Definition at line 57 of file Plugin.inc.php.
1.7.1