From: Martín Marrese Date: Mon, 9 Jun 2003 22:45:09 +0000 (+0000) Subject: - Agregue la funcion getValue a mdate X-Git-Tag: svn_import~498 X-Git-Url: https://git.llucax.com/mecon/meconlib.git/commitdiff_plain/baf33b39fcddb95d9289abd6b0529f2bffc89687 - Agregue la funcion getValue a mdate --- diff --git a/HTML/php/QuickForm/mdate.php b/HTML/php/QuickForm/mdate.php index d5a3999..18b3f6c 100644 --- a/HTML/php/QuickForm/mdate.php +++ b/HTML/php/QuickForm/mdate.php @@ -28,6 +28,7 @@ require_once('HTML/QuickForm/date.php'); +require_once('Date.php'); /** * Class to dynamically create HTML Select elements from a date @@ -87,5 +88,17 @@ class HTML_QuickForm_mdate extends HTML_QuickForm_date return $options; } // end func _createNumericOptionList + + /** + * Devuelve un objeto date + * + * + * @access public + * @return object Date. + */ + function &getValue() + { + return new Date (sprintf("%04d/%02d/%02d 00:00:00",$this->_selectedDate['y'],$this->_selectedDate['m'],$this->_selectedDate['d'])); + } // end func _createNumericOptionList } ?>