本文整理匯總了PHP中BlockPlugin::getSeq方法的典型用法代碼示例。如果您正苦於以下問題:PHP BlockPlugin::getSeq方法的具體用法?PHP BlockPlugin::getSeq怎麽用?PHP BlockPlugin::getSeq使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類BlockPlugin
的用法示例。
在下文中一共展示了BlockPlugin::getSeq方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: getSeq
/**
* Determine the plugin sequence. Overrides parent so that
* the plugin will be displayed during install.
*/
function getSeq()
{
if (!Config::getVar('general', 'installed')) {
return 2;
}
return parent::getSeq();
}
示例2: getSeq
/**
* Determine the plugin sequence. Overrides parent so that
* the plugin will be displayed during install.
*
* @param $contextId int Context ID (journal/press)
*/
function getSeq($contextId = null)
{
if (!Config::getVar('general', 'installed')) {
return 2;
}
return parent::getSeq($contextId);
}
示例3: getSeq
/**
* @copydoc PKPPlugin::getSeq()
*/
function getSeq()
{
// Identify the position of the faceting block.
$seq = parent::getSeq();
// If nothing has been configured then show the privacy
// block after all other blocks in the context.
if (!is_numeric($seq)) {
$seq = 99;
}
return $seq;
}
示例4: getSeq
/**
* @see Plugin::getSeq()
*/
function getSeq()
{
// Identify the position of the faceting block.
$seq = parent::getSeq();
// If nothing has been configured then use the first
// position. This is ok as we'll only display facets
// in a search results context where they have a high
// relevance by default.
if (!is_numeric($seq)) {
$seq = 0;
}
return $seq;
}