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::_() |
|---|
stringThe string to be translated
arrayArray of arguments to be inserted into the string
stringThe translated string__construct()
Empty by default, allows subclass initialization.
setCallback(mixed $object, string $method) : void
mixedTranslation class
stringTranslation class
translate(string $string, array $arguments = array()) : string
| inherited_from | \Formagic_Translator_Interface::translate() |
|---|
stringThe string to be translated
arrayArray of arguments to be inserted into the string
stringThe translated string$_callback : array