Class M.DataProvider
Extends
M.Object.
Wraps access to any defined data source and is the only interface for a model to
access this data.
Defined in: data_provider.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Field Attributes | Field Name and Description |
---|---|
The type of this object.
|
Method Attributes | Method Name and Description |
---|---|
check(obj, prop)
Checks if object has certain property.
|
|
del()
Interface method.
|
|
find(query)
Interface method.
|
|
save()
Interface method.
|
Field Detail
{String}
type
The type of this object.
Method Detail
{Booleans}
check(obj, prop)
Checks if object has certain property.
- Parameters:
- {obj} obj
- The object to check.
- {String} prop
- The property to check for.
- Returns:
- {Booleans} Returns YES (true) if object has property and NO (false) if not.
del()
Interface method.
Implemented by specific data provider.
find(query)
Interface method.
Implemented by specific data provider.
- Parameters:
- query
save()
Interface method.
Implemented by specific data provider.