You are here

public function JavaScriptPacker::__construct in Advanced CSS/JS Aggregation 6

Same name and namespace in other branches
  1. 8.4 advagg_js_minify/jspacker.inc \JavaScriptPacker::__construct()
  2. 8.2 advagg_js_minify/jspacker.inc \JavaScriptPacker::__construct()
  3. 8.3 advagg_js_minify/jspacker.inc \JavaScriptPacker::__construct()
  4. 7.2 advagg_js_compress/jspacker.inc \JavaScriptPacker::__construct()
  5. 7 advagg_js_compress/jspacker.inc \JavaScriptPacker::__construct()

File

advagg_js_compress/jspacker.inc, line 86

Class

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;
}