class UpdateGroupController extends AbstractShowController
Properties
$serializer |
|
|||
string[] | $include | <p>The relationships that are included by default.</p> | from AbstractSerializeController |
|
string[] | $optionalInclude | <p>The relationships that are available to be included.</p> | from AbstractSerializeController |
|
$maxLimit | <p>The maximum number of records that can be requested.</p> | from AbstractSerializeController |
|
|
$limit | <p>The number of records included by default.</p> | from AbstractSerializeController |
|
|
string[] | $sortFields | <p>The fields that are available to be sorted by.</p> | from AbstractSerializeController |
|
array<string,string>|null | $sort | <p>The default sort field and order to use.</p> | from AbstractSerializeController |
|
static protected | $container | from AbstractSerializeController |
|
|
static protected | $beforeDataCallbacks | from AbstractSerializeController |
|
|
static protected | $beforeSerializationCallbacks | from AbstractSerializeController |
|
|
static protected string[][] | $loadRelations | from AbstractSerializeController |
|
|
static protected array<string,callable> | $loadRelationCallables | from AbstractSerializeController |
|
Methods
No description
<p>Get the data to be serialized and assigned to the response document.</p>
<p>Create a PHP JSON-API Element for output in the document.</p>
<p>Returns the relations to load added by extenders.</p>
<p>Returns the relation callables to load added by extenders.</p>
<p>Eager loads the required relationships.</p>
No description
No description
No description
No description
No description
<p>Set the serializer that will serialize data for the endpoint.</p>
<p>Include the given relationship by default.</p>
<p>Don't include the given relationship by default.</p>
<p>Make the given relationship available for inclusion.</p>
<p>Don't allow the given relationship to be included.</p>
<p>Set the default number of results.</p>
<p>Set the maximum number of results.</p>
<p>Allow sorting results by the given field.</p>
<p>Disallow sorting results by the given field.</p>
<p>Set the default sort order for the results.</p>
No description
No description
No description
No description
Details
ResponseInterface
handle(ServerRequestInterface $request)
at
line 30
protected mixed
data(ServerRequestInterface $request, Document $document)
<p>Get the data to be serialized and assigned to the response document.</p>
protected ElementInterface
createElement(mixed $data, SerializerInterface $serializer)
<p>Create a PHP JSON-API Element for output in the document.</p>
protected array
getRelationsToLoad(Collection $models)
<p>Returns the relations to load added by extenders.</p>
protected array
getRelationCallablesToLoad(Collection $models)
<p>Returns the relation callables to load added by extenders.</p>
protected void
loadRelations(Collection $models, array $relations, ServerRequestInterface $request = null)
<p>Eager loads the required relationships.</p>
protected array
extractInclude(ServerRequestInterface $request)
protected array
extractFields(ServerRequestInterface $request)
protected array|null
extractSort(ServerRequestInterface $request)
protected int
extractOffset(ServerRequestInterface $request)
protected int
extractLimit(ServerRequestInterface $request)
protected array
extractFilter(ServerRequestInterface $request)
protected Parameters
buildParameters(ServerRequestInterface $request)
protected bool
sortIsDefault(ServerRequestInterface $request)
void
setSerializer(string $serializer)
<p>Set the serializer that will serialize data for the endpoint.</p>
void
addInclude(array|string $name)
<p>Include the given relationship by default.</p>
void
removeInclude(array|string $name)
<p>Don't include the given relationship by default.</p>
void
addOptionalInclude(array|string $name)
<p>Make the given relationship available for inclusion.</p>
void
removeOptionalInclude(array|string $name)
<p>Don't allow the given relationship to be included.</p>
void
setLimit(int $limit)
<p>Set the default number of results.</p>
void
setMaxLimit(int $max)
<p>Set the maximum number of results.</p>
void
addSortField(array|string $field)
<p>Allow sorting results by the given field.</p>
void
removeSortField(array|string $field)
<p>Disallow sorting results by the given field.</p>
void
setSort(array $sort)
<p>Set the default sort order for the results.</p>