Open Journal Systems
3.3.0
|
Additional Inherited Members | |
![]() | |
$pluginCategory | |
$pluginPath | |
$request | |
![]() | |
_registerTemplateResource ($inCore=false) | |
Definition at line 19 of file LazyLoadPlugin.inc.php.
LazyLoadPlugin::getCanDisable | ( | ) |
Determine whether the plugin can be disabled.
Reimplemented from Plugin.
Reimplemented in TinyMCEPlugin.
Definition at line 93 of file LazyLoadPlugin.inc.php.
LazyLoadPlugin::getCanEnable | ( | ) |
Determine whether the plugin can be enabled.
Reimplemented from Plugin.
Definition at line 86 of file LazyLoadPlugin.inc.php.
LazyLoadPlugin::getCurrentContextId | ( | ) |
Get the current context ID or the site-wide context ID (0) if no context can be found.
Definition at line 101 of file LazyLoadPlugin.inc.php.
References PKPApplication\get().
Referenced by BlockPlugin\getEnabled(), getEnabled(), OrcidProfilePlugin\register(), BlockPlugin\setEnabled(), and setEnabled().
LazyLoadPlugin::getEnabled | ( | $contextId = null | ) |
Determine whether or not this plugin is currently enabled.
$contextId | 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 in CustomBlockPlugin, UsageStatsOptoutBlockPlugin, PKPUsageEventPlugin, and BlockPlugin.
Definition at line 61 of file LazyLoadPlugin.inc.php.
References getCurrentContextId(), Plugin\getSetting(), and Plugin\isSitePlugin().
LazyLoadPlugin::getName | ( | ) |
Reimplemented from Plugin.
Reimplemented in MarkupPlugin, PKPAcronPlugin, CustomBlockPlugin, PKPUsageEventPlugin, UsageStatsOptoutBlockPlugin, AnnouncementFeedBlockPlugin, WebFeedBlockPlugin, PaypalPaymentPlugin, and ManualPaymentPlugin.
Definition at line 40 of file LazyLoadPlugin.inc.php.
References strtolower_codesafe().
Referenced by PLNPlugin\callbackLoadCategory(), TexturePlugin\callbackLoadHandler(), UsageStatsPlugin\callbackLoadHandler(), GoogleAnalyticsPlugin\getActions(), CustomBlockManagerPlugin\getActions(), AnnouncementFeedPlugin\getActions(), PLNPlugin\getActions(), WebFeedPlugin\getActions(), UsageStatsPlugin\getActions(), OrcidProfilePlugin\getActions(), CustomBlockManagerPlugin\setupGridHandler(), and OrcidProfilePlugin\smartyPluginUrl().
LazyLoadPlugin::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 Plugin.
Reimplemented in UsageStatsPlugin, MarkupPlugin, ThemePlugin, PLNPlugin, CitationStyleLanguagePlugin, StaticPagesPlugin, OrcidProfilePlugin, PaypalPaymentPlugin, ManualPaymentPlugin, PKPAcronPlugin, TexturePlugin, WebFeedPlugin, CustomBlockManagerPlugin, DefaultTranslationPlugin, PKPUsageEventPlugin, DRIVERPlugin, RecommendByAuthorPlugin, RecommendBySimilarityPlugin, SwordPlugin, PKPPubIdPlugin, URNPubIdPlugin, BrowseBySectionPlugin, DOIPubIdPlugin, AnnouncementFeedPlugin, DublinCoreMetaPlugin, GoogleAnalyticsPlugin, GoogleScholarPlugin, HtmlArticleGalleyPlugin, LensGalleyPlugin, TinyMCEPlugin, HypothesisPlugin, PdfJsViewerPlugin, and SubscriptionSSOPlugin.
Definition at line 27 of file LazyLoadPlugin.inc.php.
References Plugin\addLocaleData().
LazyLoadPlugin::setEnabled | ( | $enabled | ) |
Set whether or not this plugin is currently enabled.
$enabled | boolean |
Definition at line 75 of file LazyLoadPlugin.inc.php.
References getCurrentContextId(), Plugin\isSitePlugin(), and Plugin\updateSetting().