PHP 클래스 Minify_CommentPreserver, minify

저자: Stephen Clay ([email protected])
파일 보기 프로젝트 열기: mrclay/minify 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$append string String to be appended to each preserved comment
$prepend string String to be prepended to each preserved comment

공개 메소드들

메소드 설명
process ( string $content, callback $processor, array $args = [] ) : string Process a string outside of C-style comments that begin with "/*!"

비공개 메소드들

메소드 설명
_nextComment ( string $in ) : array Extract comments that YUI Compressor preserves.

메소드 상세

process() 공개 정적인 메소드

On each non-empty string outside these comments, the given processor function will be called. The comments will be surrounded by Minify_CommentPreserver::$preprend and Minify_CommentPreserver::$append.
public static process ( string $content, callback $processor, array $args = [] ) : string
$content string
$processor callback function
$args array array of extra arguments to pass to the processor function (default = array())
리턴 string

프로퍼티 상세

$append 공개적으로 정적으로 프로퍼티

String to be appended to each preserved comment
public static string $append
리턴 string

$prepend 공개적으로 정적으로 프로퍼티

String to be prepended to each preserved comment
public static string $prepend
리턴 string