PHP Class RainLab\Translate\Classes\ThemeScanner

Author: Alexey Bobkov, Samuel Georges
Datei anzeigen Open project: rainlab/translate-plugin Class Usage Examples

Public Methods

Method 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.

Protected Methods

Method 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 method

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

processStandardTags() protected method

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

scan() public static method

Helper method for scanForMessages()
public static scan ( ) : void
return void

scanForMessages() public method

Scans theme templates and config for messages.
public scanForMessages ( ) : void
return void

scanThemeConfigForMessages() public method

Scans the theme configuration for defined messages
public scanThemeConfigForMessages ( ) : void
return void

scanThemeTemplatesForMessages() public method

Scans the theme templates for message references.