|
Moodle
2.2.1
http://www.collinsharper.com
|
Public Member Functions | |
| __construct ($spec) | |
| getContent () | |
| getId () | |
Static Public Member Functions | |
| static | haveNoMinifyPrefs ($sources) |
| static | getDigest ($sources) |
| static | getContentType ($sources) |
Data Fields | |
| $lastModified = null | |
| $minifier = null | |
| $minifyOptions = null | |
| $filepath = null | |
| $contentType = null | |
Protected Attributes | |
| $_content = null | |
| $_getContentFunc = null | |
| $_id = null | |
Definition at line 16 of file Source.php.
| __construct | ( | $ | spec | ) |
Create a Minify_Source
In the $spec array(), you can either provide a 'filepath' to an existing file (existence will not be checked!) or give 'id' (unique string for the content), 'content' (the string content) and 'lastModified' (unixtime of last update).
As a shortcut, the controller will replace "//" at the beginning of a filepath with $_SERVER['DOCUMENT_ROOT'] . '/'.
| array | $spec | options |
Definition at line 56 of file Source.php.
| getContent | ( | ) |
| static getContentType | ( | $ | sources | ) | [static] |
Get content type from a group of sources
This is called if the user doesn't pass in a 'contentType' options
| array | $sources | Minify_Source instances |
Definition at line 173 of file Source.php.

| static getDigest | ( | $ | sources | ) | [static] |
Get unique string for a set of sources
| array | $sources | Minify_Source instances |
Definition at line 154 of file Source.php.

| getId | ( | ) |
| static haveNoMinifyPrefs | ( | $ | sources | ) | [static] |
Verifies a single minification call can handle all sources
| array | $sources | Minify_Source instances |
Definition at line 136 of file Source.php.

$_content = null [protected] |
Definition at line 183 of file Source.php.
$_getContentFunc = null [protected] |
Definition at line 184 of file Source.php.
$_id = null [protected] |
Definition at line 185 of file Source.php.
| $contentType = null |
Definition at line 41 of file Source.php.
| $filepath = null |
Definition at line 36 of file Source.php.
| $lastModified = null |
Definition at line 21 of file Source.php.
| $minifier = null |
Definition at line 26 of file Source.php.
| $minifyOptions = null |
Definition at line 31 of file Source.php.