getEnabled() public method

Determine whether or not this plugin is currently enabled.
public getEnabled ( $contextId = null ) : boolean
$contextId int Context ID (journal/press)
return 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();
 }
示例#2
0
 /**
  * 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);
 }
示例#3
0
 /**
  * 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;
 }
示例#4
0
 /**
  * Determine whether or not this plugin is enabled.
  * @return boolean
  */
 function getEnabled()
 {
     $plugin =& $this->getCmsPlugin();
     if ($plugin->getEnabled()) {
         return parent::getEnabled();
     }
     return false;
 }