Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Espaces de nommage | |
Exception | |
Structures de données | |
class | AbstractSerializer |
class | Collection |
class | Document |
interface | ElementInterface |
class | ErrorHandler |
class | Parameters |
class | Relationship |
class | Resource |
interface | SerializerInterface |
class | Util |
Fonctions | |
getLinks () | |
setLinks (array $links) | |
addLink ($key, $value) | |
addPaginationLinks ($url, array $queryParams, $offset, $limit, $total=null) | |
addPaginationLink ($name, $url, array $queryParams, $offset, $limit) | |
getMeta () | |
setMeta (array $meta) | |
addMeta ($key, $value) | |
Variables | |
trait | LinksTrait |
trait | MetaTrait |
Tobscure\JsonApi\addLink | ( | $key, | |
$value | |||
) |
Add a link.
string | $key | |
string | $value |
Références $key, $this, et $value.
Référencé par Tobscure\JsonApi\addPaginationLink(), ContentSerializer\category(), ContactSerializer\category(), NewsfeedSerializer\category(), ContentSerializer\createdBy(), NewsfeedSerializer\createdBy(), ContactSerializer\createdBy(), ContentSerializer\languageAssociations(), ContactSerializer\languageAssociations(), NewsfeedSerializer\languageAssociations(), ContentSerializer\modifiedBy(), NewsfeedSerializer\modifiedBy(), ContactSerializer\modifiedBy(), et ContactSerializer\userId().
Tobscure\JsonApi\addMeta | ( | $key, | |
$value | |||
) |
|
protected |
Add a pagination link.
string | $name | The name of the link. |
string | $url | The base URL for pagination links. |
array | $queryParams | The query params provided in the request. |
int | $offset | The offset to link to. |
int | $limit | The current limit. |
Références $limit, $name, Joomla\Database\Query\$offset, $url, et Tobscure\JsonApi\addLink().
Référencé par Tobscure\JsonApi\addPaginationLinks().
Tobscure\JsonApi\addPaginationLinks | ( | $url, | |
array | $queryParams, | ||
$offset, | |||
$limit, | |||
$total = null |
|||
) |
Add pagination links (first, prev, next, and last).
string | $url | The base URL for pagination links. |
array | $queryParams | The query params provided in the request. |
int | $offset | The current offset. |
int | $limit | The current limit. |
int | null | $total | The total number of results, or null if unknown. |
Références $limit, Joomla\Database\Query\$offset, $total, $url, Tobscure\JsonApi\addPaginationLink(), et null.
Tobscure\JsonApi\getLinks | ( | ) |
Get the links.
Tobscure\JsonApi\getMeta | ( | ) |
Get the meta.
Tobscure\JsonApi\setLinks | ( | array | $links | ) |
Tobscure\JsonApi\setMeta | ( | array | $meta | ) |
trait LinksTrait |
trait MetaTrait |