summaryrefslogtreecommitdiff
path: root/framework/I18N/TTranslateParameter.php
diff options
context:
space:
mode:
authorwei <>2006-01-29 04:55:05 +0000
committerwei <>2006-01-29 04:55:05 +0000
commitf80fa8b7e0bff7126a13b767079d2c500b92b3f7 (patch)
treef42e566c5e6c12322b54e91c683a8f488e57e008 /framework/I18N/TTranslateParameter.php
parent92a33ef250a55ec54b6c26c5611af77d999fb337 (diff)
Update quickstart style.css
Diffstat (limited to 'framework/I18N/TTranslateParameter.php')
-rw-r--r--framework/I18N/TTranslateParameter.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/framework/I18N/TTranslateParameter.php b/framework/I18N/TTranslateParameter.php
index d00e33bb..ad87b8e6 100644
--- a/framework/I18N/TTranslateParameter.php
+++ b/framework/I18N/TTranslateParameter.php
@@ -59,6 +59,7 @@ class TTranslateParameter extends TControl
* @var boolean
*/
protected $trim = true;
+
/**
* Get the parameter substitution key.
@@ -98,11 +99,24 @@ class TTranslateParameter extends TControl
return $this->trim;
}
+ public function getValue()
+ {
+ return $this->getViewState('Value', '');
+ }
+
+ public function setValue($value)
+ {
+ $this->setViewState('Value', $value, '');
+ }
+
/**
* @return string parameter contents.
*/
public function getParameter()
{
+ $value = $this->getValue();
+ if(strlen($value) > 0)
+ return $value;
$textWriter = new TTextWriter;
$this->renderControl(new THtmlWriter($textWriter));
return $this->getTrim() ?