A data store for retrieving search results from Google. The following attributes are supported on each item:
The query accepts one parameter: text - The string to search for
The GoogleSearchStore is a Datastore interface to the Google search service. The constructor accepts the following arguments:
Parameter | Type | Description |
---|---|---|
args | Object |
See the dojox/data/GoogleSearchStore.ImageSearch reference documentation for more information.
Maps query hash keys to Google query parameters.
A counter for the number of requests made. This is used to define the callback function that GoogleSearchStore will use.
The internal reference added to each item pointing at the store which owns it.
The default attribute which acts as a label for each item.
Sets whether or not to pass preventCache to dojo.io.script.
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. |
Parameter | Type | Description |
---|---|---|
query | undefined | |
callback | undefined | |
request | undefined |
Parameter | Type | Description |
---|---|---|
item | undefined | |
name | undefined |
Parameter | Type | Description |
---|---|---|
item | undefined | |
data | 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 Google search items that match to a query
Parameter | Type | Description |
---|---|---|
request | undefined | A request object |
See dojo/data/api/Read.getAttributes()
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.hasAttributes()
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 |