|
|
|
_convertFileTypeArray(
validFileTypeString
: String
) :
void
converts a string with a ";"-seperated list of file extensions into an array
Parameter |
Type |
Usage |
Description |
validFileTypeString |
String |
required |
|
Examples
|
|
|
|
_fetch(
directory
) :
void
Parameter |
Type |
Usage |
Description |
directory |
|
required |
|
|
|
|
|
_fetchItems(
keywordArgs
findCallback
errorCallback
) :
void
Parameter |
Type |
Usage |
Description |
keywordArgs |
|
required |
|
findCallback |
|
required |
|
errorCallback |
|
required |
|
|
|
|
|
_loadList(
directoryPath
) :
void
Parameter |
Type |
Usage |
Description |
directoryPath |
|
required |
|
|
|
|
|
_send(
params
opt
) :
void
Parameter |
Type |
Usage |
Description |
params |
|
required |
|
opt |
|
required |
|
|
|
|
|
constructor(
keywordParameters
) :
void
Parameter |
Type |
Usage |
Description |
keywordParameters |
|
required |
|
|
|
|
|
copyImageFromImageDb(
directory
files
) :
void
Parameter |
Type |
Usage |
Description |
directory |
|
required |
|
files |
|
required |
|
|
|
|
|
createDirectory(
name
parentDirectory
) :
void
Parameter |
Type |
Usage |
Description |
name |
|
required |
|
parentDirectory |
|
required |
|
|
|
|
|
deleteDirectory(
directory
) :
void
Parameter |
Type |
Usage |
Description |
directory |
|
required |
|
|
|
|
|
deleteFiles(
selectedNodes
directory
) :
void
Parameter |
Type |
Usage |
Description |
selectedNodes |
|
required |
|
directory |
|
required |
|
|
|
|
|
fetch(
request
: Object
) :
void
The simpleFetch mixin is designed to serve as a set of function(s) that can
be mixed into other datastore implementations to accelerate their development.
The simpleFetch mixin should work well for any datastore that can respond to a _fetchItems()
call by returning an array of all the found items that matched the query. The simpleFetch mixin
is not designed to work for datastores that respond to a fetch() call by incrementally
loading items, or sequentially loading partial batches of the result
set. For datastores that mixin simpleFetch, simpleFetch
implements a fetch method that automatically handles eight of the fetch()
arguments -- onBegin, onItem, onComplete, onError, start, count, sort and scope
The class mixing in simpleFetch should not implement fetch(),
but should instead implement a _fetchItems() method. The _fetchItems()
method takes three arguments, the keywordArgs object that was passed
to fetch(), a callback function to be called when the result array is
available, and an error callback to be called if something goes wrong.
The _fetchItems() method should ignore any keywordArgs parameters for
start, count, onBegin, onItem, onComplete, onError, sort, and scope.
The _fetchItems() method needs to correctly handle any other keywordArgs
parameters, including the query parameter and any optional parameters
(such as includeChildren). The _fetchItems() method should create an array of
result items and pass it to the fetchHandler along with the original request object
-- or, the _fetchItems() method may, if it wants to, create an new request object
with other specifics about the request that are specific to the datastore and pass
that as the request object to the handler.
For more information on this specific function, see dojo.data.api.Read.fetch()
Parameter |
Type |
Usage |
Description |
request |
Object |
optional |
|
|
|
|
|
getFiles(
directory
) :
void
Parameter |
Type |
Usage |
Description |
directory |
|
required |
|
|
|
|
|
getIdentity(
item
) :
void
Parameter |
Type |
Usage |
Description |
item |
|
required |
|
|
|
|
|
getInfo(
directory
) :
void
Parameter |
Type |
Usage |
Description |
directory |
|
required |
|
|
|
|
|
getLabel(
item
) :
void
Parameter |
Type |
Usage |
Description |
item |
|
required |
|
|
|
|
|
getNode(
directory
) :
void
Parameter |
Type |
Usage |
Description |
directory |
|
required |
|
|
|
|
|
getNodeTitle(
directory
) :
void
Parameter |
Type |
Usage |
Description |
directory |
|
required |
|
|
|
|
|
getValue(
item
attribute
) :
void
Parameter |
Type |
Usage |
Description |
item |
|
required |
|
attribute |
|
required |
|
|
|
|
|
getValues(
item
attribute
) :
void
Parameter |
Type |
Usage |
Description |
item |
|
required |
|
attribute |
|
required |
|
|
|
|
|
hasAttribute(
node
attributeName
) :
void
Parameter |
Type |
Usage |
Description |
node |
|
required |
|
attributeName |
|
required |
|
|
|
|
|
isItemLoaded(
something
) :
void
Parameter |
Type |
Usage |
Description |
something |
|
required |
|
|
|
|
|
postMixInProperties(
) :
void
initalize values - adjust properites
|
|
|
|
recursiveResetCache(
directory
) :
void
Parameter |
Type |
Usage |
Description |
directory |
|
required |
|
|
|
|
|
removeMediaGalleryFromString(
directory
: String
) :
void
removes "MediaGallery" string from given directory path
If the given directory contains the string "MediaGallery", it removes
the string. In addition a leading path slash (slash or backslash) is removed.
Parameter |
Type |
Usage |
Description |
directory |
String |
required |
|
Examples
|
|
|
|
renameDirectory(
name
oldName
directory
) :
void
Parameter |
Type |
Usage |
Description |
name |
|
required |
|
oldName |
|
required |
|
directory |
|
required |
|
|
|
|
|
renameFile(
directory
SourceFile
TargetFileName
) :
void
Parameter |
Type |
Usage |
Description |
directory |
|
required |
|
SourceFile |
|
required |
|
TargetFileName |
|
required |
|
|
|
|
|
resetCache(
directory
) :
void
Parameter |
Type |
Usage |
Description |
directory |
|
required |
|
|
|
|
|
resetDirectory(
directory
) :
void
Parameter |
Type |
Usage |
Description |
directory |
|
required |
|
|
|
|
|
setFileTypes(
fileTypes
: String
) :
void
updates the list of allowed file extensions
Parameter |
Type |
Usage |
Description |
fileTypes |
String |
required |
|
|