public function CSSCompression_Combine::access in Advanced CSS/JS Aggregation 7
Same name and namespace in other branches
- 6 advagg_css_compress/css-compressor-3.x/src/lib/Combine.inc \CSSCompression_Combine::access()
Access to private methods for testing
Parameters
(string) subclass: Name of subclass to focus on:
(string) method: Method to be called:
(array) args: Array of paramters to be passed in:
File
- advagg_css_compress/
css-compressor-3.x/ src/ lib/ Combine.inc, line 167
Class
- CSSCompression_Combine
- CSS Compressor [VERSION] [DATE] Corey Hart @ http://www.codenothing.com
Code
public function access($subclass, $method, $args) {
if ($subclass == 'Combine') {
if (method_exists($this, $method)) {
if ($method == 'combine') {
return $this
->combine($args[0], $args[1]);
}
else {
return call_user_func_array(array(
$this,
$method,
), $args);
}
}
else {
throw new CSSCompression_Exception("Unknown method in Combine Class - " . $method);
}
}
else {
if (in_array($subclass, $this->subcombines)) {
return $this->{$subclass}
->access($method, $args);
}
else {
throw new CSSCompression_Exception("Unknown Sub Combine Class - " . $subclass);
}
}
}