00001 <?php
00002
00015
00016
00017
00018 class CitationPlugin extends Plugin {
00024 function getName() {
00025
00026 return 'CitationPlugin';
00027 }
00028
00034 function getDisplayName() {
00035
00036
00037 return 'Abstract Citation Plugin';
00038 }
00039
00043 function getCitationFormatName() {
00044
00045 fatalError('ABSTRACT METHOD');
00046 }
00047
00051 function getDescription() {
00052 return 'This is the CitationPlugin base class. Its functions can be overridden by subclasses to provide citation support.';
00053 }
00054
00059 function displayCitation($hookName, $args) {
00060 $params =& $args[0];
00061 $templateMgr =& $args[1];
00062 $output =& $args[2];
00063
00064 $output .= $templateMgr->fetch($this->getTemplatePath() . '/citation.tpl');
00065 return true;
00066 }
00067
00075 function cite(&$article, &$issue) {
00076 HookRegistry::register('Template::RT::CaptureCite', array(&$this, 'displayCitation'));
00077 $templateMgr =& TemplateManager::getManager();
00078 $templateMgr->assign_by_ref('citationPlugin', $this);
00079 $templateMgr->display('rt/captureCite.tpl');
00080 }
00081 }
00082 ?>