lajax\translatemanager\services\scanners\ScannerDatabase::__construct PHP Method

__construct() public method

public __construct ( Scanner $scanner )
$scanner lajax\translatemanager\services\Scanner
    public function __construct(Scanner $scanner)
    {
        $this->_scanner = $scanner;
        $this->_tables = Yii::$app->getModule('translatemanager')->tables;
        if (!empty($this->_tables) && is_array($this->_tables)) {
            foreach ($this->_tables as $tables) {
                if (empty($tables['connection'])) {
                    throw new InvalidConfigException('Incomplete database  configuration: connection ');
                } else {
                    if (empty($tables['table'])) {
                        throw new InvalidConfigException('Incomplete database  configuration: table ');
                    } else {
                        if (empty($tables['columns'])) {
                            throw new InvalidConfigException('Incomplete database  configuration: columns ');
                        }
                    }
                }
            }
        }
    }