PHP Class Flarum\Api\Serializer\ForumSerializer

Inheritance: extends AbstractSerializer
Mostrar archivo Open project: flarum/core

Protected Properties

Property Type Description
$app Flarum\Foundation\Application
$settings Flarum\Settings\SettingsRepositoryInterface
$type
$url Flarum\Forum\UrlGenerator

Public Methods

Method Description
__construct ( Application $app, Flarum\Settings\SettingsRepositoryInterface $settings, Flarum\Forum\UrlGenerator $url )
getId ( $model )

Protected Methods

Method Description
getDefaultAttributes ( $model )
getFaviconUrl ( ) : null | string
getLogoUrl ( ) : null | string
groups ( $model ) : Relationship

Method Details

__construct() public method

public __construct ( Application $app, Flarum\Settings\SettingsRepositoryInterface $settings, Flarum\Forum\UrlGenerator $url )
$app Flarum\Foundation\Application
$settings Flarum\Settings\SettingsRepositoryInterface
$url Flarum\Forum\UrlGenerator

getDefaultAttributes() protected method

protected getDefaultAttributes ( $model )

getFaviconUrl() protected method

protected getFaviconUrl ( ) : null | string
return null | string

getId() public method

public getId ( $model )

getLogoUrl() protected method

protected getLogoUrl ( ) : null | string
return null | string

groups() protected method

protected groups ( $model ) : Relationship
return Tobscure\JsonApi\Relationship

Property Details

$app protected_oe property

protected Application,Flarum\Foundation $app
return Flarum\Foundation\Application

$settings protected_oe property

protected SettingsRepositoryInterface,Flarum\Settings $settings
return Flarum\Settings\SettingsRepositoryInterface

$type protected_oe property

protected $type

$url protected_oe property

protected UrlGenerator,Flarum\Forum $url
return Flarum\Forum\UrlGenerator