model api

$set

set key/value to model

$get

get data from model

$pack

pack data object to model

$packResultSet

pack database resultSet data to model

$before

set before filters to model

filter can be String which is the name of the filter method in the model
or can be Array which contains the filter methods in order

examples:

1
2
model.$before('checkNum').$set('num', 10);
model.$before(['checkNum', 'checkRange']).$set('num', 100);

$after

set after filters to model

filter can be String which is the name of the filter method in the model
or can be Array which contains the filter methods in order