Methods
(static) createReq(act, qry) → {Object}
create a request object from an action and a query object
Parameters:
| Name | Type | Description |
|---|---|---|
act |
String | The action that is requested |
qry |
Object | The query object for the requested action |
- Source:
Returns:
- The request object
- Type
- Object
(static) dataPost(succ, fail, act, qry) → {Object}
data post function
Parameters:
| Name | Type | Description |
|---|---|---|
succ |
function | Success function get's the resp object |
fail |
function | Failure function get's the err object |
act |
String | The action that is requested |
qry |
Object | The query object for the requested action |
- Source:
Requires:
- module:underscore
Returns:
- Result of succ or failure function
- Type
- Object
(static) post(demo, succ, fail, act, qry) → {Object}
request post function
Parameters:
| Name | Type | Description |
|---|---|---|
demo |
bool | Use either server or demo data |
succ |
function | Success function get's the resp object |
fail |
function | Failure function get's the err object |
act |
String | The action that is requested |
qry |
Object | The query object for the requested action |
- Source:
Requires:
- module:webix
Returns:
- Result of succ or failure function
- Type
- Object
(static) serverPost(succ, fail, act, qry) → {Object}
server post function
Parameters:
| Name | Type | Description |
|---|---|---|
succ |
function | Success function get's the resp object |
fail |
function | Failure function get's the err object |
act |
String | The action that is requested |
qry |
Object | The query object for the requested action |
- Source:
Returns:
- Result of succ or failure function
- Type
- Object