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.
Показать файл
Открыть проект
Защищенные свойства (Protected)
Открытые методы
Описание методов
Get the parameter substitution key.
getParameter()
публичный Метод
getTrim()
публичный Метод
getValue()
публичный Метод
Set the parameter substitution key.
setTrim()
публичный Метод
Set the option to trim the contents.
setValue()
публичный Метод
Описание свойств
protected string $key |
Результат |
string |
|
$trim защищенное свойство
To trim or not to trim the contents.
protected bool $trim |
Результат |
boolean |
|