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
파일 보기 프로젝트 열기: markstory/mini-asset

보호된 프로퍼티들

프로퍼티 타입 설명
$_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