Elgg
Version 1.11
|
WARNING: API IN FLUX. More...
Public Member Functions | |
__construct ($template) | |
Constructor. More... | |
format (array $args) | |
Applies the inputs to the message template and returns the result. More... | |
__toString () | |
Get the string template this message uses for translation. More... | |
Protected Attributes | |
$template | |
WARNING: API IN FLUX.
DO NOT USE DIRECTLY.
A single localizable message template.
We introduced this class because we want to have the flexibility of easily switching our message template language from sprintf to ICU...
Example messages:
private
Definition at line 20 of file MessageTemplate.php.
Elgg\I18n\MessageTemplate::__construct | ( | $template | ) |
Constructor.
string | $template | The message template |
Definition at line 29 of file MessageTemplate.php.
Elgg\I18n\MessageTemplate::__toString | ( | ) |
Get the string template this message uses for translation.
Definition at line 47 of file MessageTemplate.php.
|
abstract |
Applies the inputs to the message template and returns the result.
array | $args | The inputs to this message |
|
protected |
Definition at line 22 of file MessageTemplate.php.