\Horde_CssMinify

Abstract base class for implementing a CSS minification driver.

Summary

Methods
Properties
Constants
__construct()
__toString()
setOptions()
minify()
No public properties found
No constants found
No protected methods found
$_data
$_opts
N/A
No private methods found
No private properties found
N/A

Properties

$_data

$_data : mixed

Original CSS data.

Type

mixed

$_opts

$_opts : array

Minification options.

Type

array

Methods

__construct()

__construct(mixed  $css, array  $opts = array()) 

Constructor.

Parameters

mixed $css

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

array $opts

Additional options. See setOptions().

__toString()

__toString() 

setOptions()

setOptions(array  $opts = array()) 

Set minification options.

Parameters

array $opts

Options:

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

minify()

minify() : string

Return the minified CSS.

Throws

\Horde_CssMinify_Exception

Returns

string —

Minified CSS.