Свойство | Type | Description | |
---|---|---|---|
$actor | |||
$container | Illuminate\Contracts\Container\Container | ||
$dispatcher | Illuminate\Contracts\Events\Dispatcher |
Méthode | Description | |
---|---|---|
getActor ( ) : |
||
getAttributes ( $model, array $fields = null ) | ||
getContainer ( ) : Illuminate\Contracts\Container\Container | ||
getEventDispatcher ( ) : Illuminate\Contracts\Events\Dispatcher | ||
getRelationship ( $model, $name ) | ||
hasMany ( mixed $model, string | Closur\Closure | Tobscure\JsonApi\SerializerInterface $serializer, string | null $relation = null ) : |
Get a relationship builder for a has-many relationship. | |
hasOne ( mixed $model, string | Closur\Closure | Tobscure\JsonApi\SerializerInterface $serializer, string | Closur\Closure | null $relation = null ) : |
Get a relationship builder for a has-one relationship. | |
setActor ( |
||
setContainer ( Illuminate\Contracts\Container\Container $container ) | ||
setEventDispatcher ( Illuminate\Contracts\Events\Dispatcher $dispatcher ) |
Méthode | Description | |
---|---|---|
buildRelationship ( mixed $model, string | Closur\Closure | Tobscure\JsonApi\SerializerInterface $serializer, string | null $relation = null, boolean $many = false ) : |
||
formatDate ( DateTime $date = null ) : string | null | ||
getCustomRelationship ( mixed $model, string $name ) : |
Get a custom relationship. | |
getDefaultAttributes ( object | array $model ) : array | Get the default set of serialized attributes for a model. | |
getRelationshipData ( mixed $model, $relation ) : mixed | ||
resolveSerializer ( mixed $serializer, mixed $model, mixed $data ) : Tobscure\JsonApi\SerializerInterface | ||
resolveSerializerClass ( string $class ) : object |
protected buildRelationship ( mixed $model, string | Closur\Closure | Tobscure\JsonApi\SerializerInterface $serializer, string | null $relation = null, boolean $many = false ) : |
||
$model | mixed | |
$serializer | string | Closur\Closure | Tobscure\JsonApi\SerializerInterface | |
$relation | string | null | |
$many | boolean | |
Résultat |
protected formatDate ( DateTime $date = null ) : string | null | ||
$date | DateTime | |
Résultat | string | null |
public static getContainer ( ) : Illuminate\Contracts\Container\Container | ||
Résultat | Illuminate\Contracts\Container\Container |
public static getEventDispatcher ( ) : Illuminate\Contracts\Events\Dispatcher | ||
Résultat | Illuminate\Contracts\Events\Dispatcher |
protected getRelationshipData ( mixed $model, $relation ) : mixed | ||
$model | mixed | |
Résultat | mixed |
public hasMany ( mixed $model, string | Closur\Closure | Tobscure\JsonApi\SerializerInterface $serializer, string | null $relation = null ) : |
||
$model | mixed | |
$serializer | string | Closur\Closure | Tobscure\JsonApi\SerializerInterface | |
$relation | string | null | |
Résultat |
public hasOne ( mixed $model, string | Closur\Closure | Tobscure\JsonApi\SerializerInterface $serializer, string | Closur\Closure | null $relation = null ) : |
||
$model | mixed | |
$serializer | string | Closur\Closure | Tobscure\JsonApi\SerializerInterface | |
$relation | string | Closur\Closure | null | |
Résultat |
protected resolveSerializerClass ( string $class ) : object | ||
$class | string | |
Résultat | object |
public static setContainer ( Illuminate\Contracts\Container\Container $container ) | ||
$container | Illuminate\Contracts\Container\Container |
public static setEventDispatcher ( Illuminate\Contracts\Events\Dispatcher $dispatcher ) | ||
$dispatcher | Illuminate\Contracts\Events\Dispatcher |
protected static Container,Illuminate\Contracts\Container $container | ||
Résultat | Illuminate\Contracts\Container\Container |