Open Journal Systems
3.3.0
|
Additional Inherited Members | |
Data Fields inherited from Plugin | |
$pluginCategory | |
$pluginPath | |
$request | |
Protected Member Functions inherited from Plugin | |
_registerTemplateResource ($inCore=false) | |
Abstract class for block plugins.
Definition at line 18 of file BlockPlugin.inc.php.
BlockPlugin::getBlockTemplateFilename | ( | ) |
Get the filename of the template block. (Default behavior may be overridden through some combination of this function and the getContents function.) Returning null from this function results in an empty display.
Reimplemented in UsageStatsOptoutBlockPlugin.
Definition at line 51 of file BlockPlugin.inc.php.
Referenced by getContents().
BlockPlugin::getContents | ( | $templateMgr, | |
$request = null |
|||
) |
Get the HTML contents for this block.
$templateMgr | object |
$request | PKPRequest (Optional for legacy plugins) |
Reimplemented in CustomBlockPlugin, UsageStatsOptoutBlockPlugin, WebFeedBlockPlugin, AnnouncementFeedBlockPlugin, LanguageToggleBlockPlugin, SubscriptionBlockPlugin, InformationBlockPlugin, MakeSubmissionBlockPlugin, and BrowseBlockPlugin.
Definition at line 62 of file BlockPlugin.inc.php.
References getBlockTemplateFilename(), and Plugin\getTemplateResource().
BlockPlugin::getEnabled | ( | $contextId = null | ) |
Determine whether or not this plugin is currently enabled.
$contextId | int Context ID (journal/press) |
Reimplemented from LazyLoadPlugin.
Reimplemented in CustomBlockPlugin, and UsageStatsOptoutBlockPlugin.
Definition at line 29 of file BlockPlugin.inc.php.
References LazyLoadPlugin\getCurrentContextId(), and Plugin\getSetting().
BlockPlugin::setEnabled | ( | $enabled, | |
$contextId = null |
|||
) |
Set whether or not this plugin is currently enabled.
$enabled | boolean |
$contextId | int Context ID (journal/press) |
Definition at line 39 of file BlockPlugin.inc.php.
References LazyLoadPlugin\getCurrentContextId(), and Plugin\updateSetting().