From 6fb8909d3f856cd67fae005495285f4f486680b2 Mon Sep 17 00:00:00 2001 From: xue <> Date: Wed, 12 Mar 2008 19:10:11 +0000 Subject: Fixed #757. --- framework/I18N/TNumberFormat.php | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) (limited to 'framework/I18N/TNumberFormat.php') diff --git a/framework/I18N/TNumberFormat.php b/framework/I18N/TNumberFormat.php index c603c371..581b0d74 100644 --- a/framework/I18N/TNumberFormat.php +++ b/framework/I18N/TNumberFormat.php @@ -61,7 +61,7 @@ Prado::using('System.I18N.TI18NControl'); * @version v1.0, last update on Sat Dec 11 17:49:56 EST 2004 * @package System.I18N */ -class TNumberFormat extends TI18NControl +class TNumberFormat extends TI18NControl implements IDataRenderer { /** * Default NumberFormat, set to the application culture. @@ -105,6 +105,33 @@ class TNumberFormat extends TI18NControl $this->setViewState('Value',$value,''); } + + /** + * Get the numberic value for this control. + * This method is required by {@link IDataRenderer}. + * It is the same as {@link getValue()}. + * @return string number + * @see getValue + * @since 3.1.2 + */ + public function getData() + { + return $this->getValue(); + } + + /** + * Set the numberic value for this control. + * This method is required by {@link IDataRenderer}. + * It is the same as {@link setValue()}. + * @param string the number value + * @see setValue + * @since 3.1.2 + */ + public function setData($value) + { + $this->setValue($value); + } + /** * Get the formatting type for this control. * @return string formatting type. -- cgit v1.2.3