Moodle  2.2.1
http://www.collinsharper.com
Minify_CommentPreserver Class Reference

Static Public Member Functions

static process ($content, $processor, $args=array())

Static Public Attributes

static $prepend = "\n"
static $append = "\n"

Detailed Description

Definition at line 13 of file CommentPreserver.php.


Member Function Documentation

static process ( content,
processor,
args = array() 
) [static]

Process a string outside of C-style comments that begin with "/*!"

On each non-empty string outside these comments, the given processor function will be called. The first "!" will be removed from the preserved comments, and the comments will be surrounded by Minify_CommentPreserver::$preprend and Minify_CommentPreserver::$append.

Parameters:
string$content
callback$processorfunction
array$argsarray of extra arguments to pass to the processor function (default = array())
Returns:
string

Definition at line 43 of file CommentPreserver.php.

Here is the caller graph for this function:


Field Documentation

$append = "\n" [static]

Definition at line 27 of file CommentPreserver.php.

$prepend = "\n" [static]

Definition at line 20 of file CommentPreserver.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations