diff --git a/library/Icinga/Application/Platform.php b/library/Icinga/Application/Platform.php index cc72857f9..bb4aa9ca8 100644 --- a/library/Icinga/Application/Platform.php +++ b/library/Icinga/Application/Platform.php @@ -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 *