Selaa lähdekoodia

re-add getConfig()

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@19219 44c647ce-9c0f-0410-b52a-842ac1e357ba
stas 16 vuotta sitten
vanhempi
commit
e04fc80059

+ 10 - 0
library/Zend/Http/Client/Adapter/Curl.php

@@ -163,6 +163,16 @@ class Zend_Http_Client_Adapter_Curl implements Zend_Http_Client_Adapter_Interfac
         return $this;
     }
 
+	/**
+ 	 * Retrieve the array of all configuration options
+ 	 *
+ 	 * @return array
+ 	 */
+ 	public function getConfig()
+ 	{
+ 	    return $this->_config;
+ 	}
+
     /**
      * Direct setter for cURL adapter related options.
      *

+ 11 - 1
library/Zend/Http/Client/Adapter/Socket.php

@@ -123,7 +123,17 @@ class Zend_Http_Client_Adapter_Socket implements Zend_Http_Client_Adapter_Interf
         }
     }
 
-    /**
+	/**
+ 	 * Retrieve the array of all configuration options
+ 	 *
+ 	 * @return array
+ 	 */
+ 	public function getConfig()
+ 	{
+ 	    return $this->config;
+ 	}
+
+ 	/**
      * Set the stream context for the TCP connection to the server
      *
      * Can accept either a pre-existing stream context resource, or an array