mirror of
https://github.com/php/doc-es.git
synced 2026-04-23 23:28:22 +02:00
1fa367dd0d
Use consistent line terminator. git-svn-id: https://svn.php.net/repository/phpdoc/es/trunk@317671 c90b9560-bf6c-de11-be94-00142212c4b1
112 lines
2.9 KiB
XML
112 lines
2.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: 96c9d88bad9a7d7d44bfb7f26c226df7ee9ddf26 Maintainer: seros Status: ready -->
|
|
<refentry xml:id='function.imap-thread' xmlns="http://docbook.org/ns/docbook">
|
|
<refnamediv>
|
|
<refname>imap_thread</refname>
|
|
<refpurpose>Devuelve un árbol de mensajes hilados</refpurpose>
|
|
</refnamediv>
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type>array</type><methodname>imap_thread</methodname>
|
|
<methodparam><type>resource</type><parameter>imap_stream</parameter></methodparam>
|
|
<methodparam choice="opt"><type>int</type><parameter>options</parameter><initializer>SE_FREE</initializer></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
Obtiene un árbol de mensajes hilados.
|
|
</para>
|
|
</refsect1>
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<para>
|
|
<variablelist>
|
|
&imap.imap-stream.description;
|
|
<varlistentry>
|
|
<term><parameter>options</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</para>
|
|
</refsect1>
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
<function>imap_thread</function> devuelve un array asociativo que contiene
|
|
un árbol de mensajes hilados mediante <literal>REFERENCES</literal>, o &false;
|
|
en caso de error.
|
|
</para>
|
|
<para>
|
|
Cada mensaje del buzón actual será representado por tres entradas
|
|
en el array resultante:
|
|
<itemizedlist>
|
|
<listitem><para>
|
|
<varname>$thread["XX.num"]</varname> - número de mensaje actual
|
|
</para></listitem>
|
|
<listitem><para>
|
|
<varname>$thread["XX.next"]</varname>
|
|
</para></listitem>
|
|
<listitem><para>
|
|
<varname>$thread["XX.branch"]</varname>
|
|
</para></listitem>
|
|
</itemizedlist>
|
|
</para>
|
|
</refsect1>
|
|
<refsect1 role="examples">
|
|
&reftitle.examples;
|
|
<para>
|
|
<example>
|
|
<title>Ejemplo de <function>imap_thread</function></title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
|
|
// Imprimimos los hilos de un grupo de noticias, en HTML
|
|
|
|
$nntp = imap_open('{news.example.com:119/nntp}some.newsgroup', '', '');
|
|
$threads = imap_thread($nntp);
|
|
|
|
foreach ($threads as $key => $val) {
|
|
$tree = explode('.', $key);
|
|
if ($tree[1] == 'num') {
|
|
$header = imap_headerinfo($nntp, $val);
|
|
echo "<ul>\n\t<li>" . $header->fromaddress . "\n";
|
|
} elseif ($tree[1] == 'branch') {
|
|
echo "\t</li>\n</ul>\n";
|
|
}
|
|
}
|
|
|
|
imap_close($nntp);
|
|
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
</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
|
|
-->
|