PHP Class lajax\translatemanager\services\Generator

Since: 1.0
Author: Lajos Molnár ([email protected])
Datei anzeigen Open project: lajax/yii2-translate-manager Class Usage Examples

Public Methods

Method Description
__construct ( Module $module, string $language_id )
generate ( ) : integer Generating JavaScript language file.
getLanguageId ( ) : string
run ( ) : integer Generating JavaScript language file.
setLanguageId ( string $language_id )

Private Methods

Method Description
_generateJSFile ( ) Creating JavaScript language file in current language.
_loadLanguageItems ( ) Loads language elements in JavaScript category.

Method Details

__construct() public method

public __construct ( Module $module, string $language_id )
$module lajax\translatemanager\Module
$language_id string Language of the file to be generated.

generate() public method

Generating JavaScript language file.
Deprecation: since version 1.4
public generate ( ) : integer
return integer

getLanguageId() public method

public getLanguageId ( ) : string
return string returns the language id of the translation.

run() public method

Generating JavaScript language file.
public run ( ) : integer
return integer

setLanguageId() public method

public setLanguageId ( string $language_id )
$language_id string Stores the language id of the translation.