PHP Класс lajax\translatemanager\services\scanners\ScannerDatabase

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'] ] ] ~~~
С версии: 1.0
Автор: Lajos Molnár ([email protected])
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( Scanner $scanner )
run ( ) Scanning database tables defined in configuration file. Searching for language elements yet to be translated.

Приватные методы

Метод Описание
_getCategory ( array $tables ) : string Returns the language category.
_normalizeTablename ( string $tableName ) : string Returns the normalized database table name.
_scanningTable ( array $tables ) Scanning database table

Описание методов

__construct() публичный Метод

public __construct ( Scanner $scanner )
$scanner lajax\translatemanager\services\Scanner

run() публичный Метод

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