Save REST input parameters into Magento registry.

@param $data
356085
public function setRestInputParams($data)
    {
        $oldValue = $this->registry->registry(self::REG_REST_INPUT);
        if (!is_null($oldValue)) {
            $this->registry->unregister(self::REG_REST_INPUT);
        }
        $this->registry->register(self::REG_REST_INPUT, $data);
    }
30489
public function unserialize($data)
    {
        foreach (unserialize($data) as $item) {
            $this->insert($item['data'], $item['priority']);
        }
    }
1373567
public function unserialize($data)
    {
        $dates = unserialize($data);
        $this->setFrom($dates['from']);
        $this->setTo($dates['to']);
    }
610677
function saveToSession($data, $name = '') {
		if(!$name) $name = $this->owner->FormName();

		\Session::set("FormInfo.{$name}.data", $data);
	}
1020438
public function unserialize($data)
    {
        list(
            $this->messageKey,
            $this->batchEnabled,
            $this->metadataProvider,
            $this->debugOutput,
            $this->clientConfig,
            $this->batchMethod,
            $this->logName,
            $debugOutputResource
        ) = unserialize($data);

        if (is_array($debugOutputResource)) {
            $this->debugOutputResource = fopen(
                $debugOutputResource['uri'],
                $debugOutputResource['mode']
            );
        }
    }
873825
protected function prepareRawPayload($data)
    {
        $this->clearRequestParams();
        $this->addHeader('Content-Length', strlen($data));
        $this->addOption(CURLOPT_POSTFIELDS, $data);
    }
598477
public function html($data)
    {
        if(is_array($data)) {
            echo $this->json($data);
        } else {
            echo $data;
        }

        if($this->app->config('session.enable')) {
            $this->session->create('previous_uri', $_SERVER['REQUEST_URI']);
            $this->session->create('planet_oldInput', null);
        }
    }
496331
protected function onInput($data)
    {
        $ndata = array();
        foreach ($this->params as $colname) {
            if (isset($data[$colname])) {
                $ndata[$colname] = $data[$colname];
            }
        }

        $this->next($ndata);
    }
1072647
public function save_changes($data) {
        $data = (array) $data;
        unset($data['filter']);
        unset($data['contextid']);
        foreach ($data as $name => $value) {
            if ($value !== '') {
                filter_set_local_config($this->filter, $this->context->id, $name, $value);
            } else {
                filter_unset_local_config($this->filter, $this->context->id, $name);
            }
        }
    }
1225715
public static function save($data)
	{
		$instance = self::getInstance();

		// Merge and make sure values are unique
		$data = $instance->merge($instance->config->toArray(), $data);
		$data = $instance->unique($data);

		// Set data back to the instance
		$instance->config = new Registry($data);

		// Actually write out the data
		$instance->write();

		return true;
	}
175256
public function buildPostBody($data = null) {
        $reqBody = ($data !== null) ? $data : $this->request_body;


        $this->request_body = (string) $reqBody;
    }
674158
private function prepareParameters($data)
    {
        // Parameters are sorted by name, using lexicographical byte value
        // ordering. Ref: Spec: 9.1.1 (1).
        uksort($data, 'strcmp');

        foreach ($data as $key => $value) {
            if ($value === null) {
                unset($data[$key]);
            }
        }

        return $data;
    }
286017
public function saveConfVars()
    {
        $oConfig = \OxidEsales\Eshop\Core\Registry::getConfig();

        $this->resetContentCache();

        $this->_sModuleId = $this->getEditObjectId();
        $sShopId = $oConfig->getShopId();

        $sModuleId = $this->_getModuleForConfigVars();

        foreach ($this->_aConfParams as $sType => $sParam) {
            $aConfVars = $oConfig->getRequestParameter($sParam);
            if (is_array($aConfVars)) {
                foreach ($aConfVars as $sName => $sValue) {
                    $sDbType = $this->_getDbConfigTypeName($sType);
                    $oConfig->saveShopConfVar(
                        $sDbType,
                        $sName,
                        $this->_serializeConfVar($sDbType, $sName, $sValue),
                        $sShopId,
                        $sModuleId
                    );
                }
            }
        }
    }
818696
protected function postUnserialize(array $data)
    {
        $this->repoPath = array_pop($data);
        $this->path = array_pop($data);
    }
791371
protected function saveRememberedParams()
	{
		$queryParams = Yii::$app->request->queryParams;
		if (empty($queryParams)) return;

		//prepare data array
		$memoryData = [];

		//fetch rules
		$arr = $this->memoryMap;
		foreach ($this->getCurrentMemoryPath() as $part) {
			if (!isset($arr[$part])) return;
			$arr = $arr[$part];
		}

		//iterate over params
		foreach ($queryParams as $paramName=>$paramVal) {
			foreach ($arr as $key=>$val) {
				$rule = $val instanceof \Closure ? $key : $val;
				$callback = $val instanceof \Closure ? $val : null;

				//check callback if set
				if ($callback !== null) {
					if (!call_user_func($callback)) continue;
				}

				//fix incorrect specified rules for regex comparison
				if ($rule[0] !== '/') $rule = '/' . $rule;
				if ($rule[strlen($rule) - 1] !== '/') $rule = $rule . '/';

				//match the rules
				if (preg_match($rule, $paramName) !== 0) {
					$memoryData[$paramName] = $paramVal;
					break;
				}
			}
		}

		//save the data
		$this->saveMemory($this->getMemoryKey(), $memoryData);
	}
180452
protected function save($data)
    {
        $currentStep = $this->getCurrentStep();
        if (is_array($data)) {
            foreach ($data as $field => $value) {
                if (in_array($field, $this->config()->get('ignored_fields'))) {
                    unset($data[$field]);
                }
            }
            $currentStep->saveData($data);
        }
        return;
    }
501043
protected function setData($data = [])
    {
        if (!isset($data[self::RS_KEY_CODE])) {
            $data[self::RS_KEY_CODE] = 0;
        }
        if (!isset($data[self::RS_KEY_MSG])) {
            $data[self::RS_KEY_MSG] = 'Success';
        }
        if (!isset($data[self::RS_KEY_TYPE])) {
            $data[self::RS_KEY_TYPE] = self::RESPONSE_XHTML;
        }

        if (!isset($data[self::RS_KEY_DATA])) {
            $data[self::RS_KEY_DATA] = new \stdClass();
        } else {
            if (!$data instanceof \stdClass) {
                $data[self::RS_KEY_DATA] = new \stdClass();
            }
        }
        $this->data = $data;
    }