plugins/blocks/navigation/NavigationBlockPlugin.inc.php

00001 <?php
00002 
00015 //$Id$
00016 
00017 import('plugins.BlockPlugin');
00018 
00019 class NavigationBlockPlugin extends BlockPlugin {
00020    function register($category, $path) {
00021       $success = parent::register($category, $path);
00022       if ($success) {
00023          $this->addLocaleData();
00024       }
00025       return $success;
00026    }
00027 
00032    function getSupportedContexts() {
00033       return array(BLOCK_CONTEXT_LEFT_SIDEBAR, BLOCK_CONTEXT_RIGHT_SIDEBAR);
00034    }
00035 
00041    function getName() {
00042       return 'NavigationBlockPlugin';
00043    }
00044 
00049    function getInstallSitePluginSettingsFile() {
00050       return $this->getPluginPath() . '/settings.xml';
00051    }
00052 
00057    function getNewConferencePluginSettingsFile() {
00058       return $this->getPluginPath() . '/settings.xml';
00059    }
00060 
00065    function getDisplayName() {
00066       return __('plugins.block.navigation.displayName');
00067    }
00068 
00072    function getDescription() {
00073       return __('plugins.block.navigation.description');
00074    }
00075 
00081    function getContents(&$templateMgr) {
00082       $templateMgr->assign('paperSearchByOptions', array(
00083          '' => 'search.allFields',
00084          PAPER_SEARCH_AUTHOR => 'search.author',
00085          PAPER_SEARCH_TITLE => 'paper.title',
00086          PAPER_SEARCH_ABSTRACT => 'search.abstract',
00087          PAPER_SEARCH_INDEX_TERMS => 'search.indexTerms',
00088          PAPER_SEARCH_GALLEY_FILE => 'search.fullText'
00089       ));
00090       return parent::getContents($templateMgr);
00091    }
00092 }
00093 
00094 ?>

Generated on 25 Jul 2013 for Open Conference Systems by  doxygen 1.4.7