Class jMinifier

Description

This object is responsible to concatenate and minify CSS or JS files.

There is a cache system so that previously minified files are served directly. Otherwise, files ares concatenated, minified and stored in cache. We also check if cache is up to date and needs to be refreshed.

  • author: Brice Tence
  • copyright: 2010 Brice Tence
  • licence: GNU Lesser General Public Licence see LICENCE file or http://www.gnu.org/licenses/lgpl.html .

Located in /utils/jMinifier.class.php (line 32)


	
			
Variable Summary
static mixed $min_cacheFileLocking
static Minify_Controller $_controller
static array $_options
Method Summary
static string combineAndMinify ()
static array minify (array $fileList,  $fileType)
static void _handleCssImports ( $css)
Variables
static mixed $min_cacheFileLocking = true (line 48)

Cache file locking. Set to false of filesystem is NFS. On at least one

NFS system flock-ing attempts stalled PHP for 30 seconds!

  • access: protected
static Minify_Controller $_controller = null (line 37)
  • var: active controller for current request
  • access: protected
static array $_options = null (line 42)
  • var: options for current request
  • access: protected
Methods
static combineAndMinify (line 173)

Combines sources and minifies the result.

  • access: protected
static string combineAndMinify ()
static minify (line 60)
  • return: of file path to minify's www cached file. A further improvment could be to output several files (size limit for iPhone). That's why this is an array.
  • access: public
static array minify (array $fileList,  $fileType)
  • array $fileList: Array of file URLs to include
  • $fileType
static _handleCssImports (line 244)

Bubble CSS @imports to the top or prepend a warning if an

  • access: protected
static void _handleCssImports ( $css)
  • $css

Documentation generated on Thu, 19 Sep 2013 00:06:25 +0200 by phpDocumentor 1.4.3