refbaseURL = $wgRefbaseURL; } /** * Instantiation subclass instances */ public static function create( $outputType, $citationType = "" ) { if ( strtolower( $outputType ) == 'cite_journal' ) { return new RefbaseRendererCitationTemplate(); } elseif ( strtolower( $outputType ) == 'link' ) { return new RefbaseRendererLink( $citationType ); } elseif ( strtolower( $outputType ) == 'cite' ) { return new RefbaseRendererCite( $citationType ); } else { return false; } } /** * Returns the list of fields to extract from the database */ abstract public function getFieldList(); /** * Render entries */ abstract public function render( $entry, & $cite, $options ); }