A simple store that provides a datastore interface to a filesystem. It takes a few parameters for initialization:
The purpose of this store is to represent a file as a datastore item. The datastore item by default has the following attributes that can be examined on it.
Note that the store's server call pattern is RESTlike.
The store also supports the passing of configurable options to the back end service, such as expanding all child files (no lazy load), displaying hidden files, displaying only directories, and so on. These are defined through a comma-separated list in declarative, or through setting the options array in programmatic. example: options="expand,dirsOnly,showHiddenFiles"
>A simple store that provides a datastore interface to a filesystem. It takes a few parameters for initialization:The purpose of this store is to represent a file as a datastore item. The datastore item by default has the following attributes that can be examined on it.
Note that the store's server call pattern is RESTlike.
The store also supports the passing of configurable options to the back end service, such as expanding all child files (no lazy load), displaying hidden files, displaying only directories, and so on. These are defined through a comma-separated list in declarative, or through setting the options array in programmatic. example: options="expand,dirsOnly,showHiddenFiles"
>Parameter | Type | Description |
---|---|---|
args | Object |
See the dojox/data/FileStore reference documentation for more information.
Internal variable of attributes all file items should have.
Default attribute to use to represent the item's identifier. Path should always be unique in the store instance.
Internal variable used to denote an item came from this store instance.
Flag to pass on to xhr functions to check if we are OK to fail the call silently
Default attribute to use to represent the item as a user-readable string. Public, so users can change it.
Array of options to always send when doing requests. Back end service controls this, like 'dirsOnly', 'showHiddenFiles', 'expandChildren', etc.
The path separator to use when chaining requests for children Can be overriden by the server on initial load
Flag to dennote if preventCache should be passed to xhrGet.
This function tests whether the item passed in is indeed a valid 'attribute' like type for the store.
Parameter | Type | Description |
---|---|---|
attribute | attribute-name-string | The attribute to test for being contained by the store. |
This function tests whether the item passed in is indeed an item in the store.
Parameter | Type | Description |
---|---|---|
item | item | The item to test for being contained by the store. |
Internal function for processing an item returned from the store. It sets up the store ref as well as sets up the attributes necessary to invoke a lazy load on a child, if there are any.
Parameter | Type | Description |
---|---|---|
item | undefined |
Internal function for processing an array of items for return.
Parameter | Type | Description |
---|---|---|
itemArray | undefined |
Parameter | Type | Description |
---|---|---|
data | undefined | |
request | undefined |
See dojo/data/api/Read.close()
Parameter | Type | Description |
---|---|---|
request | undefined |
See dojo/data/api/Read.containsValue()
Parameter | Type | Description |
---|---|---|
item | undefined | |
attribute | undefined | |
value | undefined |
Fetch items that match to a query
Parameter | Type | Description |
---|---|---|
request | undefined | A request object |
See dojo/data/api/Read.loadItem()
Parameter | Type | Description |
---|---|---|
keywordArgs | undefined |
See dojo/data/api/Read.getAttributes()
Parameter | Type | Description |
---|---|---|
item | undefined |
See dojo/data/api/Identity.getIdentity()
Parameter | Type | Description |
---|---|---|
item | item |
See dojo/data/api/Read.getLabelAttributes()
Parameter | Type | Description |
---|---|---|
item | undefined |
See dojo/data/api/Read.getLabel()
Parameter | Type | Description |
---|---|---|
item | undefined |
See dojo/data/api/Read.getLabelAttributes()
Parameter | Type | Description |
---|---|---|
item | undefined |
See dojo/data/api/Read.getValue()
Parameter | Type | Description |
---|---|---|
item | undefined | |
attribute | undefined | |
defaultValue | undefined |
See dojo/data/api/Read.getValue()
Parameter | Type | Description |
---|---|---|
item | undefined | |
attribute | undefined |
See dojo/data/api/Read.hasAttribute()
Parameter | Type | Description |
---|---|---|
item | undefined | |
attribute | undefined |
See dojo/data/api/Read.isItem()
Parameter | Type | Description |
---|---|---|
item | undefined |
See dojo/data/api/Read.isItemLoaded()
Parameter | Type | Description |
---|---|---|
item | undefined |
See dojo/data/api/Read.loadItem()
Parameter | Type | Description |
---|---|---|
keywordArgs | undefined |