Class lajax\translatemanager\services\scanners\ScannerDatabase

Inheritancelajax\translatemanager\services\scanners\ScannerDatabase
Available since version1.0

Detecting existing language elements in database.

The connection ids of the scanned databases and the table/field names can be defined in the configuration file of translateManager examples:

'tables' => [
 [
     'connection' => 'db',
     'table' => '{{%language}}',
     'columns' => ['name', 'name_ascii'],
     'category' => 'database-table-name',
 ],
 [
     'connection' => 'db',
     'table' => 'category',
     'columns' => ['name', 'description']
 ]
]

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__construct() lajax\translatemanager\services\scanners\ScannerDatabase
run() Scanning database tables defined in configuration file. Searching for language elements yet to be translated. lajax\translatemanager\services\scanners\ScannerDatabase

Method Details

__construct() public method

public void __construct ( lajax\translatemanager\services\Scanner $scanner )
$scanner \lajax\translatemanager\services\scanners\Scaner
run() public method

Scanning database tables defined in configuration file. Searching for language elements yet to be translated.

public void run ( )