Overview

Namespaces

  • Charcoal
    • View
      • Mustache
      • Php
      • Twig

Classes

  • AssetsHelpers
  • MustacheEngine
  • MustacheLoader
  • TranslatorHelpers

Interfaces

  • HelpersInterface
  • Overview
  • Namespace
  • Class

Class TranslatorHelpers

Translating Mustache Templates

Charcoal\View\Mustache\TranslatorHelpers implements Charcoal\View\Mustache\HelpersInterface
Namespace: Charcoal\View\Mustache
Located at Charcoal/View/Mustache/TranslatorHelpers.php
Methods summary
public
# __construct( array $data = null )

Parameters

$data
Class Dependencies.
public array
# toArray( )

Retrieve the helpers.

Retrieve the helpers.

Returns

array

Implementation of

Charcoal\View\Mustache\HelpersInterface::toArray()
protected
# reset( )

Clear macros.

Clear macros.

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
API documentation generated by ApiGen