本文整理匯總了PHP中BlockPlugin::getEnabled方法的典型用法代碼示例。如果您正苦於以下問題:PHP BlockPlugin::getEnabled方法的具體用法?PHP BlockPlugin::getEnabled怎麽用?PHP BlockPlugin::getEnabled使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類BlockPlugin
的用法示例。
在下文中一共展示了BlockPlugin::getEnabled方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: getEnabled
/**
* 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: 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);
}
示例3: getEnabled
/**
* 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: getEnabled
/**
* Determine whether or not this plugin is enabled.
* @return boolean
*/
function getEnabled()
{
$plugin =& $this->getCmsPlugin();
if ($plugin->getEnabled()) {
return parent::getEnabled();
}
return false;
}