<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Commit a pending transaction</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="class.amqpchannel.html">AMQPChannel</a></div> <div class="next" style="text-align: right; float: right;"><a href="amqpchannel.construct.html">AMQPChannel::__construct</a></div> <div class="up"><a href="class.amqpchannel.html">AMQPChannel</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="amqpchannel.committransaction" class="refentry"> <div class="refnamediv"> <h1 class="refname">AMQPChannel::commitTransaction</h1> <p class="verinfo">(No version information available, might only be in SVN)</p><p class="refpurpose"><span class="refname">AMQPChannel::commitTransaction</span> — <span class="dc-title">Commit a pending transaction</span></p> </div> <div class="refsect1 description" id="refsect1-amqpchannel.committransaction-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="type"><span class="type void">void</span></span> <span class="methodname"><strong>AMQPChannel::commitTransaction</strong></span> ( <span class="methodparam">void</span> )</div> <p class="para rdfs-comment"> Commit an existing transaction. <span class="methodname"><a href="amqpchannel.starttransaction.html" class="methodname">AMQPChannel::startTransaction()</a></span> must be called prior to this. </p> </div> <div class="refsect1 errors" id="refsect1-amqpchannel.committransaction-errors"> <h3 class="title">Errors/Exceptions</h3> <p class="para"> Throws <strong class="classname">AMQPChannelException</strong> exception if no transaction was started prior to calling this method. </p> <p class="para"> Throws <strong class="classname">AMQPConnectionException</strong> if the connection to the broker was lost. </p> </div> <div class="refsect1 parameters" id="refsect1-amqpchannel.committransaction-parameters"> <h3 class="title">Parameters</h3> <p class="para">This function has no parameters.</p> </div> <div class="refsect1 returnvalues" id="refsect1-amqpchannel.committransaction-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> Returns <strong><code>TRUE</code></strong> on success or <strong><code>FALSE</code></strong> on failure. </p> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="class.amqpchannel.html">AMQPChannel</a></div> <div class="next" style="text-align: right; float: right;"><a href="amqpchannel.construct.html">AMQPChannel::__construct</a></div> <div class="up"><a href="class.amqpchannel.html">AMQPChannel</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>