Exemple #1
0
 /**
  * Accepted options for DateSelect (plus the ones from MonthSelect) :
  * - day_attributes: HTML attributes to be rendered with the day element
  *
  * @param array|\Traversable $options
  * @return DateSelect
  */
 public function setOptions($options)
 {
     parent::setOptions($options);
     if (isset($options['day_attributes'])) {
         $this->setDayAttributes($options['day_attributes']);
     }
     return $this;
 }