|
| getDatas () |
|
| getRequestParam ($param, $default) |
|
| operate_ ($instance, $callback, $status, $exceptionMessage, $keyValues) |
|
| generatePagination (&$filter, $pageNumber, $pageSize) |
|
| updateOperation ($instance, $datas, $updateMany=false) |
|
| addOperation ($instance, $datas, $insertMany=false) |
|
| _getResponseFormatter () |
|
| getResponseFormatter () |
| To override, returns the active formatter for the response.
|
|
| _getRequestFormatter () |
|
| getRequestFormatter () |
| To override, returns the active formatter for the request.
|
|
| _getRestServer () |
|
| getRestServer () |
| To override, returns the active RestServer.
|
|
| _setValuesToObject ($instance, $values=[]) |
| Updates $instance with $values To eventually be redefined in derived classes.
|
|
| updateManyToOne ($manyToOneRelations, $members, $className, $instance, $values) |
|
| getInclude ($include) |
|
| addError ($code, $title, $detail=null, $source=null, $status=null) |
|
| hasErrors () |
|
| displayErrors () |
|
| getAssociatedMemberValues_ ($ids, $getDatas, $member, $include=false, $useCache=false, $multiple=true) |
|
| addViolation (ConstraintViolation $violation) |
|
| getPrimaryKeysFromDatas ($datas, $model) |
|
| getCondition ($condition) |
|
◆ _getRequestFormatter()
◆ _getResponseFormatter()
_getResponseFormatter |
( |
| ) |
|
|
protected |
◆ _getRestServer()
◆ _setResponseCode()
_setResponseCode |
( |
|
$value | ) |
|
|
abstract |
◆ _setValuesToObject()
_setValuesToObject |
( |
|
$instance, |
|
|
|
$values = [ ] |
|
) |
| |
|
protected |
Updates $instance with $values To eventually be redefined in derived classes.
- Parameters
-
object | $instance | the instance to update |
array | $values | |
Definition at line 153 of file RestControllerUtilitiesTrait.php.
◆ _validateInstance()
_validateInstance |
( |
|
$instance, |
|
|
|
$members, |
|
|
|
$excludedValidators = [ ] |
|
) |
| |
◆ addError()
addError |
( |
|
$code, |
|
|
|
$title, |
|
|
|
$detail = null , |
|
|
|
$source = null , |
|
|
|
$status = null |
|
) |
| |
|
protected |
◆ addOperation()
addOperation |
( |
|
$instance, |
|
|
|
$datas, |
|
|
|
$insertMany = false |
|
) |
| |
|
protected |
◆ addViolation()
◆ displayErrors()
◆ generatePagination()
generatePagination |
( |
& |
$filter, |
|
|
|
$pageNumber, |
|
|
|
$pageSize |
|
) |
| |
|
protected |
◆ getAssociatedMemberValues_()
getAssociatedMemberValues_ |
( |
|
$ids, |
|
|
|
$getDatas, |
|
|
|
$member, |
|
|
|
$include = false , |
|
|
|
$useCache = false , |
|
|
|
$multiple = true |
|
) |
| |
|
protected |
- Parameters
-
string | $ids | The primary key values (comma separated if pk is multiple) |
callable | $getDatas | |
string | $member | The member to load |
boolean | string | $include | if true, loads associate members with associations, if string, example : client.*,commands |
boolean | $useCache | |
boolean | $multiple | |
- Exceptions
-
Exception
Definition at line 234 of file RestControllerUtilitiesTrait.php.
◆ getCondition()
getCondition |
( |
|
$condition | ) |
|
|
protected |
◆ getDatas()
◆ getInclude()
◆ getPrimaryKeysFromDatas()
getPrimaryKeysFromDatas |
( |
|
$datas, |
|
|
|
$model |
|
) |
| |
|
protected |
◆ getRequestFormatter()
◆ getRequestParam()
getRequestParam |
( |
|
$param, |
|
|
|
$default |
|
) |
| |
|
protected |
◆ getResponseFormatter()
◆ getRestServer()
◆ hasErrors()
◆ operate_()
operate_ |
( |
|
$instance, |
|
|
|
$callback, |
|
|
|
$status, |
|
|
|
$exceptionMessage, |
|
|
|
$keyValues |
|
) |
| |
|
protected |
◆ updateManyToOne()
updateManyToOne |
( |
|
$manyToOneRelations, |
|
|
|
$members, |
|
|
|
$className, |
|
|
|
$instance, |
|
|
|
$values |
|
) |
| |
|
protected |
◆ updateOperation()
updateOperation |
( |
|
$instance, |
|
|
|
$datas, |
|
|
|
$updateMany = false |
|
) |
| |
|
protected |
◆ $errors
The documentation for this class was generated from the following file: