LudoJS service class.
This class outputs LudoJS config objects for LudoDB instances
Example where LudoJS config for LudoDBModel Person is returned with values of Person with id equals 1:
$handler = new LudoDBRequestHandler();
echo $handler->handle('LudoJS/Person/1/form');
This will return the config as a JSON string.
package | LudoDB |
---|---|
author | Alf Magne Kalleland |
__construct()
form() : array
array
getOnSuccessMessageFor(String $service) : String
String
String
getValidServices() : array
array
shouldCache(string $service) : bool
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
bool
validateArguments(String $service, Array $arguments) : bool
String
Array
bool
validateServiceData(string $service, array $data) : bool
string
array
bool
addValidation($children) : mixed
mixed
createDataSources($children) : mixed
mixed
getChildrenInRightOrder(array $children) : array
array
array
getDataSourceConfig($source) : array
array
isRegexFlag($token) : int
int
setChildValues($children) : mixed
mixed
setMissingProperties($children) : mixed
mixed
$resource : \LudoDBObject