PHP Class GatewayPlugin, pkp-lib

Inheritance: extends Plugin
显示文件 Open project: pkp/pkp-lib Class Usage Examples

Public Methods

Method Description
__construct ( ) Constructor
fetch ( $args, $request ) Handle fetch requests for this plugin.
getCanDisable ( ) : boolean Determine whether the plugin can be disabled.
getCanEnable ( ) : boolean Determine whether the plugin can be enabled.
getCurrentContextId ( ) Get the current context ID or the site-wide context ID (0) if no context can be found.
getEnabled ( ) : boolean Determine whether or not this plugin is currently enabled.
setEnabled ( $enabled ) Set whether or not this plugin is currently enabled.

Method Details

__construct() public method

Constructor
public __construct ( )

fetch() abstract public method

Handle fetch requests for this plugin.
abstract public fetch ( $args, $request )
$args array
$request object

getCanDisable() public method

Determine whether the plugin can be disabled.
public getCanDisable ( ) : boolean
return boolean

getCanEnable() public method

Determine whether the plugin can be enabled.
public getCanEnable ( ) : boolean
return boolean

getCurrentContextId() public method

Get the current context ID or the site-wide context ID (0) if no context can be found.
public getCurrentContextId ( )

getEnabled() public method

Determine whether or not this plugin is currently enabled.
public getEnabled ( ) : boolean
return boolean

setEnabled() public method

Set whether or not this plugin is currently enabled.
public setEnabled ( $enabled )
$enabled boolean