public function CSSCompression::access in Advanced CSS/JS Aggregation 7
Same name and namespace in other branches
- 6 advagg_css_compress/css-compressor-3.x/src/CSSCompression.inc \CSSCompression::access()
Backdoor access to subclasses ONLY FOR DEVELOPMENT/TESTING.
Parameters
(string) class: Name of the focus class:
(string) method: Method function to call:
(array) args: Array of arguments to pass in:
File
- advagg_css_compress/
css-compressor-3.x/ src/ CSSCompression.inc, line 425
Class
Code
public function access($class = NULL, $method = NULL, $args = NULL) {
if (!self::DEV) {
throw new CSSCompression_Exception("CSSCompression is not in development mode.");
}
else {
if ($class === NULL || $method === NULL || $args === NULL) {
throw new CSSCompression_Exception("Invalid Access Call.");
}
else {
if (!is_array($args)) {
throw new CSSCompression_Exception("Expecting array of arguments.");
}
}
}
return $this->Control
->access($class, $method, $args);
}