plugins/blocks/information/InformationBlockPlugin.inc.php

00001 <?php
00002 
00015 //$Id$
00016 
00017 import('plugins.BlockPlugin');
00018 
00019 class InformationBlockPlugin 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 
00033    function getName() {
00034       return 'InformationBlockPlugin';
00035    }
00036 
00041    function getNewConferencePluginSettingsFile() {
00042       return $this->getPluginPath() . '/settings.xml';
00043    }
00044 
00049    function getDisplayName() {
00050       return __('plugins.block.information.displayName');
00051    }
00052 
00056    function getDescription() {
00057       return __('plugins.block.information.description');
00058    }
00059 
00064    function getSupportedContexts() {
00065       return array(BLOCK_CONTEXT_LEFT_SIDEBAR, BLOCK_CONTEXT_RIGHT_SIDEBAR);
00066    }
00067 
00073    function getContents(&$templateMgr) {
00074       $conference =& Request::getConference();
00075       if (!$conference) return '';
00076 
00077       $templateMgr->assign('forReaders', $conference->getLocalizedSetting('readerInformation'));
00078       $templateMgr->assign('forAuthors', $conference->getLocalizedSetting('authorInformation'));
00079       return parent::getContents($templateMgr);
00080    }
00081 }
00082 
00083 ?>

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