Property | Type | Description | |
---|---|---|---|
$isShowAttributesInIncluded | boolean | ||
$resourceType | string | ||
$selfSubUrl | Must start with '/' e.g. '/sub-url' |
Method | Description | |
---|---|---|
__construct ( Neomerx\JsonApi\Contracts\Schema\SchemaFactoryInterface $factory ) | ||
createResourceObject ( $resource, $isOriginallyArrayed, $attributeKeysFilter = null ) | ||
getIncludePaths ( ) | ||
getIncludedResourceLinks ( $resource ) | ||
getInclusionMeta ( $resource ) | ||
getLinkageMeta ( $resource ) | ||
getPrimaryMeta ( $resource ) | ||
getRelationshipObjectIterator ( $resource, $isPrimary, array $includeRelationships ) | ||
getRelationshipRelatedLink ( $resource, $name, $meta = null, $treatAsHref = false ) | ||
getRelationshipSelfLink ( $resource, $name, $meta = null, $treatAsHref = false ) | ||
getRelationships ( object $resource, boolean $isPrimary, array $includeRelationships ) : array | Get resource links. | |
getRelationshipsInclusionMeta ( $resource ) | ||
getRelationshipsPrimaryMeta ( $resource ) | ||
getResourceLinks ( $resource ) | ||
getResourceType ( ) | ||
getSelfSubLink ( $resource ) | ||
getSelfSubUrl ( $resource = null ) | ||
isShowAttributesInIncluded ( ) |
Method | Description | |
---|---|---|
createLink ( string $subHref, null | mixed $meta = null, boolean $treatAsHref = false ) : Neomerx\JsonApi\Contracts\Document\LinkInterface | ||
createRelationshipObject ( object $resource, string $name, array $desc ) : Neomerx\JsonApi\Contracts\Schema\RelationshipObjectInterface | ||
getRelationshipRelatedUrl ( object $resource, string $name ) : string | ||
getRelationshipSelfUrl ( object $resource, string $name ) : string | ||
readLinks ( object $resource, string $relationshipName, array $description, boolean $isShowSelf, boolean $isShowRelated ) : array |
Method | Description | |
---|---|---|
getValue ( array $array, string $key, mixed $default = null ) : mixed |
public __construct ( Neomerx\JsonApi\Contracts\Schema\SchemaFactoryInterface $factory ) | ||
$factory | Neomerx\JsonApi\Contracts\Schema\SchemaFactoryInterface |
public createResourceObject ( $resource, $isOriginallyArrayed, $attributeKeysFilter = null ) |
public getRelationshipObjectIterator ( $resource, $isPrimary, array $includeRelationships ) | ||
$includeRelationships | array |
public getRelationshipRelatedLink ( $resource, $name, $meta = null, $treatAsHref = false ) |
public getRelationshipSelfLink ( $resource, $name, $meta = null, $treatAsHref = false ) |
protected bool $isShowAttributesInIncluded | ||
return | boolean |