Property | Type | Description | |
---|---|---|---|
$_data | mixed | Original javascript data. | |
$_opts | array | Minification options. | |
$_sourcemap | string | Temporary file containing sourcemap data. |
Method | Description | |
---|---|---|
__construct ( mixed $js, array $opts = [] ) | Constructor. | |
__toString ( ) | ||
minify ( ) : string | Return the minified javascript. | |
setOptions ( array $opts = [] ) | Set minification options. | |
sourcemap ( ) : mixed | Returns the sourcemap data. |
Method | Description | |
---|---|---|
_sourceUrls ( ) : string | Creates a list of source comments linking to the original URLs of the source files. |
public __construct ( mixed $js, array $opts = [] ) | ||
$js | mixed | Either a string (the JS text to compress) or an array of URLs (keys) to filenames (values) containing the JS data to compress. |
$opts | array | Additional options. See setOptions(). |
protected _sourceUrls ( ) : string | ||
return | string | Source URL data. |
public setOptions ( array $opts = [] ) | ||
$opts | array | Options:
- logger: (Horde_Log_Logger) Log object to use for log messages. |
protected string $_sourcemap | ||
return | string |