static public function isAvailableAdapter($adapter)
    {
        $adapter = strtolower($adapter);
        $result  = false;
        $type    = null;

        $pdoAdapters = (class_exists('Pdo', false)) ? \PDO::getAvailableDrivers() : array();
        if (strpos($adapter, 'pdo_') !== false) {
            $type    = substr($adapter, 4);
            $adapter = 'pdo';
        }

        switch ($adapter) {
            case 'mysql':
            case 'mysqli':
                $result = (class_exists('mysqli', false));
                break;
            case 'oci':
            case 'oracle':
                $result = (function_exists('oci_connect'));
                break;
            case 'pdo':
                $result = (in_array($type, $pdoAdapters));
                break;
            case 'pgsql':
                $result = (function_exists('pg_connect'));
                break;
            case 'sqlite':
                $result = (class_exists('Sqlite3', false));
                break;
            case 'sqlsrv':
                $result = (function_exists('sqlsrv_connect'));
                break;
        }

        return $result;
    }
static public function isAvailableAdapter($adapter)
    {
        $adapter = strtolower($adapter);
        $result  = false;
        $type    = null;

        $pdoAdapters = (class_exists('Pdo', false)) ? \PDO::getAvailableDrivers() : array();
        if (strpos($adapter, 'pdo_') !== false) {
            $type    = substr($adapter, 4);
            $adapter = 'pdo';
        }

        switch ($adapter) {
            case 'mysql':
            case 'mysqli':
                $result = (class_exists('mysqli', false));
                break;
            case 'oci':
            case 'oracle':
                $result = (function_exists('oci_connect'));
                break;
            case 'pdo':
                $result = (in_array($type, $pdoAdapters));
                break;
            case 'pgsql':
                $result = (function_exists('pg_connect'));
                break;
            case 'sqlite':
                $result = (class_exists('Sqlite3', false));
                break;
            case 'sqlsrv':
                $result = (function_exists('sqlsrv_connect'));
                break;
        }

        return $result;
    }
static public function isAvailableAdapter ( $ adapter ) { $ adapter = strtolower ( $ adapter ) ; $ result = false ; $ type = null ; $ pdoAdapters = ( class_exists ( 'Pdo' , false ) ) ? \ PDO :: getAvailableDrivers ( ) : array ( ) ; if ( strpos ( $ adapter , 'pdo_' ) !== false ) { $ type = substr ( $ adapter , 4 ) ; $ adapter = 'pdo' ; } switch ( $ adapter ) { case 'mysql' : case 'mysqli' : $ result = ( class_exists ( 'mysqli' , false ) ) ; break ; case 'oci' : case 'oracle' : $ result = ( function_exists ( 'oci_connect' ) ) ; break ; case 'pdo' : $ result = ( in_array ( $ type , $ pdoAdapters ) ) ; break ; case 'pgsql' : $ result = ( function_exists ( 'pg_connect' ) ) ; break ; case 'sqlite' : $ result = ( class_exists ( 'Sqlite3' , false ) ) ; break ; case 'sqlsrv' : $ result = ( function_exists ( 'sqlsrv_connect' ) ) ; break ; } return $ result ; }
Get the available image library adapters

@param  string $adapter, adapter type: mysql|oracle|pdo|...
@return boolean
Get the available image library adapters