Documentation

Horde_Script_Compress
in package

Compresses javascript based on Horde configuration parameters.

Tags
author

Michael Slusarz slusarz@horde.org

category

Horde

copyright

2014-2017 Horde LLC

license

http://www.horde.org/licenses/lgpl21 LGPL 2.1

since
2.12.0

Table of Contents

Properties

$sourcemap_support  : bool
$_driver  : string
Javascript minification driver.
$_params  : array<string|int, mixed>
Javacscript minification params.
$_sourcemap  : bool
Does the minification driver support sourcemaps?

Methods

__construct()  : mixed
Constructor.
__get()  : mixed
getMinifier()  : Horde_JavascriptMinify
Returns a minifier object.

Properties

$sourcemap_support read-only

public bool $sourcemap_support

True if the driver supports sourcemaps.

$_driver

Javascript minification driver.

protected string $_driver

$_params

Javacscript minification params.

protected array<string|int, mixed> $_params

$_sourcemap

Does the minification driver support sourcemaps?

protected bool $_sourcemap = \false

Methods

__construct()

Constructor.

public __construct(string $driver[, array<string|int, mixed> $params = array() ]) : mixed
Parameters
$driver : string

Minification driver.

$params : array<string|int, mixed> = array()

Configuration parameters.

__get()

public __get(mixed $name) : mixed
Parameters
$name : mixed

getMinifier()

Returns a minifier object.

public getMinifier(array<string|int, mixed> $scripts[, string $sourcemap = null ]) : Horde_JavascriptMinify
Parameters
$scripts : array<string|int, mixed>

Script list.

$sourcemap : string = null

Sourcemap URL.

Return values
Horde_JavascriptMinify

Minifier object.


        
On this page

Search results