Documentation

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
author

Douglas Crockford douglas@crockford.com

author

Ryan Grove ryan@wonko.com

author

Michael Slusarz slusarz@horde.org

category

Horde

copyright

2002 Douglas Crockford

copyright

2008 Ryan Grove

copyright

2009-2017 Horde LLC

license

JSMin

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

Properties

$_inputIndex

protected mixed $_inputIndex = 0

$_inputLength

protected mixed $_inputLength

$_keywords

protected mixed $_keywords = array('case', 'else', 'in', 'return', 'typeof')

$_lookAhead

protected mixed $_lookAhead = \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
Return values
mixed

Search results