You are here

function csl_locale::__wakeup in Bibliography Module 7.2

Same name and namespace in other branches
  1. 6.2 modules/CiteProc/CSL.inc \csl_locale::__wakeup()
  2. 7 modules/CiteProc/CSL.inc \csl_locale::__wakeup()

File

modules/CiteProc/CSL.inc, line 1481

Class

csl_locale

Code

function __wakeup() {
  $this->style_locale = !empty($this->style_locale_xmlstring) ? new SimpleXMLElement($this->style_locale_xmlstring) : NULL;
  $this->locale = !empty($this->locale_xmlstring) ? new SimpleXMLElement($this->locale_xmlstring) : NULL;
  if ($this->locale) {
    $this->locale
      ->registerXPathNamespace('cs', 'http://purl.org/net/xbiblio/csl');
  }
}