From 9f3ef5cc8dbe60113fe9c5ccc2b0c3a4cf148348 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Mon, 7 Sep 2015 16:29:08 +0200 Subject: [PATCH] lib: Add Platform::hasMssqlSupport() refs #9683 --- library/Icinga/Application/Platform.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 *