Determine whether or not this plugin is currently enabled.
public getEnabled ( $contextId = null ) : boolean | ||
$contextId | int Context ID (journal/press) | |
Результат | boolean |
/** * Determine whether the plugin is enabled. Overrides parent so that * the plugin will be displayed during install. */ function getEnabled() { if (!Config::getVar('general', 'installed')) { return true; } return parent::getEnabled(); }
/** * Determine whether the plugin is enabled. Overrides parent so that * the plugin will be displayed during install. * * @param $contextId int Context ID (journal/press) * @return boolean */ function getEnabled($contextId = null) { if (!Config::getVar('general', 'installed')) { return true; } return parent::getEnabled($contextId); }
/** * Determine whether the plugin is enabled. Overrides parent so that * the plugin will be displayed during install. */ function getEnabled() { if (!Config::getVar('general', 'installed')) { $enabled = true; } else { $enabled = parent::getEnabled(); } if ($enabled) { HookRegistry::register('TemplateManager::display', array(&$this, 'displayTemplateCallback')); } return $enabled; }
/** * Determine whether or not this plugin is enabled. * @return boolean */ function getEnabled() { $plugin =& $this->getCmsPlugin(); if ($plugin->getEnabled()) { return parent::getEnabled(); } return false; }