public static function CSSCompression::getInstance in Advanced CSS/JS Aggregation 6
Same name and namespace in other branches
- 7 advagg_css_compress/css-compressor-3.x/src/CSSCompression.inc \CSSCompression::getInstance()
The Singleton access method (for those that want it)
Parameters
(string) name: Name of the stored instance:
File
- advagg_css_compress/
css-compressor-3.x/ src/ CSSCompression.inc, line 352
Class
Code
public static function getInstance($name = NULL) {
if ($name !== NULL) {
if (!isset(self::$instances[$name])) {
self::$instances[$name] = new self();
}
return self::$instances[$name];
}
else {
if (!self::$instance) {
self::$instance = new self();
}
}
return self::$instance;
}