|
Moodle
2.2.1
http://www.collinsharper.com
|
Static Public Member Functions | |
| static | minify ($content, $options=array()) |
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.
| string | $content | |
| array | $options | available 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.
Definition at line 37 of file Lines.php.
