Formagic translator class
Provides an standard interface used by all Formagic framework classes. Contains no stand-alone translation features: If no translation callback is provided, Formagic_Translator will simply return the same string that was passed in the first place.
package | Formagic\Translator |
---|---|
author | Florian Sonnenburg |
since | 1.0.0 First time introduced |
_(string $string, array $arguments = array()
) : string
inherited_from | \Formagic_Translator_Interface::_() |
---|
string
The string to be translated
array
Array of arguments to be inserted into the string
string
The translated string__construct()
Empty by default, allows subclass initialization.
setCallback(mixed $object, string $method) : void
mixed
Translation class
string
Translation class
translate(string $string, array $arguments = array()
) : string
inherited_from | \Formagic_Translator_Interface::translate() |
---|
string
The string to be translated
array
Array of arguments to be inserted into the string
string
The translated string$_callback : array