Class CssDispatcher

Description

This class helps you to manage [templated] stylesheets, allowing you to render many sheets as one single file, caching and compressing it.

Located in /class.CssDispatcher.php (line 40)


	
			
Method Summary
CssDispatcher __construct ([ $caching = true], [ $cacheFile = null])
void add (Css $css)
string getOutput ()
void minimize ( $code)
void render ([boolean $sendHeader = true], [boolean $minimize = true], [boolean $compression = true])
Methods
Constructor __construct (line 61)
  • access: public
CssDispatcher __construct ([ $caching = true], [ $cacheFile = null])
  • $caching
  • $cacheFile
add (line 71)

Adds a stylesheet to dispatch

  • access: public
void add (Css $css)
getOutput (line 104)

Dispatches the stylesheets and returns the result

  • access: public
string getOutput ()
minimize (line 113)

Minimizes CSS code (remove line breaks, etc)

  • access: public
void minimize ( $code)
  • $code
render (line 85)

Dispatches the stylesheets and print it Compression is not supported yet. I recommend you to use mod_deflate

  • access: public
void render ([boolean $sendHeader = true], [boolean $minimize = true], [boolean $compression = true])
  • boolean $sendHeader: If true, sends a content-type (css) HTTP header
  • boolean $minimize: If true, minimizes the CSS
  • boolean $compression: Compression is activated or not

Documentation generated on Tue, 25 Aug 2009 12:42:22 +0200 by phpDocumentor 1.4.2