Inpsyde\MultilingualPress\Translation\FullRequestDataManipulator::restore_data PHP 메소드

restore_data() 공개 메소드

Restores all data from the storage.
부터: 3.0.0
public restore_data ( ) : integer
리턴 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}"]);
    }