PHP Класс Flarum\Http\WebApp\AbstractWebApp

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$assets WebAppAssetsFactory
$locales Flarum\Locale\LocaleManager
$settings Flarum\Settings\SettingsRepositoryInterface
$view WebAppViewFactory

Открытые методы

Метод Описание
__construct ( WebAppAssetsFactory $assets, WebAppViewFactory $view, Flarum\Settings\SettingsRepositoryInterface $settings, LocaleManager $locales )
getAssets ( ) : WebAppAssets
getView ( ) : WebAppView

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
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.

Описание методов

__construct() публичный Метод

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 getAssets ( ) : WebAppAssets
Результат WebAppAssets

getLayout() защищенный Метод

Get the path to the client layout view.
protected getLayout ( ) : string
Результат string

getName() абстрактный защищенный Метод

Get the name of the client.
abstract protected getName ( ) : string
Результат string

getTranslationFilter() защищенный Метод

Get a regular expression to match against translation keys.
protected getTranslationFilter ( ) : string
Результат string

getView() публичный Метод

public getView ( ) : WebAppView
Результат WebAppView

Описание свойств

$assets защищенное свойство

protected WebAppAssetsFactory,Flarum\Http\WebApp $assets
Результат WebAppAssetsFactory

$locales защищенное свойство

protected LocaleManager,Flarum\Locale $locales
Результат Flarum\Locale\LocaleManager

$settings защищенное свойство

protected SettingsRepositoryInterface,Flarum\Settings $settings
Результат Flarum\Settings\SettingsRepositoryInterface

$view защищенное свойство

protected WebAppViewFactory,Flarum\Http\WebApp $view
Результат WebAppViewFactory