Source API for the «PortePlugins_DojoStore» class
PortePlugins_DojoStore
Plugin to add dojo data store format as exportable option.
Public static methods
- register
-
Register the plugin with a Porte instance.
- _iteratorCallBefore
-
Plug method "toDojoStore" on "iterator_call_before" called by PorteIterator
New method accept the following options:
output (string) Accepted values include json label (string) Name of the property marked as a label -
- return
- array
- Dojo conpatible store
- Object
- $list
- Object
- $method
- Object
- $args
- prepareItems
-
Options may include:
- types Array in the form of porte_type => dojo_typeThe type option implement the way item may be serialize and deserialize in the dojo.data.ItemFileReadStore and dojo.data.ItemFileWriteStore. For exemple, providing a type option as "date_property"=>"Date", "year_property":"Year" will generate of each items the property date_property as equals to "_type"=>'Date', "_value"=>"1978-10-09 00:00:00"
-
- return
- Object
- $model
- Object
- $items
- Object[optional]
- $options