svn: /phpdoc/en/trunk/reference/amqp/amqpexchange/ publish.xml

From: Date: Thu, 03 Feb 2011 13:09:37 +0000
Subject: svn: /phpdoc/en/trunk/reference/amqp/amqpexchange/ publish.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-7703@lists.php.net to get a copy of this message
bjori Thu, 03 Feb 2011 13:09:37 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=307972 Log: Document missing optional parameters (Are Pedersen) Changed paths: U phpdoc/en/trunk/reference/amqp/amqpexchange/publish.xml Modified: phpdoc/en/trunk/reference/amqp/amqpexchange/publish.xml =================================================================== --- phpdoc/en/trunk/reference/amqp/amqpexchange/publish.xml 2011-02-03 12:45:30 UTC (rev 307971) +++ phpdoc/en/trunk/reference/amqp/amqpexchange/publish.xml 2011-02-03 13:09:37 UTC (rev 307972) @@ -13,13 +13,13 @@ <modifier>public</modifier> <type>void</type><methodname>AMQPExchange::publish</methodname> <methodparam><type>string</type><parameter>message</parameter></methodparam> <methodparam><type>string</type><parameter>routing_key</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>params</parameter><initializer>0</initializer></methodparam> + <methodparam choice="opt"><type>array</type><parameter>attributes</parameter></methodparam> </methodsynopsis> <para> Publish a message to the exchange represented by the <classname>AMQPExchange</classname> object. </para> - &warn.undocumented.func; - </refsect1> <refsect1 role="parameters"> @@ -42,6 +42,91 @@ </para> </listitem> </varlistentry> + <varlistentry> + <term><parameter>params</parameter></term> + <listitem> + <para> + One or more of <constant>AMQP_MANDATORY</constant> and + <constant>AMQP_MANDATORY</constant>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter></parameter></term> + <listitem> + <para> + <table> + <title>Supported indexes</title> + <tgroup cols="3"> + <thead> + <row> + <entry>key</entry> + <entry>Description</entry> + <entry>Default value</entry> + </row> + </thead> + <tbody> + <row> + <entry><emphasis>Content-type</emphasis></entry> + <entry></entry> + <entry><literal>text/plain</literal></entry> + </row> + <row> + <entry><emphasis>Content-encoding</emphasis></entry> + <entry></entry> + <entry>NULL</entry> + </row> + <row> + <entry><emphasis>message_id</emphasis></entry> + <entry></entry> + <entry>NULL</entry> + </row> + <row> + <entry><emphasis>user_id</emphasis></entry> + <entry></entry> + <entry>NULL</entry> + </row> + <row> + <entry><emphasis>app_id</emphasis></entry> + <entry></entry> + <entry>NULL</entry> + </row> + <row> + <entry><emphasis>delivery_mode</emphasis></entry> + <entry></entry> + <entry>NULL</entry> + </row> + <row> + <entry><emphasis>priority</emphasis></entry> + <entry></entry> + <entry>NULL</entry> + </row> + <row> + <entry><emphasis>timestamp</emphasis></entry> + <entry></entry> + <entry>NULL</entry> + </row> + <row> + <entry><emphasis>expiration</emphasis></entry> + <entry></entry> + <entry>NULL</entry> + </row> + <row> + <entry><emphasis>type</emphasis></entry> + <entry></entry> + <entry>NULL</entry> + </row> + <row> + <entry><emphasis>reply_to</emphasis></entry> + <entry></entry> + <entry>NULL</entry> + </row> + </tbody> + </tgroup> + </table> + </para> + </listitem> + </varlistentry> </variablelist> </para> </refsect1> @@ -49,7 +134,14 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> + &return.success; + </para> + </refsect1> + <refsect1 role="errors"> + &reftitle.errors; + <para> + Throws an <classname>AMQPExchangeException</classname> on failure. </para> </refsect1>

« previous php.doc.cvs (#7703) next »