diff --git a/library/Icinga/Application/Platform.php b/library/Icinga/Application/Platform.php index 7c3f06671..3095566e5 100644 --- a/library/Icinga/Application/Platform.php +++ b/library/Icinga/Application/Platform.php @@ -342,6 +342,18 @@ class Platform return static::extensionLoaded('mysql') && static::classExists('Zend_Db_Adapter_Pdo_Mysql'); } + /** + * Return whether it's possible to connect to a Oracle database using OCI8 + * + * Checks whether the OCI8 extension has been loaded and the Zend framework adapter for Oracle is available + * + * @return bool + */ + public static function hasOciSupport() + { + return static::extensionLoaded('oci8') && static::classExists('Zend_Db_Adapter_Oracle'); + } + /** * Return whether it's possible to connect to a Oracle database using PDO_OCI *