Class Giscuit_Js_Minifier

Description

Javascript Minifier

A better version of http://code.google.com/p/jsmin-php/ Although at the moment, it is slower...

  • author: Geoffrey Tran
  • copyright: Copyright (c) 2008 Zym. (http://www.zym-project.com/)
  • license: New BSD License

Located in /Js/Minifier.php (line 34)


	
			
Class Constant Summary
 ORD_LF = 10
 ORD_SPACE = 32
Variable Summary
Method Summary
 static minify (string $string) string
 static minifyFile (string $file, [string $destination = null]) void
 static minifyFromFile (string $file) string
 __construct () Giscuit_Js_Minifier
 process ( $javascript, string $javscript) string
 _action (string $action) void
 _cleanUp () void
 _isAlphaNumeric (string $c) boolean
Variables
string $_a (line 53)

Current char

  • access: protected
string $_b (line 60)

Next char

  • access: protected
Giscuit_Js_Minifier_Iterator $_iterator (line 67)

Iterator

  • access: protected
string $_output (line 74)

Processed output

  • access: protected
Methods
static minify (line 186)

Minify Javascript

  • access: public
string minify (string $string)
  • string $string
static minifyFile (line 218)

Minify a javscript file

  • access: public
void minifyFile (string $file, [string $destination = null])
  • string $file
  • string $destination: New file name
static minifyFromFile (line 199)

Minify javascript reading from a file

  • access: public
string minifyFromFile (string $file)
  • string $file
Constructor __construct (line 80)

Construct

  • access: public
Giscuit_Js_Minifier __construct ()
process (line 89)

Minify Javascript

  • access: public
string process ( $javascript, string $javscript)
  • string $javscript
  • $javascript
_action (line 259)

Processing actions

  • access: protected
void _action (string $action)
  • string $action
_cleanUp (line 236)

Cleanup

  • access: protected
void _cleanUp ()
_isAlphaNumeric (line 249)

Check whether character is alphanumeric

  • access: protected
boolean _isAlphaNumeric (string $c)
  • string $c
Class Constants
ORD_LF = 10 (line 40)

Ord value of line feed

ORD_SPACE = 32 (line 46)

Ord value of space

Documentation generated on Fri, 23 Nov 2012 13:02:55 +0000 by phpDocumentor 1.4.3