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.

  1. <com:TTranslate>
  2. {greeting} {name}!
  3. <com:TTranslateParameter Key="name">World</com:TTranslateParameter>
  4. <com:TTranslateParameter Key="greeting">Hello</com:TTranslateParameter>
  5. </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.

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::addToPostDataLoader()
TControl::applyStyleSheetSkin()
TControl::autoBindProperty()
TControl::autoDataBindProperties()
TControl::bindProperty()
TControl::broadcastEvent()
TControl::bubbleEvent()
TControl::clearChildState()
TControl::clearControlState()
TControl::clearNamingContainer()
TControl::clearViewState()
TControl::convertUniqueIdToClientId()
TControl::createChildControls()
TControl::createControlCollection()
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::getCustomData()
TControl::getEnabled()
TControl::getEnableTheming()
TControl::getEnableViewState()
TControl::getHasAdapter()
TControl::getHasAttributes()
TControl::getHasChildInitialized()
TControl::getHasControls()
TControl::getHasInitialized()
TControl::getHasLoaded()
TControl::getHasLoadedPostData()
TControl::getHasPreRendered()
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::setCustomData()
TControl::setEnabled()
TControl::setEnableTheming()
TControl::setEnableViewState()
TControl::setID()
TControl::setPage()
TControl::setSkinID()
TControl::setTemplateControl()
TControl::setViewState()
TControl::setVisible()
TControl::trackViewState()
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::addParsedObject()
TComponent::attachEventHandler()
TComponent::canGetProperty()
TComponent::canSetProperty()
TComponent::createdOnTemplate()
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

Documentation generated on Mon, 21 Apr 2008 11:36:38 -0400 by phpDocumentor 1.3.0RC4