public function setFromStorage($json)
    {
        list($cache, $complete) = json_decode($json, true);

        if (json_last_error() === JSON_ERROR_NONE && is_array($cache) && is_array($complete)) {
            $this->cache = $cache;
            $this->complete = $complete;
        }
    }
public function setFromStorage($json)
    {
        list($cache, $complete) = json_decode($json, true);

        if (json_last_error() === JSON_ERROR_NONE && is_array($cache) && is_array($complete)) {
            $this->cache = $cache;
            $this->complete = $complete;
        }
    }
public function setFromStorage ( $ json ) { list ( $ cache , $ complete ) = json_decode ( $ json , true ) ; if ( json_last_error ( ) === JSON_ERROR_NONE && is_array ( $ cache ) && is_array ( $ complete ) ) { $ this -> cache = $ cache ; $ this -> complete = $ complete ; } }
Load from serialized cache data.

@param string $json
Load from serialized cache data .