From: Michael M Slusarz Date: Thu, 4 Dec 2008 19:20:06 +0000 (-0700) Subject: Add getParam(). X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=d6a95755a31594909273596b7dcbad927e477b2a;p=horde.git Add getParam(). --- diff --git a/framework/Imap_Client/lib/Horde/Imap/Client/Base.php b/framework/Imap_Client/lib/Horde/Imap/Client/Base.php index 7b7e26331..0473cd3e5 100644 --- a/framework/Imap_Client/lib/Horde/Imap/Client/Base.php +++ b/framework/Imap_Client/lib/Horde/Imap/Client/Base.php @@ -201,6 +201,18 @@ abstract class Horde_Imap_Client_Base extends Horde_Imap_Client } /** + * Returns a value from the internal params array. + * + * @param string $key The param key. + * + * @return mixed The param value, or null if not found. + */ + public function getParam($key) + { + return isset($this->_params[$key]) ? $this->_params[$key] : null; + } + + /** * Returns the Horde_Imap_Client_Cache object used, if available. * * @return mixed Either the object or null.