yupe\components\Migrator::getModulesWithDBInstalled PHP Метод

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

Return db-installed modules list
public getModulesWithDBInstalled ( ) : mixed
Результат mixed db-installed
    public function getModulesWithDBInstalled()
    {
        $db = $this->getDbConnection();
        $modules = [];
        $m = $db->cache(3600, new CDbCacheDependency('select count(id) from {{migrations}}'))->createCommand()->select('module')->from('{{migrations}}')->order('module DESC')->group('module')->queryAll();
        foreach ($m as $i) {
            $modules[] = $i['module'];
        }
        return $modules;
    }