Login Register Help
API Documentation
Choose a stylesheet:

Constructordojo.data.ItemFileReadStore

dojo.require("dojo.data.ItemFileReadStore");
defined in dojo/data/ItemFileReadStore.js
The ItemFileReadStore implements the dojo.data.api.Read API and reads data from JSON files that have contents in this format -- { items: [ { name:'Kermit', color:'green', age:12, friends:['Gonzo', {_reference:{name:'Fozzie Bear'}}]}, { name:'Fozzie Bear', wears:['hat', 'tie']}, { name:'Miss Piggy', pets:'Foo-Foo'} ]} Note that it can also contain an 'identifer' property that specified which attribute on the items in the array of items that acts as the unique identifier for that item. use "" rather than undefined for the benefit of the parser (#3539)

Jump to PropertiesJump to FunctionsJump to ConstructorsNamespacesBack to top

Jump to PropertiesJump to FunctionsJump to NamespacesConstructorsBack to top

See dojo.data.api.Read.close()
See dojo.data.api.Identity.fetchItemByIdentity()
See dojo.data.api.Identity.getIdentity()
See dojo.data.api.Identity.getIdentifierAttributes()
See dojo.data.util.simpleFetch.fetch()
Function to parse the loaded data into item format and build the internal items array.
Internal function to execute delayed request in the store. Execute any deferred fetches now.

Jump to PropertiesJump to ConstructorsJump to NamespacesFunctionsBack to top

Functionconstructor(keywordParameters: Object)
Overrides
constructor
FunctioncontainsValue(item: item, attribute: attribute-name-string, value: anything): boolean.
Overrides
See dojo.data.api.Read.containsValue()
FunctiongetAttributes(item: item): Array
Overrides
See dojo.data.api.Read.getAttributes()
Overrides
See dojo.data.api.Read.getFeatures()
FunctiongetLabel(item: item): String | undefined
Overrides
See dojo.data.api.Read.getLabel()
FunctiongetLabelAttributes(item: item): Array | null
Overrides
See dojo.data.api.Read.getLabelAttributes()
FunctiongetValue(item: item, attribute: attribute-name-string, defaultValue: value?): mixed
Overrides
See dojo.data.api.Read.getValue()
FunctiongetValues(item: item, attribute: attribute-name-string): Array
Overrides
See dojo.data.api.Read.getValues()
FunctionhasAttribute(item: item, attribute: attribute-name-string)
Overrides
See dojo.data.api.Read.hasAttribute()
FunctionisItem(something: anything): Boolean
Overrides
See dojo.data.api.Read.isItem()
FunctionisItemLoaded(something: anything): Boolean
Overrides
See dojo.data.api.Read.isItemLoaded()
FunctionloadItem(keywordArgs: Object)
Overrides
See dojo.data.api.Read.loadItem()
Function_addReferenceToMap(refItem: item, parentItem: item, attribute: String)
Overrides
Method to add an reference map entry for an item and attribute.
Function_assertIsAttribute(attribute: attribute-name-string)
Overrides
This function tests whether the item passed in is indeed a valid 'attribute' like type for the store.
Function_assertIsItem(item: item)
Overrides
This function tests whether the item passed in is indeed an item in the store.
Function_containsValue(item: item, attribute: attribute-name-string, value: anything, regexp: RegExp?): Boolean
Overrides
Internal function for looking at the values contained by the item.
Overrides
Internal function to force a load of the store if it hasn't occurred yet. This is required for specific functions to work properly.
Overrides
Internal function to look an item up by its identity map.
Function_getItemsArray(queryOptions: Object?)
Overrides
Internal function to determine which list of items to search over.

Jump to FunctionsJump to ConstructorsJump to NamespacesPropertiesBack to top

Overrides
Overrides
Overrides
Overrides
Overrides
Overrides
Defined by
Defined by
Defined by
Defined by
Defined by
Defined by
Defined by
Defined by
Defined by
Defined by
Defined by
Defined by