Example #1
0
 /**
  * Processes a mask values
  *
  * @return Void
  * @author Dan Cox
  */
 public function processValues($name, $arr)
 {
     foreach ($arr as $key => $value) {
         if (strstr($value, '=') !== false) {
             // Extract it's value
             $values = explode('=', $value);
             $val = str_replace(['\'', '"'], '', $values[1]);
             $this->formatted[$name]['params'][trim($values[0])] = $val;
         } else {
             // This gets added as a flag
             $this->formatted[$name]['params'][trim($value)] = TRUE;
         }
     }
     $this->formatted[$name]['value'] = $this->collection->getMethod()->get($name);
 }