PHP Class Horde_Script_Compress, horde

Since: 2.12.0
Author: Michael Slusarz ([email protected])
Mostra file Open project: horde/horde

Protected Properties

Property Type Description
$_driver string Javascript minification driver.
$_params array Javacscript minification params.
$_sourcemap boolean Does the minification driver support sourcemaps?

Public Methods

Method Description
__construct ( string $driver, array $params = [] ) Constructor.
__get ( $name )
getMinifier ( array $scripts, string $sourcemap = null ) : Horde_JavascriptMinify Returns a minifier object.

Method Details

__construct() public method

Constructor.
public __construct ( string $driver, array $params = [] )
$driver string Minification driver.
$params array Configuration parameters.

__get() public method

public __get ( $name )

getMinifier() public method

Returns a minifier object.
public getMinifier ( array $scripts, string $sourcemap = null ) : Horde_JavascriptMinify
$scripts array Script list.
$sourcemap string Sourcemap URL.
return Horde_JavascriptMinify Minifier object.

Property Details

$_driver protected_oe property

Javascript minification driver.
protected string $_driver
return string

$_params protected_oe property

Javacscript minification params.
protected array $_params
return array

$_sourcemap protected_oe property

Does the minification driver support sourcemaps?
protected bool $_sourcemap
return boolean