當前位置: 首頁>>代碼示例>>PHP>>正文


PHP BlockPlugin::getSeq方法代碼示例

本文整理匯總了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();
 }
開發者ID:ingmarschuster,項目名稱:MindResearchRepository,代碼行數:11,代碼來源:LanguageToggleBlockPlugin.inc.php

示例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);
 }
開發者ID:pkp,項目名稱:ojs,代碼行數:13,代碼來源:LanguageToggleBlockPlugin.inc.php

示例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;
 }
開發者ID:PublishingWithoutWalls,項目名稱:pkp-lib,代碼行數:14,代碼來源:UsageStatsOptoutBlockPlugin.inc.php

示例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;
 }
開發者ID:laelnasan,項目名稱:UTFPR-ojs,代碼行數:16,代碼來源:LuceneFacetsBlockPlugin.inc.php


注:本文中的BlockPlugin::getSeq方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。