mirror of
https://github.com/macintoshplus/doc-fr.git
synced 2026-03-25 17:32:07 +01:00
Based on diff: http://doc.php.net/revcheck.php?p=plain&lang=fr&hbp=ce6ab41aa12cc3bc1251a02c977454c0451a180c&f=reference/stream/functions/stream-context-set-option.xml&c=on The part starting with "Voyez la section" was copied from the note in the same file.
125 lines
3.8 KiB
XML
125 lines
3.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: f7b3a3a469091c4015c224356de4824eb99b9232 Maintainer: yannick Status: ready -->
|
|
<!-- Reviewed: yes -->
|
|
|
|
<refentry xml:id="function.stream-context-set-option" xmlns="http://docbook.org/ns/docbook">
|
|
<refnamediv>
|
|
<refname>stream_context_set_option</refname>
|
|
<refpurpose>Configure une option pour un flux/gestionnaire/contexte</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type>bool</type><methodname>stream_context_set_option</methodname>
|
|
<methodparam><type>resource</type><parameter>stream_or_context</parameter></methodparam>
|
|
<methodparam><type>string</type><parameter>wrapper</parameter></methodparam>
|
|
<methodparam><type>string</type><parameter>option</parameter></methodparam>
|
|
<methodparam><type>mixed</type><parameter>value</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<methodsynopsis>
|
|
<type>bool</type><methodname>stream_context_set_option</methodname>
|
|
<methodparam><type>resource</type><parameter>stream_or_context</parameter></methodparam>
|
|
<methodparam><type>array</type><parameter>options</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<simpara>
|
|
<function>stream_context_set_option</function> définit une option
|
|
pour le contexte spécifié. La valeur <parameter>value</parameter>
|
|
est définie pour l'<parameter>option</parameter> pour le contexte
|
|
<parameter>wrapper</parameter>.
|
|
</simpara>
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters"><!-- {{{ -->
|
|
&reftitle.parameters;
|
|
<para>
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term><parameter>stream_or_context</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
Le flux ou la ressource de contexte sur lequel on applique l'option.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><parameter>wrapper</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
Le nom du gestionnaire (qui peut être différent de celui du protocole).
|
|
Voyez la section sur les <link linkend="context">contextes</link> pour
|
|
connaître la liste des paramètres standard de flux.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><parameter>option</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
Le nom de l'option.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><parameter>value</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
La valeur de l'option.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><parameter>options</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
L'option à définir pour le paramètre <parameter>stream_or_context</parameter>.
|
|
</para>
|
|
<note>
|
|
<para>
|
|
Le paramètre <parameter>options</parameter> doit être un
|
|
tableau associatif de tableaux associatifs, au format
|
|
<literal>$arr['wrapper']['option'] = $value</literal>.
|
|
</para>
|
|
<para>
|
|
Voyez la section sur les
|
|
<link linkend="context">contextes</link> pour
|
|
connaître la liste des paramètres standard de flux.
|
|
</para>
|
|
</note>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</para>
|
|
</refsect1><!-- }}} -->
|
|
|
|
<refsect1 role="returnvalues"><!-- {{{ -->
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
&return.success;
|
|
</para>
|
|
</refsect1><!-- }}} -->
|
|
|
|
</refentry>
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|