Property | Type | Description | |
---|---|---|---|
$exceptionFactory | WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface | ||
$filtering | array | null | ||
$includedFields | array | null | ||
$includedRelationships | array | null | ||
$pagination | array | null | ||
$serverRequest | Psr\Http\Message\ServerRequestInterface | ||
$sorting | array | null |
Method | Description | |
---|---|---|
__construct ( Psr\Http\Message\ServerRequestInterface $request, WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface $exceptionFactory ) | ||
getAttribute ( $name, $default = null ) | ||
getAttributes ( ) | ||
getBody ( ) | ||
getCookieParams ( ) | ||
getCursorBasedPagination ( mixed $defaultCursor = null ) : |
||
getFiltering ( ) : array | ||
getFilteringParam ( string $param, mixed $default = null ) : mixed | ||
getFixedPageBasedPagination ( mixed $defaultPage = null ) : |
||
getHeader ( $name ) | ||
getHeaderLine ( $name ) | ||
getHeaders ( ) | ||
getIncludedFields ( string $resourceType ) : array | ||
getIncludedRelationships ( string $baseRelationshipPath ) : array | ||
getMethod ( ) | ||
getOffsetBasedPagination ( mixed $defaultOffset = null, mixed $defaultLimit = null ) : |
||
getPageBasedPagination ( mixed $defaultPage = null, mixed $defaultSize = null ) : |
||
getPagination ( ) : array | ||
getParsedBody ( ) | ||
getProtocolVersion ( ) | ||
getQueryParam ( string $name, mixed $default = null ) : array | string | mixed | ||
getQueryParams ( ) | ||
getRequestTarget ( ) | ||
getResource ( mixed $default = null ) : array | mixed | ||
getResourceAttribute ( string $attribute, mixed $default = null ) : mixed | ||
getResourceAttributes ( ) : array | ||
getResourceId ( mixed $default = null ) : string | mixed | ||
getResourceType ( mixed $default = null ) : string | mixed | ||
getServerParams ( ) | ||
getSorting ( ) : array | ||
getToManyRelationship ( string $relationship ) : |
||
getToOneRelationship ( string $relationship ) : |
||
getUploadedFiles ( ) | ||
getUri ( ) | ||
hasHeader ( $name ) | ||
hasIncludedRelationships ( ) : boolean | ||
isIncludedField ( string $resourceType, string $field ) : boolean | ||
isIncludedRelationship ( string $baseRelationshipPath, string $relationshipName, array $defaultRelationships ) : boolean | ||
validateAcceptHeader ( ) | ||
validateContentTypeHeader ( ) | ||
validateQueryParams ( ) | ||
withAddedHeader ( $name, $value ) | ||
withAttribute ( $name, $value ) | ||
withBody ( Psr\Http\Message\StreamInterface $body ) | ||
withCookieParams ( array $cookies ) | ||
withHeader ( $name, $value ) | ||
withMethod ( $method ) | ||
withParsedBody ( $data ) | ||
withProtocolVersion ( $version ) | ||
withQueryParam ( string $name, mixed $value ) | Returns a query parameter with a name of $name if it is present in the request, or the $default value otherwise. | |
withQueryParams ( array $query ) | ||
withRequestTarget ( $requestTarget ) | ||
withUploadedFiles ( array $uploadedFiles ) | ||
withUri ( Psr\Http\Message\UriInterface $uri, $preserveHost = false ) | ||
withoutAttribute ( $name ) | ||
withoutHeader ( $name ) |
Method | Description | |
---|---|---|
initializeParsedQueryParams ( ) | ||
isValidMediaTypeHeader ( string $headerName ) : boolean | Returns a list of media type information, extracted from a given header in the current request. | |
setFiltering ( ) | ||
setIncludedFields ( ) | ||
setIncludedRelationships ( ) | ||
setPagination ( ) | ||
setSorting ( ) |
public __construct ( Psr\Http\Message\ServerRequestInterface $request, WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface $exceptionFactory ) | ||
$request | Psr\Http\Message\ServerRequestInterface | |
$exceptionFactory | WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface |
public getCursorBasedPagination ( mixed $defaultCursor = null ) : |
||
$defaultCursor | mixed | |
return |
public getFixedPageBasedPagination ( mixed $defaultPage = null ) : |
||
$defaultPage | mixed | |
return |
public getIncludedFields ( string $resourceType ) : array | ||
$resourceType | string | |
return | array |
public getIncludedRelationships ( string $baseRelationshipPath ) : array | ||
$baseRelationshipPath | string | |
return | array |
public getOffsetBasedPagination ( mixed $defaultOffset = null, mixed $defaultLimit = null ) : |
||
$defaultOffset | mixed | |
$defaultLimit | mixed | |
return |
public getPageBasedPagination ( mixed $defaultPage = null, mixed $defaultSize = null ) : |
||
$defaultPage | mixed | |
$defaultSize | mixed | |
return |
public getToManyRelationship ( string $relationship ) : |
||
$relationship | string | |
return |
public getToOneRelationship ( string $relationship ) : |
||
$relationship | string | |
return |
public hasIncludedRelationships ( ) : boolean | ||
return | boolean |
protected isValidMediaTypeHeader ( string $headerName ) : boolean | ||
$headerName | string | |
return | boolean |
public withBody ( Psr\Http\Message\StreamInterface $body ) | ||
$body | Psr\Http\Message\StreamInterface |
public withQueryParam ( string $name, mixed $value ) | ||
$name | string | |
$value | mixed |
public withUploadedFiles ( array $uploadedFiles ) | ||
$uploadedFiles | array |
public withUri ( Psr\Http\Message\UriInterface $uri, $preserveHost = false ) | ||
$uri | Psr\Http\Message\UriInterface |
protected ExceptionFactoryInterface,WoohooLabs\Yin\JsonApi\Exception $exceptionFactory | ||
return | WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface |
protected ServerRequestInterface,Psr\Http\Message $serverRequest | ||
return | Psr\Http\Message\ServerRequestInterface |