MediaWiki REL1_32
JSMinPlus Class Reference

Public Member Functions

 parseTree ($n, $noBlockGrouping=false)
 

Static Public Member Functions

static minify ($js, $filename='')
 

Private Member Functions

 __construct ()
 
 isValidIdentifier ($string)
 
 isWordChar ($char)
 
 min ($js, $filename)
 

Private Attributes

 $parser
 
 $reserved
 

Detailed Description

Definition at line 175 of file jsminplus.php.

Constructor & Destructor Documentation

◆ __construct()

JSMinPlus::__construct ( )
private

Definition at line 194 of file jsminplus.php.

Member Function Documentation

◆ isValidIdentifier()

JSMinPlus::isValidIdentifier (   $string)
private

Definition at line 663 of file jsminplus.php.

◆ isWordChar()

JSMinPlus::isWordChar (   $char)
private

Definition at line 668 of file jsminplus.php.

Referenced by parseTree().

◆ min()

JSMinPlus::min (   $js,
  $filename 
)
private

Definition at line 210 of file jsminplus.php.

References $e, and parseTree().

◆ minify()

static JSMinPlus::minify (   $js,
  $filename = '' 
)
static

Definition at line 199 of file jsminplus.php.

◆ parseTree()

Member Data Documentation

◆ $parser

JSMinPlus::$parser
private

Definition at line 177 of file jsminplus.php.

◆ $reserved

JSMinPlus::$reserved
private
Initial value:
'break', 'case', 'catch', 'continue', 'default', 'delete', 'do',
'else', 'finally', 'for', 'function', 'if', 'in', 'instanceof',
'new', 'return', 'switch', 'this', 'throw', 'try', 'typeof', 'var',
'void', 'while', 'with',
'abstract', 'boolean', 'byte', 'char', 'class', 'const', 'debugger',
'double', 'enum', 'export', 'extends', 'final', 'float', 'goto',
'implements', 'import', 'int', 'interface', 'long', 'native',
'package', 'private', 'protected', 'public', 'short', 'static',
'super', 'synchronized', 'throws', 'transient', 'volatile',
'arguments', 'eval', 'true', 'false', 'Infinity', 'NaN', 'null', 'undefined'
)
The wiki should then use memcached to cache various data To use multiple just add more items to the array To increase the weight of a make its entry a array("192.168.0.1:11211", 2))

Definition at line 178 of file jsminplus.php.


The documentation for this class was generated from the following file: