PHP Class Horde_CssMinify, horde

Author: Michael Slusarz ([email protected])
ファイルを表示 Open project: horde/horde Class Usage Examples

Protected Properties

Property Type Description
$_data mixed Original CSS data.
$_opts array Minification options.

Public Methods

Method Description
__construct ( mixed $css, array $opts = [] ) Constructor.
__toString ( )
minify ( ) : string Return the minified CSS.
setOptions ( array $opts = [] ) Set minification options.

Method Details

__construct() public method

Constructor.
public __construct ( mixed $css, array $opts = [] )
$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 Additional options. See setOptions().

__toString() public method

See also: Horde_CssMinify::minify()
public __toString ( )

minify() abstract public method

Return the minified CSS.
abstract public minify ( ) : string
return string Minified CSS.

setOptions() public method

Set minification options.
public setOptions ( array $opts = [] )
$opts array Options:
  - logger: (Horde_Log_Logger) Log object to use for log messages.

Property Details

$_data protected_oe property

Original CSS data.
protected mixed $_data
return mixed

$_opts protected_oe property

Minification options.
protected array $_opts
return array