From: Michael M Slusarz Date: Tue, 25 Jan 2011 05:44:23 +0000 (-0700) Subject: Add some utility functions to horde/Prefs X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=75579ed49ec22ecc138657f820953b483bcb8e4f;p=horde.git Add some utility functions to horde/Prefs --- diff --git a/framework/Prefs/lib/Horde/Prefs.php b/framework/Prefs/lib/Horde/Prefs.php index f7f7af8e7..af96cfde2 100644 --- a/framework/Prefs/lib/Horde/Prefs.php +++ b/framework/Prefs/lib/Horde/Prefs.php @@ -129,6 +129,16 @@ class Horde_Prefs implements ArrayAccess } /** + * Return the storage driver. + * + * @return Horde_Prefs_Storage_Base The storage driver. + */ + public function getStorage() + { + return $this->_storage; + } + + /** * Removes a preference entry from the $prefs hash. * * @param string $pref The name of the preference to remove. diff --git a/framework/Prefs/lib/Horde/Prefs/Storage/Base.php b/framework/Prefs/lib/Horde/Prefs/Storage/Base.php index ec8176a9c..efafe29b1 100644 --- a/framework/Prefs/lib/Horde/Prefs/Storage/Base.php +++ b/framework/Prefs/lib/Horde/Prefs/Storage/Base.php @@ -35,6 +35,16 @@ abstract class Horde_Prefs_Storage_Base } /** + * Get the list of driver parameters. + * + * @return array Driver parameters. + */ + public function getParams() + { + return $this->_params; + } + + /** * Retrieves the requested preferences scope from the storage backend. * * @param Horde_Prefs_Scope $scope_ob The scope object.