Class Index | File Index

Classes


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.

Class Summary
Constructor Attributes Constructor Name and Description
 
Field Summary
Field Attributes Field Name and Description
 
Indicates whether data provider operates asynchronously or not.
 
The type of this object.
Method Summary
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.
Methods borrowed from class M.Object:
bindToCaller, create, destroy, extend, get, include, set
Class Detail
M.DataProvider()
Field Detail
{Boolean} isAsync
Indicates whether data provider operates asynchronously or not.

{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.

Documentation generated by JsDoc Toolkit 2.4.0 on Wed Jan 25 2012 20:41:09 GMT+0100 (MEZ)