PHP Class Prado\I18N\TTranslateParameter

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. {greeting} {name}! World Hello 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.
Inheritance: extends Prado\Web\UI\TControl
Afficher le fichier Open project: pradosoft/prado

Protected Properties

Свойство Type Description
$key string The substitution key.
$trim boolean To trim or not to trim the contents.

Méthodes publiques

Méthode Description
getKey ( ) : string Get the parameter substitution key.
getParameter ( ) : string
getTrim ( ) : boolean Trim the content or not.
getValue ( )
setKey ( $value ) Set the parameter substitution key.
setTrim ( $value ) Set the option to trim the contents.
setValue ( $value )

Method Details

getKey() public méthode

Get the parameter substitution key.
public getKey ( ) : string
Résultat string substitution key.

getParameter() public méthode

public getParameter ( ) : string
Résultat string parameter contents.

getTrim() public méthode

Trim the content or not.
public getTrim ( ) : boolean
Résultat boolean trim or not.

getValue() public méthode

public getValue ( )

setKey() public méthode

Set the parameter substitution key.
public setKey ( $value )

setTrim() public méthode

Set the option to trim the contents.
public setTrim ( $value )

setValue() public méthode

public setValue ( $value )

Property Details

$key protected_oe property

The substitution key.
protected string $key
Résultat string

$trim protected_oe property

To trim or not to trim the contents.
protected bool $trim
Résultat boolean