Comments: on this page. Click to read or post your own.

Class JSMin

Description

jsmin.php - PHP implementation of Douglas Crockford's JSMin.

This is pretty much a direct port of jsmin.c to PHP with just a few PHP-specific performance tweaks. Also, whereas jsmin.c reads from stdin and outputs to stdout, this library accepts a string as input and returns another string as output.

PHP 5 or higher is required.

Permission is hereby granted to use this version of the library under the same terms as jsmin.c, which has the following license:

-- Copyright (c) 2002 Douglas Crockford (www.crockford.com)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

The Software shall be used for Good, not Evil.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. --

Located in /sapphire/thirdparty/jsmin/JSMin.php (line 48)


	
			
Class Constant Summary
 ORD_LF = 10
 ORD_SPACE = 32
Variable Summary
mixed $a
mixed $b
mixed $input
mixed $inputIndex
mixed $inputLength
mixed $lookAhead
mixed $output
Method Summary
static void minify ( $js)
JSMin __construct ( $input)
void action ( $d)
void get ()
void isAlphaNum ( $c)
void min ()
void next ()
void peek ()
Variables
mixed $a = '' (line 52)
  • access: protected
mixed $b = '' (line 53)
  • access: protected
mixed $input = '' (line 54)
  • access: protected
mixed $inputIndex = 0 (line 55)
  • access: protected
mixed $inputLength = 0 (line 56)
  • access: protected
mixed $lookAhead = null (line 57)
  • access: protected
mixed $output = array() (line 58)
  • access: protected
Methods
static method minify (line 62)
  • access: public
static void minify ( $js)
  • $js
Constructor __construct (line 69)
  • access: public
JSMin __construct ( $input)
  • $input
action (line 76)
  • access: protected
void action ( $d)
  • $d
get (line 138)
  • access: protected
void get ()
isAlphaNum (line 163)
  • access: protected
void isAlphaNum ( $c)
  • $c
min (line 167)
  • access: protected
void min ()
next (line 249)
  • access: protected
void next ()
peek (line 288)
  • access: protected
void peek ()
Class Constants
ORD_LF = 10 (line 49)
ORD_SPACE = 32 (line 50)
blog comments powered by Disqus

Documentation generated on Sun, 19 Oct 2008 06:42:34 +1300 by phpDocumentor 1.3.2