Controller Namespace
Classes
DataGrid
buildBaseCriteria
Build the filter criteria for a given request.
Signature
buildBaseCriteria(Object req, Object res, Object options) : Object
Parameters
- req
- Request to analyse
- Type: Object
- res
- Response to call on errors
- Type: Object
- options
- Options to use
- Type: Object
Returns
- Object
- The return value is not further described
buildSqlPagination
Build a SQL pagination object by a sql-criteria object.
Signature
buildSqlPagination(Object sqlCriteria, Object options, Function callback) : Object
Parameters
- sqlCriteria
- Criteria object to get data from
- Type: Object
- options
- Options to use
- Type: Object
- callback
- Function to call on finish
- Type: Function
Returns
- Object
- The return value is not further described
buildSqlCriteria
Build the SQL filter criteria for a given request.
Signature
buildSqlCriteria(Object req, Object res, Object options) : Object
Parameters
- req
- Request to analyse
- Type: Object
- res
- Response to call on errors
- Type: Object
- options
- Options to use
- Type: Object
Returns
- Object
- The return value is not further described
buildNoSqlPagination
Build a NoSQL pagination object by a NoSql-criteria object.
Signature
buildNoSqlPagination(Object noSqlCriteria, Object options, Function callback) : Object
Parameters
- noSqlCriteria
- Criteria object to get data from
- Type: Object
- options
- Options to use
- Type: Object
- callback
- Function to call on finish
- Type: Function
Returns
- Object
- The return value is not further described
buildNoSqlCriteria
Build the NoSQL filter criteria for a given request.
Signature
buildNoSqlCriteria(Object req, Object res, Object options) : Object
Parameters
- req
- Request to analyse
- Type: Object
- res
- Response to call on errors
- Type: Object
- options
- Options to use
- Type: Object
Returns
- Object
- The return value is not further described
Date
compare
Compare two dates according to the given compare operations.
Signature
compare(Object|String firstDate, Object|String operations, Object|String secondDate) : Boolean
Parameters
- firstDate
- containing either both, the first date and its format, or only the date as a string
- Types: Object, String
- operations
- contains an option set of operations
- Types: Object, String
- secondDate
- containing either both, the second date and its format
- Types: Object, String
Returns
- Boolean
- The return value is not further described
ErrorHelper
showErrorPage
Log and forward to the default error page.
Signature
showErrorPage(Object req, Object res, Object err, [String view], [Object locals]) : void
Parameters
- req
- Request object
- Type: Object
- res
- Response object
- Type: Object
- err
- Error object
- Type: Object
- [view]
- Name of the error view to render
- Type: String
- [locals]
- Locals to pass to the view
- Type: Object