Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/lib/minify/lib/Minify/Packer.php
Go to the documentation of this file.
00001 <?php
00017 if (false === (@include 'class.JavaScriptPacker.php')) {
00018     trigger_error(
00019         'The script "class.JavaScriptPacker.php" is required. Please see: http:'
00020         .'//code.google.com/p/minify/source/browse/trunk/min/lib/Minify/Packer.php'
00021         ,E_USER_ERROR
00022     );
00023 }
00024 
00030 class Minify_Packer {
00031     public static function minify($code, $options = array())
00032     {
00033         // @todo: set encoding options based on $options :)
00034         $packer = new JavascriptPacker($code, 'Normal', true, false);
00035         return trim($packer->pack());
00036     }
00037 }
 All Data Structures Namespaces Files Functions Variables Enumerations