Same name in other branches
  1. 5.0.x advagg_js_minify/jspacker.inc \JavaScriptPacker::__construct()
  2. 6.0.x advagg_js_minify/jspacker.inc \JavaScriptPacker::__construct()
  3. 7.x-2.x advagg_js_compress/jspacker.inc \JavaScriptPacker::__construct()
  4. 8.x-2.x advagg_js_minify/jspacker.inc \JavaScriptPacker::__construct()
  5. 8.x-3.x advagg_js_minify/jspacker.inc \JavaScriptPacker::__construct()
  6. 8.x-4.x advagg_js_minify/jspacker.inc \JavaScriptPacker::__construct()

Fichier

advagg_js_compress/jspacker.inc, line 86

Classe

JavaScriptPacker

Code

public function __construct($_script, $_encoding = 62, $_fastDecode = true, $_specialChars = false) {
    $this->_script = $_script . "\n";
    if (array_key_exists($_encoding, $this->LITERAL_ENCODING)) {
        $_encoding = $this->LITERAL_ENCODING[$_encoding];
    }
    $this->_encoding = min((int) $_encoding, 95);
    $this->_fastDecode = $_fastDecode;
    $this->_specialChars = $_specialChars;
}