/**
* Class for a group of elements used to input a date.
- *
- * Emulates moodle print_date_selector function
- *
+ *
+ * Emulates moodle print_date_selector function
+ *
* @author Jamie Pratt <me@jamiep.org>
* @access public
*/
/**
* Class constructor
- *
+ *
* @access public
* @param string Element's name
* @param mixed Label(s) for an element
$years[$i] = $i;
}
$this->_elements[] =& MoodleQuickForm::createElement('select', 'day', null, $days, $this->getAttributes(), true);
- $this->_elements[] =& MoodleQuickForm::createElement('select','month', null, $months, $this->getAttributes(), true);
- $this->_elements[] =& MoodleQuickForm::createElement('select','year', null, $years, $this->getAttributes(), true);
+ $this->_elements[] =& MoodleQuickForm::createElement('select', 'month', null, $months, $this->getAttributes(), true);
+ $this->_elements[] =& MoodleQuickForm::createElement('select', 'year', null, $years, $this->getAttributes(), true);
}
'day' => $currentdate['mday'],
'month' => $currentdate['mon'],
'year' => $currentdate['year']);
-
+
}
parent::setValue($value);
}