PHP Класс Minify_CommentPreserver, minify

Автор: Stephen Clay ([email protected])
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$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