public function onSaveState() { $this->raiseEvent('OnSaveState', $this, null); $this->saveGlobals(); }