PHP Class RainLab\Translate\Classes\ThemeScanner

Author: Alexey Bobkov, Samuel Georges
Afficher le fichier Open project: rainlab/translate-plugin Class Usage Examples

Méthodes publiques

Méthode Description
scan ( ) : void Helper method for scanForMessages()
scanForMessages ( ) : void Scans theme templates and config for messages.
scanThemeConfigForMessages ( ) : void Scans the theme configuration for defined messages
scanThemeTemplatesForMessages ( ) : void Scans the theme templates for message references.

Méthodes protégées

Méthode Description
parseContent ( string $content ) : array Parse the known language tag types in to messages.
processStandardTags ( string $content ) : array Process standard language filter tag (_|)

Method Details

parseContent() protected méthode

Parse the known language tag types in to messages.
protected parseContent ( string $content ) : array
$content string
Résultat array

processStandardTags() protected méthode

Process standard language filter tag (_|)
protected processStandardTags ( string $content ) : array
$content string
Résultat array

scan() public static méthode

Helper method for scanForMessages()
public static scan ( ) : void
Résultat void

scanForMessages() public méthode

Scans theme templates and config for messages.
public scanForMessages ( ) : void
Résultat void

scanThemeConfigForMessages() public méthode

Scans the theme configuration for defined messages
public scanThemeConfigForMessages ( ) : void
Résultat void

scanThemeTemplatesForMessages() public méthode

Scans the theme templates for message references.
public scanThemeTemplatesForMessages ( ) : void
Résultat void