PHP Класс MiniAsset\Filter\ClosureCompiler

Allows you to filter Javascript files through the Google Closure compiler API. The script needs to have web access to run.
Наследование: extends MiniAsset\Filter\AssetFilter
Показать файл Открыть проект

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

Свойство Тип Описание
$_defaults array Defaults.
$_params array - The output_file_name hasn't been included because MiniAsset is used for saving the minified javascript. - The warning_level is automatically handled in self::$_settings.
$_settings array NOTE: statistics and warnings are only used when in debug mode. - level (string) Defaults to WHITESPACE_ONLY. Values: SIMPLE_OPTIMIZATIONS, ADVANCED_OPTIMIZATIONS. - statistics (boolean) Defaults to FALSE. - warnings (mixed) Defaults to FALSE. Values: TRUE or QUIET, DEFAULT, VERBOSE.

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

Метод Описание
output ( $filename, $content )

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

Метод Описание
_query ( string $content, array $args = [] ) : string Query the Closure compiler API.

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

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

Query the Closure compiler API.
protected _query ( string $content, array $args = [] ) : string
$content string Javascript to compile.
$args array API parameters.
Результат string

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

public output ( $filename, $content )

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

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

Defaults.
protected array $_defaults
Результат array

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

- The output_file_name hasn't been included because MiniAsset is used for saving the minified javascript. - The warning_level is automatically handled in self::$_settings.
См. также: https://developers.google.com/closure/compiler/docs/api-ref
protected array $_params
Результат array

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

NOTE: statistics and warnings are only used when in debug mode. - level (string) Defaults to WHITESPACE_ONLY. Values: SIMPLE_OPTIMIZATIONS, ADVANCED_OPTIMIZATIONS. - statistics (boolean) Defaults to FALSE. - warnings (mixed) Defaults to FALSE. Values: TRUE or QUIET, DEFAULT, VERBOSE.
protected array $_settings
Результат array