FJsonApiSerializer
class FJsonApiSerializer extends JsonApiSerializerAbstract
Class FJsonApiSerializer
Properties
| protected string | $type | The type. | from JsonApiSerializerAbstract |
Methods
mixed
getDeserializationClass()
No description
string
getId(mixed $model)
Get the id.
array
getAttributes(mixed $model, array $fields = null)
Get the attributes array.
array
getLinks($resource)
Get the links array.
array
getMeta($resource)
Get the meta.
JsonApiRelationship|null
getRelationship(mixed $model, string $name)
Get a relationship.
string
getRelationshipMethodName(string $name)
Get the serializer method name for the given relationship.
$this
setDeserializationClass($deserializationClass)
No description
__construct(EntityManager $entityManager)
FJsonApiSerializer constructor.
mixed
getAttributesMapping()
No description
setAttributesMapping(mixed $attributesMapping)
No description
__call($method, $args)
No description
$this
setMappings($mappings)
No description
mixed
getMappings()
No description
array
getDisabledAttributes()
No description
mixed
deserialize($data, array $mappings, $relations)
No description
serialize($data, array $mappings, $relations, array $disabledAttributes = array(), array $attributeMappings = array())
No description
$this
setDisabledAttributes(array $disabledAttributes)
No description
Details
at line 192
mixed
getDeserializationClass()
in JsonApiSerializerAbstract at line 22
string
getType(mixed $model = null)
Get the type.
at line 107
string
getId(mixed $model)
Get the id.
at line 172
array
getAttributes(mixed $model, array $fields = null)
Get the attributes array.
at line 273
array
getLinks($resource)
Get the links array.
at line 292
array
getMeta($resource)
Get the meta.
in JsonApiSerializerAbstract at line 60
mixed
setType(string $type)
at line 157
JsonApiRelationship|null
getRelationship(mixed $model, string $name)
Get a relationship.
in JsonApiSerializerAbstract at line 95
protected string
getRelationshipMethodName(string $name)
Get the serializer method name for the given relationship.
kebab-case is converted into camelCase.
in JsonApiSerializerAbstract at line 107
$this
setDocumentType($type)
at line 67
$this
setDeserializationClass($deserializationClass)
at line 77
__construct(EntityManager $entityManager)
FJsonApiSerializer constructor.