Пример #1
0
 public function __construct($name = null, $attributes = null, $data = null)
 {
     if (!is_null($attributes) && isset($attributes['class'])) {
         $attributes['class'] = $attributes['class'] . ' ' . 'datepicker';
     } else {
         $attributes['class'] = 'datepicker';
     }
     $attributes['size'] = isset($attributes['size']) ? $attributes['size'] : 10;
     parent::__construct($name, $attributes, $data);
     $this->addRule('callback2', 'error', array($this, 'checkDate'));
 }