PHP Class lajax\translatemanager\services\scanners\ScannerJavaScriptFunction

Language elements detected in JavaScript files: "lajax.t" functions ~~~ lajax.t('language element); lajax.t('language element {replace}', {replace:'String'}); lajax.t("language element"); lajax.t("language element {replace}", {replace:'String'}); ~~~
Since: 1.0
Author: Lajos Molnár ([email protected])
Inheritance: extends ScannerFile
ファイルを表示 Open project: lajax/yii2-translate-manager

Public Methods

Method Description
run ( string $route, array $params = [] ) Start scanning JavaScript files.

Protected Methods

Method Description
getLanguageItem ( array $buffer ) : array | null Returns language elements in the token buffer.

Method Details

getLanguageItem() protected method

If there is no recognisable language element in the array, returns null.
protected getLanguageItem ( array $buffer ) : array | null
$buffer array
return array | null

run() public method

Start scanning JavaScript files.
public run ( string $route, array $params = [] )
$route string
$params array