Inpsyde\MultilingualPress\Translation\FullRequestDataManipulator::restore_data PHP Method

restore_data() public method

Restores all data from the storage.
Since: 3.0.0
public restore_data ( ) : integer
return integer Number of restored elements.
    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}"]);
    }