\Horde_Script_Compress

Compresses javascript based on Horde configuration parameters.

Summary

Methods
Properties
Constants
__construct()
__get()
getMinifier()
$sourcemap_support
No constants found
No protected methods found
$_driver
$_params
$_sourcemap
N/A
No private methods found
No private properties found
N/A

Properties

$sourcemap_support

$sourcemap_support : boolean

True if the driver supports sourcemaps.

Type

boolean

$_driver

$_driver : string

Javascript minification driver.

Type

string

$_params

$_params : array

Javacscript minification params.

Type

array

$_sourcemap

$_sourcemap : boolean

Does the minification driver support sourcemaps?

Type

boolean

Methods

__construct()

__construct(string  $driver, array  $params = array()) 

Constructor.

Parameters

string $driver

Minification driver.

array $params

Configuration parameters.

__get()

__get(  $name) 

Parameters

$name

getMinifier()

getMinifier(array  $scripts, string  $sourcemap = null) : \Horde_JavascriptMinify

Returns a minifier object.

Parameters

array $scripts

Script list.

string $sourcemap

Sourcemap URL.

Returns

\Horde_JavascriptMinify —

Minifier object.