Moodle  2.2.1
http://www.collinsharper.com
Minify_Controller_Page Class Reference
Inheritance diagram for Minify_Controller_Page:
Collaboration diagram for Minify_Controller_Page:

Public Member Functions

 setupSources ($options)
 loadMinifier ($minifierCallback)

Protected Attributes

 $_loadCssJsMinifiers = false

Detailed Description

Definition at line 16 of file Page.php.


Member Function Documentation

loadMinifier ( minifierCallback)
See also:
Minify_Controller_Base::loadMinifier()

Reimplemented from Minify_Controller_Base.

Definition at line 71 of file Page.php.

setupSources ( options)

Set up source of HTML content

Parameters:
array$optionscontroller and Minify options
Returns:
array Minify options

Controller options:

'content': (required) HTML markup

'id': (required) id of page (string for use in server-side caching)

'lastModifiedTime': timestamp of when this content changed. This is recommended to allow both server and client-side caching.

'minifyAll': should all CSS and Javascript blocks be individually minified? (default false)

Todo:
Add 'file' option to read HTML file.

Reimplemented from Minify_Controller_Base.

Definition at line 38 of file Page.php.


Field Documentation

$_loadCssJsMinifiers = false [protected]

Definition at line 66 of file Page.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations