Horde_JavascriptMinify_Jsmin_Minifier
in package
PHP implementation of Douglas Crockford's JSMin.
See LICENSE for original JSMin license.
Original PHP implementation: Version: 1.1.1 (2008-03-02) (c) 2008 Ryan Grove ryan@wonko.com (PHP port) URL: http://code.google.com/p/jsmin-php/
Additional cleanups/code by the Horde Project.
Tags
Table of Contents
- ACTION_DELETE_A = 2
- ACTION_DELETE_A_B = 3
- ACTION_KEEP_A = 1
- ORD_LF = 10
- ORD_SPACE = 32
- $_a : mixed
- $_b : mixed
- $_input : mixed
- $_inputIndex : mixed
- $_inputLength : mixed
- $_keywords : mixed
- $_lookAhead : mixed
- $_output : mixed
- $_x : mixed
- $_y : mixed
- __construct() : mixed
- minify() : mixed
- _action() : mixed
- _get() : mixed
- _isAlphaNum() : mixed
- _isRegexLiteral() : mixed
- _next() : mixed
- _peek() : mixed
Constants
ACTION_DELETE_A
public
mixed
ACTION_DELETE_A
= 2
ACTION_DELETE_A_B
public
mixed
ACTION_DELETE_A_B
= 3
ACTION_KEEP_A
public
mixed
ACTION_KEEP_A
= 1
ORD_LF
public
mixed
ORD_LF
= 10
ORD_SPACE
public
mixed
ORD_SPACE
= 32
Properties
$_a
protected
mixed
$_a
= "\n"
$_b
protected
mixed
$_b
= ''
$_input
protected
mixed
$_input
$_inputIndex
protected
mixed
$_inputIndex
= 0
$_inputLength
protected
mixed
$_inputLength
$_keywords
protected
mixed
$_keywords
= array('case', 'else', 'in', 'return', 'typeof')
$_lookAhead
protected
mixed
$_lookAhead
= \null
$_output
protected
mixed
$_output
= ''
$_x
protected
mixed
$_x
= \null
$_y
protected
mixed
$_y
= \null
Methods
__construct()
public
__construct(mixed $input) : mixed
Parameters
- $input : mixed
Return values
mixed —minify()
public
minify() : mixed
Return values
mixed —_action()
protected
_action(mixed $d) : mixed
Parameters
- $d : mixed
Return values
mixed —_get()
protected
_get() : mixed
Return values
mixed —_isAlphaNum()
protected
_isAlphaNum(mixed $c) : mixed
Parameters
- $c : mixed
Return values
mixed —_isRegexLiteral()
protected
_isRegexLiteral(mixed $oldindex) : mixed
Parameters
- $oldindex : mixed
Return values
mixed —_next()
protected
_next() : mixed
Return values
mixed —_peek()
protected
_peek() : mixed