Пример #1
0
 /**
  * Start a transaction.
  *
  * This method must be called on the given channel prior to calling
  * AMQPChannel::commitTransaction() or AMQPChannel::rollbackTransaction().
  *
  * @throws AMQPConnectionException If the connection to the broker was lost.
  *
  * @return bool TRUE on success or FALSE on failure.
  */
 public function startTransaction()
 {
     $this->channel->tx_select();
     $this->tx = true;
 }