\Horde_CssMinify_CssParser

CSS minification driver implemented by using the Horde/Css_Parse library.

Summary

Methods
Properties
Constants
__construct()
__toString()
setOptions()
minify()
No public properties found
No constants found
_minify()
$_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

Driver specific options:

  - dataurl: (callback) A callback function to convert a URI to a
             data URL. Takes one argument (URI) and returns the data
             URI to be used in the file.
  - import: (callback) A callback function to convert a URI to a
            pathname. Takes one argument (URI) and expects an array
            back with two elements (URI, filename).

minify()

minify() : string

Return the minified CSS.

Returns

string —

Minified CSS.

_minify()

_minify(  $data) 

Parameters

$data