PHP Класс 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.
Наследование: extends Prado\Web\UI\TControl
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$key string The substitution key.
$trim boolean To trim or not to trim the contents.

Открытые методы

Метод Описание
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 )

Описание методов

getKey() публичный Метод

Get the parameter substitution key.
public getKey ( ) : string
Результат string substitution key.

getParameter() публичный Метод

public getParameter ( ) : string
Результат string parameter contents.

getTrim() публичный Метод

Trim the content or not.
public getTrim ( ) : boolean
Результат boolean trim or not.

getValue() публичный Метод

public getValue ( )

setKey() публичный Метод

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

setTrim() публичный Метод

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

setValue() публичный Метод

public setValue ( $value )

Описание свойств

$key защищенное свойство

The substitution key.
protected string $key
Результат string

$trim защищенное свойство

To trim or not to trim the contents.
protected bool $trim
Результат boolean