main/core/API/Serializer/ParametersSerializer.php
public function deserialize(array $data)
    {
        $original = $data;
        $this->deserializeTos($data);
        $data = $this->getJavascriptsData($data);
        $data = $this->getLogoData($data);
        unset($data['tos']['text']);
        //maybe move this somewhere else
        unset($data['archives']);

        $data = array_merge($this->serialize([Options::SERIALIZE_MINIMAL]), $data);
        ksort($data);
        $data = json_encode($data, JSON_PRETTY_PRINT);

        file_put_contents($this->filePath, $data);

        return $original;
    }
public function deserialize(array $data)
    {
        $original = $data;
        $this->deserializeTos($data);
        $data = $this->getJavascriptsData($data);
        $data = $this->getLogoData($data);
        unset($data['tos']['text']);
        //maybe move this somewhere else
        unset($data['archives']);

        $data = array_merge($this->serialize([Options::SERIALIZE_MINIMAL]), $data);
        ksort($data);
        $data = json_encode($data, JSON_PRETTY_PRINT);

        file_put_contents($this->filePath, $data);

        return $original;
    }
public function deserialize ( array $ data ) { $ original = $ data ; $ this -> deserializeTos ( $ data ) ; $ data = $ this -> getJavascriptsData ( $ data ) ; $ data = $ this -> getLogoData ( $ data ) ; unset ( $ data [ 'tos' ] [ 'text' ] ) ; //maybe move this somewhere else unset ( $ data [ 'archives' ] ) ; $ data = array_merge ( $ this -> serialize ( [ Options :: SERIALIZE_MINIMAL ] ) , $ data ) ; ksort ( $ data ) ; $ data = json_encode ( $ data , JSON_PRETTY_PRINT ) ; file_put_contents ( $ this -> filePath , $ data ) ; return $ original ; }
Deserializes the parameters list.

@param array $data - the data to deserialize

@return array
Deserializes the parameters list .