Class Model
Base JSONAPI Model
- Phramework\JSONAPI\Model\Model
- Phramework\JSONAPI\Model\Cache
- Phramework\JSONAPI\Model\Directives
- Phramework\JSONAPI\Model\Get
- Phramework\JSONAPI\Model\Relationship
- Phramework\JSONAPI\Model
Namespace: Phramework\JSONAPI
License: Apache-2.0
Author: Xenofon Spafaridis nohponex@gmail.com
Since: 0.0.0
Located at Model.php
Methods summary
public static
|
|
public static
Phramework\Validate\ObjectValidator
|
#
getFilterValidationModel( )
Get validation model used for filters, if set for a property, this will override the validation model defined in getValidationModel for this property |
public static
|
#
collection( array[]|object[] $records = [],
Prepare a collection of resources |
public static
|
#
resource( array|object $record,
Prepare an individual resource |
public static
mixed
|
#
post( array $attributes, Phramework\Database\Operations\Create::RETURN_ID $return = Phramework\Phramework\Database\Operations\Create::RETURN_ID )
Create a record in database |
public static
integer
|
|
public static
boolean
|
|
public static
object
|
|
public static
string[]
|
|
public static
string[]
|
|
public static
string[]
|
|
public static
|
#
getDefaultFields( )
Get default fields for this resource model
MAY be overwritten, default is |
public static
|
#
getDefaultPage( )
Get default page for this resource model MAY be overwritten, default is with limit of 250 resource and offset 0 |
public static
|
|
public static
integer
|
#
getMaxPageLimit( )
Get maximum page object's limit MAY be overwritten, default is with limit maximum of 25000 |
Methods inherited from Phramework\JSONAPI\Model\Relationship
getIncludedData()
,
getRelationship()
,
getRelationshipData()
,
getRelationships()
,
relationshipExists()
Methods inherited from Phramework\JSONAPI\Model\Get
get()
,
getById()
,
parseFields()
,
parseFilter()
,
parsePage()
,
parseSort()
Methods inherited from Phramework\JSONAPI\Model\Directives
Methods inherited from Phramework\JSONAPI\Model\Cache
getCache()
,
initializeCache()
,
invalidateCache()
,
setCache()
Methods inherited from Phramework\JSONAPI\Model\Model
getCast()
,
getEndpoint()
,
getIdAttribute()
,
getSchema()
,
getSelfLink()
,
getTable()
,
getType()
Constants summary
Constants inherited from Phramework\JSONAPI\Model\Model
GET_BY_PREFIX
,
GET_RELATIONSHIP_BY_PREFIX
,
POST_RELATIONSHIP_BY_PREFIX
Properties summary
protected static
boolean
|
$caching
Enable caching of resources |
#
true
|