Class Dynamic

Description

Dynamic Class

Handles generating links to static content that are a timestamp injected as to avoid hard caching. Also minifies content where applicable.

Located in /classes/Dynamic.php (line 24)

Object
   |
   --Dynamic
Method Summary
string css ( $original_reference, string $reference)
string js ( $original_reference, [ $level = 'simple'], string $reference)
string ref (string $reference)
Variables

Inherited Variables

Inherited from Object

Object::$config
Object::$instances
Methods
css (line 185)

Generate Stylesheet Reference

Attempts to minify the stylesheet and then returns the reference URI for the file, minified or not.

  • return: URI reference reference with dynamic content
  • access: public
string css ( $original_reference, string $reference)
  • string $reference: URI reference of the Stylesheet
  • $original_reference
js (line 96)

Generate Javascript Reference

Attempts to minify the source with Google's Closure compiler, and then returns the reference URI for the file, minified or not.

string js ( $original_reference, [ $level = 'simple'], string $reference)
  • string $reference: URI reference of the Javascript file
  • $original_reference
  • $level
ref (line 35)

Generate Reference

Appends a dynamic piece of information to the passed reference in the form of a UNIX timestamp added to the query string.

  • return: URI reference reference with dynamic content
  • access: public
string ref (string $reference)
  • string $reference: URI reference of the file

Inherited Methods

Inherited From Object

Object::__construct()
Object::getInstance()
Object::__destruct()

Documentation generated on Sun, 17 Oct 2010 23:17:22 -0400 by phpDocumentor 1.4.3