PHP Class Flarum\Api\Serializer\ForumSerializer

Inheritance: extends AbstractSerializer
Afficher le fichier Open project: flarum/core

Protected Properties

Свойство Type Description
$app Flarum\Foundation\Application
$settings Flarum\Settings\SettingsRepositoryInterface
$type
$url Flarum\Forum\UrlGenerator

Méthodes publiques

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

Méthodes protégées

Méthode Description
getDefaultAttributes ( $model )
getFaviconUrl ( ) : null | string
getLogoUrl ( ) : null | string
groups ( $model ) : Relationship

Method Details

__construct() public méthode

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 méthode

protected getDefaultAttributes ( $model )

getFaviconUrl() protected méthode

protected getFaviconUrl ( ) : null | string
Résultat null | string

getId() public méthode

public getId ( $model )

getLogoUrl() protected méthode

protected getLogoUrl ( ) : null | string
Résultat null | string

groups() protected méthode

protected groups ( $model ) : Relationship
Résultat Tobscure\JsonApi\Relationship

Property Details

$app protected_oe property

protected Application,Flarum\Foundation $app
Résultat Flarum\Foundation\Application

$settings protected_oe property

protected SettingsRepositoryInterface,Flarum\Settings $settings
Résultat Flarum\Settings\SettingsRepositoryInterface

$type protected_oe property

protected $type

$url protected_oe property

protected UrlGenerator,Flarum\Forum $url
Résultat Flarum\Forum\UrlGenerator