function __sleep() { $asUnusedVars = array('bExists', 'bInfoLoaded'); return AnwUtils::instanceVars(get_object_vars($this), $asUnusedVars); }
function __sleep() { if (!$this->bExists) { throw new AnwUnexpectedException("trying to cache an unexistant page"); } if ($this->bIsArchive) { throw new AnwUnexpectedException("trying to cache an archived page"); } if (!$this->bInfoLoaded) { throw new AnwUnexpectedException("trying to cache a page not loaded"); } //cache some values from contentclass //FOR STRANGE REASONS, DOES AN INTERNAL ERROR ON SOME SERVERS... //So we force loading these values directly in rebuildPage() //$this->getCachedOutputKey(); //$this->getCachedOutputExpiry(); $asUnusedVars = array('oContent', 'oPreviousContent', 'bIsArchive', 'bExists', 'oChange', 'bInfoLoaded', 'bSkipLoadingTranslationsContent', 'bSkipLoadingContent'); return AnwUtils::instanceVars(get_object_vars($this), $asUnusedVars); }