JavascriptCompressor
extends MagratheaCompressor
in package
Table of Contents
Properties
Methods
- AddArray() : MagratheaCompressor
- add an array of file paths
- AddFile() : MagratheaCompressor
- add a file path
- GetCode() : string
- return minified code
- GetMinCode() : string
- return minified code
- GetRawCode() : string
- Get the raw code from all the files
Properties
$compress
protected
mixed
$compress
= false
$files
protected
mixed
$files
= []
Methods
AddArray()
add an array of file paths
public
AddArray(array<string|int, mixed> $fs) : MagratheaCompressor
Parameters
- $fs : array<string|int, mixed>
Return values
MagratheaCompressor —itself
AddFile()
add a file path
public
AddFile(string $file) : MagratheaCompressor
Parameters
- $file : string
-
js file path
Return values
MagratheaCompressor —itself
GetCode()
return minified code
public
GetCode() : string
Return values
string —code
GetMinCode()
return minified code
public
GetMinCode() : string
Return values
string —code
GetRawCode()
Get the raw code from all the files
public
GetRawCode() : string