Class TranslatorHelpers
Translating Mustache Templates
-
Charcoal\View\Mustache\TranslatorHelpers
implements
Charcoal\View\Mustache\HelpersInterface
Methods summary
public
|
#
__construct( array $data = null )
Parameters
- $data
- Class Dependencies.
|
public
array
|
#
toArray( )
Retrieve the helpers.
Returns
array
Implementation of
|
protected
|
|
public
boolean
|
#
__invoke( string $text, Mustache_LambdaHelper $helper = null )
Magic: Render the Mustache section.
Magic: Render the Mustache section.
Parameters
- $text
- The translation key.
- $helper
- For rendering strings in the current context.
Returns
boolean
|
public
boolean
|
#
__isset( string $macro )
Magic: Determine if a property is set and is not NULL.
Magic: Determine if a property is set and is not NULL.
Required by Mustache.
Parameters
- $macro
- A domain, locale, or number.
Returns
boolean
|
public
mixed
|
#
__get( string $macro )
Magic: Process domain, locale, and number.
Magic: Process domain, locale, and number.
Required by Mustache.
Parameters
- $macro
- A domain, locale, or number.
Returns
mixed
|