From 75579ed49ec22ecc138657f820953b483bcb8e4f Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Mon, 24 Jan 2011 22:44:23 -0700 Subject: [PATCH] Add some utility functions to horde/Prefs --- framework/Prefs/lib/Horde/Prefs.php | 10 ++++++++++ framework/Prefs/lib/Horde/Prefs/Storage/Base.php | 10 ++++++++++ 2 files changed, 20 insertions(+) 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. -- 2.11.0