class HookHelper

Class HookHelper

Methods

__construct( ParserHelperInterface $parserHelper)

No description

parseActiveTemplate($templateType = TemplateDefinition::FRONT_OFFICE)

No description

parseTemplate($templateType, $template)

No description

number
walkDir( string $directory, $hooks)

Recursively examine files in a directory tree, and extract translatable strings.

Details

at line 37
__construct( ParserHelperInterface $parserHelper)

Parameters

ParserHelperInterface $parserHelper

at line 42
parseActiveTemplate($templateType = TemplateDefinition::FRONT_OFFICE)

Parameters

$templateType

at line 62
parseTemplate($templateType, $template)

Parameters

$templateType
$template

at line 104
number walkDir( string $directory, $hooks)

Recursively examine files in a directory tree, and extract translatable strings.

Returns an array of translatable strings, each item having with the following structure: 'files' an array of file names in which the string appears, 'text' the translatable text 'translation' => the text translation, or an empty string if none available. 'dollar' => true if the translatable text contains a $

Parameters

string $directory the path to the directory to examine
$hooks

Return Value

number the total number of translatable texts