PHP Class Flarum\Api\Serializer\DiscussionSerializer

Inheritance: extends DiscussionBasicSerializer
Show file 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
getDefaultAttributes ( $discussion )
hideUser ( $discussion ) : Relationship

Method Details

__construct() public method

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

getDefaultAttributes() protected method

protected getDefaultAttributes ( $discussion )

hideUser() protected method

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

Property Details

$gate protected property

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