[ Index ]
 

Code source de PRADO 3.0.6

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/framework/I18N/ -> TTranslateParameter.php (sommaire)

TTranslateParameter component.

Author: Wei Zhuo
Copyright: Copyright © 2005 PradoSoft
License: http://www.pradosoft.com/license/
Version: $Id: TTranslateParameter.php 1397 2006-09-07 07:55:53Z wei $
Poids: 120 lignes (3 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

TTranslateParameter:: (7 méthodes):
  getKey()
  setKey()
  setTrim()
  getTrim()
  getValue()
  setValue()
  getParameter()


Classe: TTranslateParameter  - X-Ref

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

Namespace: System.I18N

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

getKey()   X-Ref
Get the parameter substitution key.

return: string substitution key.

setKey($value)   X-Ref
Set the parameter substitution key.

param: string substitution key.

setTrim($value)   X-Ref
Set the option to trim the contents.

param: boolean trim or not.

getTrim()   X-Ref
Trim the content or not.

return: boolean trim or not.

getValue()   X-Ref
Pas de description

setValue($value)   X-Ref
Pas de description

getParameter()   X-Ref

return: string parameter contents.



Généré le : Sun Feb 25 21:07:04 2007 par Balluche grâce à PHPXref 0.7