public function csl_locale::__sleep in Bibliography Module 7
Same name and namespace in other branches
- 6.2 modules/CiteProc/CSL.inc \csl_locale::__sleep()
- 7.2 modules/CiteProc/CSL.inc \csl_locale::__sleep()
SimpleXML objects cannot be serialized, so we must convert to an XML string prior to serialization.
File
- modules/
CiteProc/ CSL.inc, line 2071 - CiteProc-PHP.
Class
Code
public function __sleep() {
$this->locale_xmlstring = $this->locale ? $this->locale
->asXML() : '';
$this->style_locale_xmlstring = $this->style_locale ? $this->style_locale
->asXML() : '';
return array(
'locale_xmlstring',
'style_locale_xmlstring',
);
}