PHP Class Minify_CommentPreserver, minify

Author: Stephen Clay ([email protected])
Afficher le fichier Open project: mrclay/minify Class Usage Examples

Méthodes publiques

Свойство Type Description
$append string String to be appended to each preserved comment
$prepend string String to be prepended to each preserved comment

Méthodes publiques

Méthode Description
process ( string $content, callback $processor, array $args = [] ) : string Process a string outside of C-style comments that begin with "/*!"

Private Methods

Méthode Description
_nextComment ( string $in ) : array Extract comments that YUI Compressor preserves.

Method Details

process() public static méthode

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())
Résultat string

Property Details

$append public_oe static_oe property

String to be appended to each preserved comment
public static string $append
Résultat string

$prepend public_oe static_oe property

String to be prepended to each preserved comment
public static string $prepend
Résultat string