PHP Class Flarum\Api\Serializer\PostSerializer

Inheritance: extends PostBasicSerializer
Exibir arquivo Open project: flarum/core

Protected Properties

Property Type Description
$gate Flarum\Core\Access\Gate

Public Methods

Method Description
__construct ( Flarum\Core\Access\Gate $gate )

Protected Methods

Method Description
discussion ( $post ) : Relationship
editUser ( $post ) : Relationship
getDefaultAttributes ( $post )
hideUser ( $post ) : Relationship
user ( $post ) : Relationship

Method Details

__construct() public method

public __construct ( Flarum\Core\Access\Gate $gate )
$gate Flarum\Core\Access\Gate

discussion() protected method

protected discussion ( $post ) : Relationship
return Tobscure\JsonApi\Relationship

editUser() protected method

protected editUser ( $post ) : Relationship
return Tobscure\JsonApi\Relationship

getDefaultAttributes() protected method

protected getDefaultAttributes ( $post )

hideUser() protected method

protected hideUser ( $post ) : Relationship
return Tobscure\JsonApi\Relationship

user() protected method

protected user ( $post ) : Relationship
return Tobscure\JsonApi\Relationship

Property Details

$gate protected_oe property

protected Gate,Flarum\Core\Access $gate
return Flarum\Core\Access\Gate