Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
__construct ($data, SerializerInterface $serializer) | |
getResources () | |
setResources ($resources) | |
with ($relationships) | |
fields ($fields) | |
toArray () | |
toIdentifier () | |
Fonctions membres protégées | |
buildResources ($data, SerializerInterface $serializer) | |
Attributs protégés | |
$resources = [] | |
__construct | ( | $data, | |
SerializerInterface | $serializer | ||
) |
Create a new collection instance.
mixed | $data | |
\Tobscure\JsonApi\SerializerInterface | $serializer |
Références $data, et Collection\buildResources().
|
protected |
Convert an array of raw data to Resource objects.
mixed | $data | |
SerializerInterface | $serializer |
Références $data, et Collection\$resources.
Référencé par Collection\__construct().
fields | ( | $fields | ) |
Request a restricted set of fields.
array | null | $fields |
Implémente ElementInterface.
getResources | ( | ) |
{Get the resources array.
Implémente ElementInterface.
Références Collection\$resources.
setResources | ( | $resources | ) |
toArray | ( | ) |
{Map to a "resource object" array.
Implémente ElementInterface.
Références Collection\$resources, et Resource\toArray().
toIdentifier | ( | ) |
{Map to a "resource object identifier" array.
Implémente ElementInterface.
Références Collection\$resources, et Resource\toIdentifier().
with | ( | $relationships | ) |
Request a relationship to be included for all resources.
string | array | $relationships |
Implémente ElementInterface.
Références $this.
|
protected |