/** * Static initializer. */ public static function init() { $citeStyleMW = MagicWord::get( 'wc_citestyle_attrib' ); self::$citeStyleAttributeWords = $citeStyleMW->getSynonyms(); $typeMW = MagicWord::get( 'wc_type_attrib' ); self::$typeAttributeWords = $typeMW->getSynonyms(); }
/** * Begin a new endnote section. * Citation style and type may be inherited from enclosing section, if undefined. * @param array $args = HTML attributes */ public function startSection( array $args ) { $superSection = $this->sectionStack[ $this->sectionStackPointer ]; $this->sectionStack[ ++$this->sectionStackPointer ] = WCSection::getSection( $args, $superSection->citationStyle, $superSection->citationType ); }