PHP Class Assetic\Filter\Yui\BaseCompressorFilter

Author: Kris Wallsmith ([email protected])
Inheritance: implements Assetic\Filter\FilterInterface
Afficher le fichier Open project: pmjones/php-framework-benchmarks

Méthodes publiques

Méthode Description
__construct ( $jarPath, $javaPath = '/usr/bin/java' )
filterLoad ( Assetic\Asset\AssetInterface $asset )
setCharset ( $charset )
setLineBreak ( $lineBreak )

Méthodes protégées

Méthode Description
compress ( string $content, string $type, array $options = [] ) : string Compresses a string.

Method Details

__construct() public méthode

public __construct ( $jarPath, $javaPath = '/usr/bin/java' )

compress() protected méthode

Compresses a string.
protected compress ( string $content, string $type, array $options = [] ) : string
$content string The content to compress
$type string The type of content, either "js" or "css"
$options array An indexed array of additional options
Résultat string The compressed content

filterLoad() public méthode

public filterLoad ( Assetic\Asset\AssetInterface $asset )
$asset Assetic\Asset\AssetInterface

setCharset() public méthode

public setCharset ( $charset )

setLineBreak() public méthode

public setLineBreak ( $lineBreak )