Exemple #1
0
 /**
  * @brief Creates a new rule
  *
  * @param String $selector The CSS selector
  * @param Array $attributes The attributes to assign
  */
 function __construct($selector, $attributes)
 {
     $this->selector = $selector;
     $attrarr = array();
     foreach ((array) $attributes as $attr => $val) {
         $newattr = string::strip($attr, string::CHS_ALPHA);
         $attrarr[$attr] = $val;
     }
     $this->attributes = $attrarr;
 }