PHP Class Flarum\Http\WebApp\AbstractWebApp

Afficher le fichier Open project: flarum/core Class Usage Examples

Protected Properties

Свойство Type Description
$assets WebAppAssetsFactory
$locales Flarum\Locale\LocaleManager
$settings Flarum\Settings\SettingsRepositoryInterface
$view WebAppViewFactory

Méthodes publiques

Méthode Description
__construct ( WebAppAssetsFactory $assets, WebAppViewFactory $view, Flarum\Settings\SettingsRepositoryInterface $settings, LocaleManager $locales )
getAssets ( ) : WebAppAssets
getView ( ) : WebAppView

Méthodes protégées

Méthode Description
getLayout ( ) : string Get the path to the client layout view.
getName ( ) : string Get the name of the client.
getTranslationFilter ( ) : string Get a regular expression to match against translation keys.

Private Methods

Méthode Description
addCustomLess ( WebAppView $view )
addDefaultAssets ( WebAppView $view )
addTranslations ( WebAppView $view )
filterTranslations ( array $translations ) : array Take a selection of keys from a collection of translations.
getLessVariables ( ) : array Get the values of any LESS variables to compile into the CSS, based on the forum's configuration.

Method Details

__construct() public méthode

public __construct ( WebAppAssetsFactory $assets, WebAppViewFactory $view, Flarum\Settings\SettingsRepositoryInterface $settings, LocaleManager $locales )
$assets WebAppAssetsFactory
$view WebAppViewFactory
$settings Flarum\Settings\SettingsRepositoryInterface
$locales Flarum\Locale\LocaleManager

getAssets() public méthode

public getAssets ( ) : WebAppAssets
Résultat WebAppAssets

getLayout() protected méthode

Get the path to the client layout view.
protected getLayout ( ) : string
Résultat string

getName() abstract protected méthode

Get the name of the client.
abstract protected getName ( ) : string
Résultat string

getTranslationFilter() protected méthode

Get a regular expression to match against translation keys.
protected getTranslationFilter ( ) : string
Résultat string

getView() public méthode

public getView ( ) : WebAppView
Résultat WebAppView

Property Details

$assets protected_oe property

protected WebAppAssetsFactory,Flarum\Http\WebApp $assets
Résultat WebAppAssetsFactory

$locales protected_oe property

protected LocaleManager,Flarum\Locale $locales
Résultat Flarum\Locale\LocaleManager

$settings protected_oe property

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

$view protected_oe property

protected WebAppViewFactory,Flarum\Http\WebApp $view
Résultat WebAppViewFactory