## Class TTranslateParameter

Description

TTranslateParameter component should be used inside the TTranslate component to allow parameter substitution.

For example, the strings "{greeting}" and "{name}" will be replace with the values of "Hello" and "World", respectively. The substitution string must be enclose with "{" and "}". The parameters can be further translated by using TTranslate.

     <com:TTranslate>
       {greeting} {name}!
       <com:TTranslateParameter Key="name">World</com:TTranslateParameter>
       <com:TTranslateParameter Key="greeting">Hello</com:TTranslateParameter>
     </com:TTranslate>

Namespace: System.I18N

Properties

- Key, string, required.
  Gets or sets the string in TTranslate to substitute.
- Trim, boolean,
  Gets or sets an option to trim the contents of the TParam. Default is to trim the contents.

- version: v3.0, last update on Friday, 6 January 2006
- author: Xiang Wei Zhuo <weizhuo[at]gmail[dot]com>

Located in /I18N/TTranslateParameter.php (line 42)

    TComponent
       |
       --TApplicationComponent
          |
          --TControl
             |
             --TTranslateParameter

Variable Summary
string $key
boolean $trim
Method Summary
string getKey ()
string getParameter ()
boolean getTrim ()
void getValue ()
void setKey (string $value)
void setTrim (boolean $value)
void setValue (mixed $value)
Variables
string $key (line 48)

The substitution key.

- access: protected

boolean $trim = true (line 54)

To trim or not to trim the contents.

- access: protected

Methods
getKey (line 61)

Get the parameter substitution key.

- return: substitution key.
- access: public

string getKey ()
getParameter (line 108)

- return: parameter contents.
- access: public

string getParameter ()
getTrim (line 90)

Trim the content or not.

- return: trim or not.
- access: public

boolean getTrim ()
getValue (line 95)

- access: public

void getValue ()
setKey (line 72)

Set the parameter substitution key.

- access: public

void setKey (string $value)

- string $value: substitution key.

setTrim (line 81)

Set the option to trim the contents.

- access: public

void setTrim (boolean $value)

- boolean $value: trim or not.

setValue (line 100)

- access: public

void setValue (mixed $value)

#### Inherited Methods

Inherited From TControl

> TControl::__construct()
> TControl::addedControl()
> TControl::addParsedObject()
> TControl::applyStyleSheetSkin()
> TControl::autoBindProperty()
> TControl::autoDataBindProperties()
> TControl::bindProperty()
> TControl::broadcastEvent()
> TControl::broadcastEventInternal()
> TControl::bubbleEvent()
> TControl::clearChildState()
> TControl::clearControlState()
> TControl::clearNamingContainer()
> TControl::clearViewState()
> TControl::createChildControls()
> TControl::createControlCollection()
> TControl::createdOnTemplate()
> TControl::dataBind()
> TControl::dataBindChildren()
> TControl::dataBindProperties()
> TControl::ensureChildControls()
> TControl::findControl()
> TControl::findControlsByID()
> TControl::findControlsByType()
> TControl::focus()
> TControl::getAdapter()
> TControl::getAllowChildControls()
> TControl::getAttribute()
> TControl::getAttributes()
> TControl::getChildControlsCreated()
> TControl::getClientID()
> TControl::getControls()
> TControl::getControlStage()
> TControl::getControlState()
> TControl::getEnabled()
> TControl::getEnableTheming()
> TControl::getEnableViewState()
> TControl::getHasAdapter()
> TControl::getHasAttributes()
> TControl::getHasControls()
> TControl::getID()
> TControl::getNamingContainer()
> TControl::getPage()
> TControl::getParent()
> TControl::getRegisteredObject()
> TControl::getSkinID()
> TControl::getSourceTemplateControl()
> TControl::getTemplateControl()
> TControl::getUniqueID()
> TControl::getViewState()
> TControl::getVisible()
> TControl::hasAttribute()
> TControl::initRecursive()
> TControl::isDescendentOf()
> TControl::isObjectRegistered()
> TControl::loadRecursive()
> TControl::loadState()
> TControl::loadStateRecursive()
> TControl::onDataBinding()
> TControl::onInit()
> TControl::onLoad()
> TControl::onPreRender()
> TControl::onUnload()
> TControl::preRenderRecursive()
> TControl::raiseBubbleEvent()
> TControl::registerObject()
> TControl::removeAttribute()
> TControl::removedControl()
> TControl::render()
> TControl::renderChildren()
> TControl::renderControl()
> TControl::saveState()
> TControl::saveStateRecursive()
> TControl::setAdapter()
> TControl::setAttribute()
> TControl::setChildControlsCreated()
> TControl::setControlStage()
> TControl::setControlState()
> TControl::setEnabled()
> TControl::setEnableTheming()
> TControl::setEnableViewState()
> TControl::setID()
> TControl::setPage()
> TControl::setSkinID()
> TControl::setTemplateControl()
> TControl::setViewState()
> TControl::setVisible()
> TControl::traverseChildControls()
> TControl::unbindProperty()
> TControl::unloadRecursive()
> TControl::unregisterObject()
> TControl::__get()

Inherited From TApplicationComponent

> TApplicationComponent::getApplication()
> TApplicationComponent::getRequest()
> TApplicationComponent::getResponse()
> TApplicationComponent::getService()
> TApplicationComponent::getSession()
> TApplicationComponent::getUser()
> TApplicationComponent::publishAsset()
> TApplicationComponent::publishFilePath()

Inherited From TComponent

> TComponent::attachEventHandler()
> TComponent::canGetProperty()
> TComponent::canSetProperty()
> TComponent::detachEventHandler()
> TComponent::evaluateExpression()
> TComponent::evaluateStatements()
> TComponent::getEventHandlers()
> TComponent::getSubProperty()
> TComponent::hasEvent()
> TComponent::hasEventHandler()
> TComponent::hasProperty()
> TComponent::raiseEvent()
> TComponent::setSubProperty()
> TComponent::__get()
> TComponent::__set()

Class Constants

#### Inherited Constants

Inherited from TControl

Documentation generated on Sun, 04 Jun 2006 19:00:35 -0400 by phpDocumentor 1.3.0RC4