src/Seboettg/CiteProc/CiteProc.php
public function init($citationAsArray = false)
    {
        self::$context = new Context($this);
        self::$context->setLocale(new Locale\Locale($this->lang)); //init locale
        self::$context->setCitationsAsArray($citationAsArray);
        // set markup extensions
        self::$context->setMarkupExtension($this->markupExtension);
        $this->styleSheetXml = new SimpleXMLElement($this->styleSheet);
        $this->parse($this->styleSheetXml);
    }
public function init($citationAsArray = false)
    {
        self::$context = new Context($this);
        self::$context->setLocale(new Locale\Locale($this->lang)); //init locale
        self::$context->setCitationsAsArray($citationAsArray);
        // set markup extensions
        self::$context->setMarkupExtension($this->markupExtension);
        $this->styleSheetXml = new SimpleXMLElement($this->styleSheet);
        $this->parse($this->styleSheetXml);
    }
public function init ( $ citationAsArray = false ) { self :: $ context = new Context ( $ this ) ; self :: $ context -> setLocale ( new Locale \ Locale ( $ this -> lang ) ) ; //init locale self :: $ context -> setCitationsAsArray ( $ citationAsArray ) ; // set markup extensions self :: $ context -> setMarkupExtension ( $ this -> markupExtension ) ; $ this -> styleSheetXml = new SimpleXMLElement ( $ this -> styleSheet ) ; $ this -> parse ( $ this -> styleSheetXml ) ; }
initializes CiteProc and start parsing XML stylesheet
@param bool $citationAsArray
@throws CiteProcException
initializes CiteProc and start parsing XML stylesheet