From 6845c00a3f752abecd9ef763848329bceaf63df4 Mon Sep 17 00:00:00 2001 From: xue <> Date: Fri, 31 Mar 2006 12:42:22 +0000 Subject: Reorganized folders under framework. This may break existing applications. --- framework/Web/UI/WebControls/TDatePicker.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'framework/Web/UI/WebControls/TDatePicker.php') diff --git a/framework/Web/UI/WebControls/TDatePicker.php b/framework/Web/UI/WebControls/TDatePicker.php index 8d6d45e4..0d30636c 100644 --- a/framework/Web/UI/WebControls/TDatePicker.php +++ b/framework/Web/UI/WebControls/TDatePicker.php @@ -256,7 +256,7 @@ class TDatePicker extends TTextBox public function setDate($value) { $date = TPropertyValue::ensureInteger($value); - $formatter = Prado::createComponent('System.Data.TSimpleDateFormatter', + $formatter = Prado::createComponent('System.Util.TSimpleDateFormatter', $this->getDateFormat()); $this->setText($formatter->format($date)); } @@ -358,7 +358,7 @@ class TDatePicker extends TTextBox $date = @mktime(0, 0, 0, $month, $day, $year); $pattern = $this->getDateFormat(); $pattern = str_replace(array('MMMM', 'MMM'), array('MM','MM'), $pattern); - $formatter = Prado::createComponent('System.Data.TSimpleDateFormatter', $pattern); + $formatter = Prado::createComponent('System.Util.TSimpleDateFormatter', $pattern); return $formatter->format($date); } @@ -452,7 +452,7 @@ class TDatePicker extends TTextBox protected function hasDayPattern() { - $formatter = Prado::createComponent('System.Data.TSimpleDateFormatter', + $formatter = Prado::createComponent('System.Util.TSimpleDateFormatter', $this->getDateFormat()); return !is_null($formatter->getDayPattern()); } @@ -464,7 +464,7 @@ class TDatePicker extends TTextBox */ protected function renderCalendarSelections($writer, $date) { - $formatter = Prado::createComponent('System.Data.TSimpleDateFormatter', + $formatter = Prado::createComponent('System.Util.TSimpleDateFormatter', $this->getDateFormat()); foreach($formatter->getDayMonthYearOrdering() as $type) { @@ -485,7 +485,7 @@ class TDatePicker extends TTextBox { $pattern = $this->getDateFormat(); $pattern = str_replace(array('MMMM', 'MMM'), array('MM','MM'), $pattern); - $formatter = Prado::createComponent('System.Data.TSimpleDateFormatter',$pattern); + $formatter = Prado::createComponent('System.Util.TSimpleDateFormatter',$pattern); return $formatter->parse($this->getText()); } @@ -550,7 +550,7 @@ class TDatePicker extends TTextBox */ protected function getLocalizedMonthNames($info) { - $formatter = Prado::createComponent('System.Data.TSimpleDateFormatter', + $formatter = Prado::createComponent('System.Util.TSimpleDateFormatter', $this->getDateFormat()); switch($formatter->getMonthPattern()) { -- cgit v1.2.3