src/Dev/Install/DatabaseAdapterRegistry.php
public static function getDatabaseConfigurationHelper($databaseClass)
    {
        $adapters = static::get_adapters();
        if (empty($adapters[$databaseClass]) || empty($adapters[$databaseClass]['helperClass'])) {
            return null;
        }

        // Load if path given
        if (isset($adapters[$databaseClass]['helperPath'])) {
            include_once $adapters[$databaseClass]['helperPath'];
        }

        // Construct
        $class = $adapters[$databaseClass]['helperClass'];
        return (class_exists($class)) ? new $class() : null;
    }
public static function getDatabaseConfigurationHelper($databaseClass)
    {
        $adapters = static::get_adapters();
        if (empty($adapters[$databaseClass]) || empty($adapters[$databaseClass]['helperClass'])) {
            return null;
        }

        // Load if path given
        if (isset($adapters[$databaseClass]['helperPath'])) {
            include_once $adapters[$databaseClass]['helperPath'];
        }

        // Construct
        $class = $adapters[$databaseClass]['helperClass'];
        return (class_exists($class)) ? new $class() : null;
    }
public static function getDatabaseConfigurationHelper ( $ databaseClass ) { $ adapters = static :: get_adapters ( ) ; if ( empty ( $ adapters [ $ databaseClass ] ) || empty ( $ adapters [ $ databaseClass ] [ 'helperClass' ] ) ) { return null ; } // Load if path given if ( isset ( $ adapters [ $ databaseClass ] [ 'helperPath' ] ) ) { include_once $ adapters [ $ databaseClass ] [ 'helperPath' ] ; } // Construct $ class = $ adapters [ $ databaseClass ] [ 'helperClass' ] ; return ( class_exists ( $ class ) ) ? new $ class ( ) : null ; }
Build configuration helper for a given class

@param string $databaseClass Name of class
@return DatabaseConfigurationHelper|null Instance of helper, or null if cannot be loaded
Build configuration helper for a given class