Documentation

Horde_CssMinify
in package

Abstract base class for implementing a CSS minification driver.

Tags
author

Michael Slusarz slusarz@horde.org

category

Horde

copyright

2014-2017 Horde LLC

license

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

Table of Contents

$_data  : mixed
Original CSS data.
$_opts  : array<string|int, mixed>
Minification options.
__construct()  : mixed
Constructor.
__toString()  : mixed
minify()  : string
Return the minified CSS.
setOptions()  : mixed
Set minification options.

Properties

$_data

Original CSS data.

protected mixed $_data

$_opts

Minification options.

protected array<string|int, mixed> $_opts = array()

Methods

__construct()

Constructor.

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

Either a string (the CSS text to compress) or an array of URLs (keys) to filenames (values) containing the CSS data to compress.

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

Additional options. See setOptions().

Return values
mixed

setOptions()

Set minification options.

public setOptions([array<string|int, mixed> $opts = array() ]) : mixed
Parameters
$opts : array<string|int, mixed> = array()

Options:

  - logger: (Horde_Log_Logger) Log object to use for log messages.
Return values
mixed

Search results