Class lajax\translatemanager\services\scanners\ScannerDatabase
Inheritance | lajax\translatemanager\services\scanners\ScannerDatabase |
---|---|
Available since version | 1.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,
'categoryPrefix' => 'lx-'
],
[
'connection' => 'db',
'table' => 'category',
'columns' => ['name', 'description']
]
]
Public Methods
Method | Description | Defined 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
public void __construct ( lajax\translatemanager\services\Scanner $scanner ) | ||
$scanner | \lajax\translatemanager\services\scanners\Scaner |
Scanning database tables defined in configuration file. Searching for language elements yet to be translated.
public void run ( ) |