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
arraygetOnSuccessMessageFor(String $service) : String
String
StringgetValidServices() : array
arrayshouldCache(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
boolvalidateArguments(String $service, Array $arguments) : bool
String
Array
boolvalidateServiceData(string $service, array $data) : bool
string
array
booladdValidation($children) : mixed
mixedcreateDataSources($children) : mixed
mixedgetChildrenInRightOrder(array $children) : array
array
arraygetDataSourceConfig($source) : array
arrayisRegexFlag($token) : int
intsetChildValues($children) : mixed
mixedsetMissingProperties($children) : mixed
mixed$resource : \LudoDBObject