public function restore_data() { if (!$this->storage) { return 0; } $_REQUEST = array_merge($_REQUEST, $this->storage); $GLOBALS["_{$this->request_method}"] = $this->storage; $this->storage = []; return count($GLOBALS["_{$this->request_method}"]); }