public function CSSCompression_Selectors::__construct 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::__construct()
Stash a reference to the controller on each instantiation
Parameters
(class) control: CSSCompression Controller:
File
- advagg_css_compress/
css-compressor-3.x/ src/ lib/ Selectors.inc, line 46
Class
- CSSCompression_Selectors
- CSS Compressor [VERSION] [DATE] Corey Hart @ http://www.codenothing.com
Code
public function __construct(CSSCompression_Control $control) {
$this->Control = $control;
$this->token = CSSCompression::TOKEN;
$this->ridattr = "/\\[id={$this->token}(.*?){$this->token}\\]/";
$this->rclassattr = "/\\[class={$this->token}(.*?){$this->token}\\]/";
$this->options =& $control->Option->options;
}