]> git.llucax.com Git - mecon/meconlib.git/commitdiff
- Agregue la funcion getValue a mdate
authorMartín Marrese <marrese@gmail.com>
Mon, 9 Jun 2003 22:45:09 +0000 (22:45 +0000)
committerMartín Marrese <marrese@gmail.com>
Mon, 9 Jun 2003 22:45:09 +0000 (22:45 +0000)
HTML/php/QuickForm/mdate.php

index d5a39995dc355eb786bb88cfe5732f10f64d80e4..18b3f6c0bd03825790624aa3c57f7bb9594b555d 100644 (file)
@@ -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
 }
 ?>