Horde_CssMinify
in package
Abstract base class for implementing a CSS minification driver.
Tags
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 —__toString()
public
__toString() : mixed
Tags
Return values
mixed —minify()
Return the minified CSS.
public
abstract minify() : string
Tags
Return values
string —Minified CSS.
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.