Classes for request handlers has to implement the LudoDBService interface
The class also needs to implement a static function called getValidServices which returns an array of valid services, example array('read','save','delete'); Methods with these names also has to be implemented. "read", "save" and "delete" are already implemented for LudoDBModel.
| package | LudoDB |
|---|---|
| author | Alf Magne Kalleland |
getOnSuccessMessageFor(String $service) : String
String
StringgetValidServices() : array
arrayshouldCache(string $service) : boolean
When true a serialized version of LudoDBModel::read will be stored in a caching table. When caching is enabled, you should also implement clearCache() to clear cache in case Data has been changed.
string
booleanvalidateArguments(String $service, Array $arguments) : bool
String
Array
boolvalidateServiceData(string $service, array $data) : bool
string
array
bool