compared with
Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (7)

View Page History

/**
* @see Zend_Filter_Interface
*/
require_once 'Zend/Filter/Interface.php';


/**
* Based on JSMin by Ryan Grove and Steve Clay (in turn based on JsMin.c by Douglas Crockford
* Copyright (c) 2002 Douglas Crockford (www.crockford.com)
*
* @category Zend
* @package Zend_Filter_Minify
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Filter_Minify_Javascript implements Zend_Filter_Interface
class Zend_Filter_Minify_Javascript_JsMin implements Zend_Filter_Minify_Interface
{
const ORD_LF = 10;
* Defined by Zend_Filter_Interface
*
* Returns a string containing the minified Javascript. Accepts a string
* or filename of javascript to be minified
*
* @param string $value
public function filter($value)
{
//Was the passed $value a file?
if(is_file($value)){
$value = file_get_contents($value);
}

//Perform minification on $value
$value =& $this->_minify($value);