application/Espo/Core/Utils/SystemRequirements.php
protected function getDatabaseRequiredList($requiredOnly, array $additionalData = null)
    {
        $databaseTypeName = 'Mysql';

        $databaseHelper =  $this->getDatabaseHelper();
        $databaseParams = isset($additionalData['database']) ? $additionalData['database'] : null;
        $dbalConnection = $databaseHelper->createDbalConnection($databaseParams);
        if ($dbalConnection) {
            $databaseHelper->setDbalConnection($dbalConnection);
            $databaseType = $databaseHelper->getDatabaseType();
            $databaseTypeName = ucfirst(strtolower($databaseType));
        }

        $requiredList = [
            'required' . $databaseTypeName . 'Version',
        ];

        if (!$requiredOnly) {
            $requiredList = array_merge($requiredList, [
                'recommended' . $databaseTypeName . 'Params',
                'connection',
            ]);
        }

        return $this->getRequiredList('databaseRequirements', $requiredList, $additionalData);
    }
protected function getDatabaseRequiredList($requiredOnly, array $additionalData = null)
    {
        $databaseTypeName = 'Mysql';

        $databaseHelper =  $this->getDatabaseHelper();
        $databaseParams = isset($additionalData['database']) ? $additionalData['database'] : null;
        $dbalConnection = $databaseHelper->createDbalConnection($databaseParams);
        if ($dbalConnection) {
            $databaseHelper->setDbalConnection($dbalConnection);
            $databaseType = $databaseHelper->getDatabaseType();
            $databaseTypeName = ucfirst(strtolower($databaseType));
        }

        $requiredList = [
            'required' . $databaseTypeName . 'Version',
        ];

        if (!$requiredOnly) {
            $requiredList = array_merge($requiredList, [
                'recommended' . $databaseTypeName . 'Params',
                'connection',
            ]);
        }

        return $this->getRequiredList('databaseRequirements', $requiredList, $additionalData);
    }
protected function getDatabaseRequiredList ( $ requiredOnly , array $ additionalData = null ) { $ databaseTypeName = 'Mysql' ; $ databaseHelper = $ this -> getDatabaseHelper ( ) ; $ databaseParams = isset ( $ additionalData [ 'database' ] ) ? $ additionalData [ 'database' ] : null ; $ dbalConnection = $ databaseHelper -> createDbalConnection ( $ databaseParams ) ; if ( $ dbalConnection ) { $ databaseHelper -> setDbalConnection ( $ dbalConnection ) ; $ databaseType = $ databaseHelper -> getDatabaseType ( ) ; $ databaseTypeName = ucfirst ( strtolower ( $ databaseType ) ) ; } $ requiredList = [ 'required' . $ databaseTypeName . 'Version' , ] ; if ( ! $ requiredOnly ) { $ requiredList = array_merge ( $ requiredList , [ 'recommended' . $ databaseTypeName . 'Params' , 'connection' , ] ) ; } return $ this -> getRequiredList ( 'databaseRequirements' , $ requiredList , $ additionalData ) ; }
Get required database params
@return array
Get required database params