private function ParseMaster::_backReferences in Advanced CSS/JS Aggregation 7
Same name and namespace in other branches
- 8.4 advagg_js_minify/jspacker.inc \ParseMaster::_backReferences()
- 8.2 advagg_js_minify/jspacker.inc \ParseMaster::_backReferences()
- 8.3 advagg_js_minify/jspacker.inc \ParseMaster::_backReferences()
- 6 advagg_js_compress/jspacker.inc \ParseMaster::_backReferences()
- 7.2 advagg_js_compress/jspacker.inc \ParseMaster::_backReferences()
File
- advagg_js_compress/
jspacker.inc, line 698
Class
Code
private function _backReferences($match, $offset) {
$replacement = $this->buffer['replacement'];
$quote = $this->buffer['quote'];
$i = $this->buffer['length'];
while ($i) {
$replacement = str_replace('$' . $i--, $match[$offset + $i], $replacement);
}
return $replacement;
}