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

Static Public Member Functions

static minify ($content, $options=array())

Detailed Description

Definition at line 14 of file Lines.php.


Member Function Documentation

static minify ( content,
options = array() 
) [static]

Add line numbers in C-style comments

This uses a very basic parser easily fooled by comment tokens inside strings or regexes, but, otherwise, generally clean code will not be mangled. URI rewriting can also be performed.

Parameters:
string$content
array$optionsavailable options:

'id': (optional) string to identify file. E.g. file name/path

'currentDir': (default null) if given, this is assumed to be the directory of the current CSS file. Using this, minify will rewrite all relative URIs in import/url declarations to correctly point to the desired files, and prepend a comment with debugging information about this process.

Returns:
string

Definition at line 37 of file Lines.php.

Here is the call graph for this function:


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