Class M.RemoteStorageProvider
Extends
M.DataProvider.
Encapsulates access to a remote storage, a json based webservice.
Defined in: remote_storage.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Field Attributes | Field Name and Description |
---|---|
The type of this object.
|
|
The type of this object.
|
Method Attributes | Method Name and Description |
---|---|
configure(obj)
creates a new data provider instance with the passed configuration parameters
|
|
deepObjectReplacement(dataPattern, record, result)
Creates result as an object passed to the request containing the request data.
|
|
del(obj)
|
|
find(obj)
|
|
remoteQuery(onSuccess, onError)
|
|
save(obj)
|
- Methods borrowed from class M.DataProvider:
- check
- Methods borrowed from class M.Object:
- bindToCaller, create, destroy, extend, get, include, set
Field Detail
{Object}
config
The type of this object.
{String}
type
The type of this object.
Method Detail
configure(obj)
creates a new data provider instance with the passed configuration parameters
- Parameters:
- obj
deepObjectReplacement(dataPattern, record, result)
Creates result as an object passed to the request containing the request data.
- Parameters:
- dataPattern
- record
- result
del(obj)
- Parameters:
- obj
find(obj)
- Parameters:
- obj
remoteQuery(onSuccess, onError)
- Parameters:
- onSuccess
- onError
save(obj)
- Parameters:
- obj