|
|
@@ -1,5 +1,5 @@
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
-<!-- EN-Revision: 20779 -->
|
|
|
+<!-- EN-Revision: 21826 -->
|
|
|
<!-- Reviewed: no -->
|
|
|
<sect1 id="zend.http.cookies">
|
|
|
<title>Zend_Http_Cookie and Zend_Http_CookieJar</title>
|
|
|
@@ -90,13 +90,37 @@
|
|
|
|
|
|
<listitem>
|
|
|
<para>
|
|
|
- En appelant la méthode statique <methodname>fromString()</methodname>, avec une
|
|
|
+ En appelant la méthode statique <methodname>fromString($cookieStr, [$refUri, [$encodeValue]])</methodname>, avec une
|
|
|
chaîne de caractères représentant un cookie tel que défini dans les en-têtes
|
|
|
<acronym>HTTP</acronym> "Set-Cookie" (réponse) ou "Cookie" (requête). Dans ce cas la valeur du
|
|
|
cookie doit être encodée. Lorsque la chaîne de caractères représentant un
|
|
|
cookie ne comporte pas de partie "domain", vous devez fournir alors un <acronym>URI</acronym>
|
|
|
selon lequel le cookie cherchera son domaine et son chemin.
|
|
|
</para>
|
|
|
+ <para>
|
|
|
+ La méthode <code>fromString</code> accepte les paramètres suivants :
|
|
|
+ </para>
|
|
|
+ <itemizedlist>
|
|
|
+ <listitem>
|
|
|
+ <para>
|
|
|
+ <varname>$cookieStr</varname>: a cookie string as represented in the
|
|
|
+ 'Set-Cookie' <acronym>HTTP</acronym> response header or 'Cookie'
|
|
|
+ <acronym>HTTP</acronym> request header (required)
|
|
|
+ </para>
|
|
|
+ </listitem>
|
|
|
+ <listitem>
|
|
|
+ <para>
|
|
|
+ <varname>$refUri</varname>: a reference <acronym>URI</acronym> according to which the cookie's domain and path
|
|
|
+ will be set. (optional, defaults to parsing the value from the $cookieStr)
|
|
|
+ </para>
|
|
|
+ </listitem>
|
|
|
+ <listitem>
|
|
|
+ <para>
|
|
|
+ <varname>$encodeValue</varname>: If the value should be passed through urldecode. Also effects the cookie's
|
|
|
+ behavior when being converted back to a cookie string. (optional, defaults to true)
|
|
|
+ </para>
|
|
|
+ </listitem>
|
|
|
+ </itemizedlist>
|
|
|
</listitem>
|
|
|
</itemizedlist> <example id="zend.http.cookies.cookie.instantiating.example-1">
|
|
|
<title>Créer un objet Zend_Http_Cookie</title>
|