Control access to properties
- Getting stats/mode/css returns the current value of that property - Getting options will return the current full options array - Getting anything else returns that current value in the options array or NULL
Paramètres
(string) name: Name of property that you want to access:
Fichier
-
advagg_css_compress/
css-compressor-3.x/ src/ lib/ Control.inc, line 103
Classe
- CSSCompression_Control
- CSS Compressor [VERSION] [DATE] Corey Hart @ http://www.codenothing.com
Code
public function get($name) {
if (in_array($name, $this->getters)) {
return $this->{$name};
}
else {
if ($name == 'options') {
return $this->Option->options;
}
else {
return $this->Option
->option($name);
}
}
}