public function CSSCompression_Selectors::access in Advanced CSS/JS Aggregation 7
Same name and namespace in other branches
- 6 advagg_css_compress/css-compressor-3.x/src/lib/Selectors.inc \CSSCompression_Selectors::access()
Access to private methods for testing
Parameters
(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/ Selectors.inc, line 229
Class
- CSSCompression_Selectors
- CSS Compressor [VERSION] [DATE] Corey Hart @ http://www.codenothing.com
Code
public function access($method, $args) {
if (method_exists($this, $method)) {
if ($method == 'selectors') {
return $this
->selectors($args[0]);
}
else {
return call_user_func_array(array(
$this,
$method,
), $args);
}
}
else {
throw new CSSCompression_Exception("Unknown method in Selectors Class - " . $method);
}
}