public function load()
    {
        $storage = $this->getStorage();
        if ($storage) {
            $data = $storage->get($this->userId, $this->getStorageKey());
            if ($data) {
                $this->state = json_decode($data, true);
            } else {
                $this->state = [];
            }
            $success = is_array($this->state);
        } else {
            $success = false;    
        }
        return $success;
    }
public function load()
    {
        $storage = $this->getStorage();
        if ($storage) {
            $data = $storage->get($this->userId, $this->getStorageKey());
            if ($data) {
                $this->state = json_decode($data, true);
            } else {
                $this->state = [];
            }
            $success = is_array($this->state);
        } else {
            $success = false;    
        }
        return $success;
    }
public function load ( ) { $ storage = $ this -> getStorage ( ) ; if ( $ storage ) { $ data = $ storage -> get ( $ this -> userId , $ this -> getStorageKey ( ) ) ; if ( $ data ) { $ this -> state = json_decode ( $ data , true ) ; } else { $ this -> state = [ ] ; } $ success = is_array ( $ this -> state ) ; } else { $ success = false ; } return $ success ; }
Loads the extended state from the storage
@return bool
Loads the extended state from the storage