Example #1
0
 /**
  * @param string $name
  * @param array $attributes
  */
 public function __construct($name, $attributes = null)
 {
     if (isset($attributes['value']) && $attributes['value'] == true) {
         $attributes['checked'] = 'checked';
     }
     if (isset($attributes['options'])) {
         $attributes['value'] = $attributes['options'];
         unset($attributes['options']);
     }
     parent::__construct($name, $attributes);
 }