getSeq() public method

See also: Plugin::getSeq() NB: In the case of block plugins, higher numbers move plugins down the page compared to other blocks.
public getSeq ( $contextId = null )
$contextId int Context ID (journal/press)
 /**
  * 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
0
 /**
  * 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);
 }
 /**
  * @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
0
 /**
  * @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;
 }