You are here

public function CSSCompression_Control::get in Advanced CSS/JS Aggregation 6

Same name and namespace in other branches
  1. 7 advagg_css_compress/css-compressor-3.x/src/lib/Control.inc \CSSCompression_Control::get()

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

Parameters

(string) name: Name of property that you want to access:

File

advagg_css_compress/css-compressor-3.x/src/lib/Control.inc, line 103

Class

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);
    }
  }
}