From: Ben Klang Date: Tue, 16 Mar 2010 20:44:27 +0000 (-0400) Subject: Shout: Add VFS initialization for voice prompts X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=14b1318eb2b8100d748fcedea1c46ca4809d6f31;p=horde.git Shout: Add VFS initialization for voice prompts --- diff --git a/shout/config/conf.xml b/shout/config/conf.xml index 869af7166..9138f8d05 100644 --- a/shout/config/conf.xml +++ b/shout/config/conf.xml @@ -78,5 +78,11 @@ + + + IVR Prompt Storage Settings + + + diff --git a/shout/lib/Application.php b/shout/lib/Application.php index cdbaaa483..9b230d678 100644 --- a/shout/lib/Application.php +++ b/shout/lib/Application.php @@ -65,6 +65,11 @@ class Shout_Application extends Horde_Registry_Application /** * TODO */ + public $vfs = null; + + /** + * TODO + */ static protected $_perms = array(); /** @@ -74,12 +79,14 @@ class Shout_Application extends Horde_Registry_Application */ protected function _init() { - $this->storage = Shout_Driver::factory('storage'); - $this->extensions = Shout_Driver::factory('extensions'); - $this->devices = Shout_Driver::factory('devices'); - $this->dialplan = Shout_Driver::factory('dialplan'); - try { + $this->storage = Shout_Driver::factory('storage'); + $this->extensions = Shout_Driver::factory('extensions'); + $this->devices = Shout_Driver::factory('devices'); + $this->dialplan = Shout_Driver::factory('dialplan'); + $conf = $GLOBALS['conf']; + $this->vfs = VFS::singleton($conf['vfs']['driver'], $conf['vfs']['params']); + $accounts = $this->storage->getAccounts(); } catch (Shout_Exception $e) { $GLOBALS['notification']->push($e);