lib: Add Platform::hasMssqlSupport()

refs #9683
This commit is contained in:
Eric Lippmann 2015-09-07 16:29:08 +02:00
parent 771efae1a2
commit 9f3ef5cc8d
1 changed files with 12 additions and 0 deletions

View File

@ -318,6 +318,18 @@ class Platform
return false;
}
/**
* Return whether it's possible to connect to a MSSQL database
*
* Checks whether the Zend framework adapter for MSSQL is available
*
* @return bool
*/
public static function hasMssqlSupport()
{
return static::classExists('Zend_Db_Adapter_Pdo_Mssql');
}
/**
* Return whether it's possible to connect to a MySQL database
*