Ver Fonte

Fixing incorrect reference to ::factory() method (ZF-8719, David Toniolo)

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@20121 44c647ce-9c0f-0410-b52a-842ac1e357ba
shahar há 16 anos atrás
pai
commit
1ccf12e640

+ 2 - 2
documentation/manual/en/module_specs/Zend_Http_Response.xml

@@ -13,7 +13,7 @@
         </para>
         </para>
         <para>
         <para>
             In most cases, a Zend_Http_Response object will be instantiated
             In most cases, a Zend_Http_Response object will be instantiated
-            using the factory() method, which reads a string containing an HTTP
+            using the fromString() method, which reads a string containing an HTTP
             response message, and returns a new Zend_Http_Response object:
             response message, and returns a new Zend_Http_Response object:
             <example id="zend.http.response.introduction.example-1">
             <example id="zend.http.response.introduction.example-1">
                 <title>Instantiating a Zend_Http_Response Object Using the Factory Method</title>
                 <title>Instantiating a Zend_Http_Response Object Using the Factory Method</title>
@@ -29,7 +29,7 @@ fwrite($sock, $req);
 while ($buff = fread($sock, 1024))
 while ($buff = fread($sock, 1024))
     $str .= $sock;
     $str .= $sock;
 
 
-$response = Zend_Http_Response::factory($str);
+$response = Zend_Http_Response::fromString($str);
 ]]></programlisting>
 ]]></programlisting>
             </example>
             </example>
         </para>
         </para>