PHP 클래스 Horde_CssMinify, horde

저자: Michael Slusarz ([email protected])
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_data mixed Original CSS data.
$_opts array Minification options.

공개 메소드들

메소드 설명
__construct ( mixed $css, array $opts = [] ) Constructor.
__toString ( )
minify ( ) : string Return the minified CSS.
setOptions ( array $opts = [] ) Set minification options.

메소드 상세

__construct() 공개 메소드

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() 공개 메소드

또한 보기: Horde_CssMinify::minify()
public __toString ( )

minify() 추상적인 공개 메소드

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

setOptions() 공개 메소드

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

프로퍼티 상세

$_data 보호되어 있는 프로퍼티

Original CSS data.
protected mixed $_data
리턴 mixed

$_opts 보호되어 있는 프로퍼티

Minification options.
protected array $_opts
리턴 array