本文整理汇总了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;
}