<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.stomp.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'uk',
  ),
  'this' => 
  array (
    0 => 'stomp.begin.php',
    1 => 'Stomp::begin',
    2 => 'Starts a transaction',
  ),
  'up' => 
  array (
    0 => 'class.stomp.php',
    1 => 'Stomp',
  ),
  'prev' => 
  array (
    0 => 'stomp.ack.php',
    1 => 'Stomp::ack',
  ),
  'next' => 
  array (
    0 => 'stomp.commit.php',
    1 => 'Stomp::commit',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/stomp/stomp/begin.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="stomp.begin" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Stomp::begin</h1>
  <h1 class="refname">stomp_begin</h1>
  <p class="verinfo">(PECL stomp &gt;= 0.1.0)</p><p class="refpurpose"><span class="refname">Stomp::begin</span> -- <span class="refname">stomp_begin</span> &mdash; <span class="dc-title">Starts a transaction</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-stomp.begin-description">
  <h3 class="title">Опис</h3>
  <p class="para">Об&#039;єктно-орієнтований стиль (method):</p>
   <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>Stomp::begin</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$transaction_id</code></span>, <span class="methodparam"><span class="type"><a href="language.types.array.php" class="type array">array</a></span> <code class="parameter">$headers</code><span class="initializer"> = ?</span></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">Процедурний стиль:</p>
  <div class="methodsynopsis dc-description"><span class="methodname"><strong>stomp_begin</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> <code class="parameter">$link</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$transaction_id</code></span>, <span class="methodparam"><span class="type"><a href="language.types.array.php" class="type array">array</a></span> <code class="parameter">$headers</code><span class="initializer"> = ?</span></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">
   Starts a transaction.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-stomp.begin-parameters">
  <h3 class="title">Параметри</h3>
  <p class="para">
   <dl>
    <dt>
<code class="parameter">link</code></dt><dd><p class="para">Тільки процедурний стиль:
Ідентифікатор з&#039;єднання Stomp, якого повертає функція
<span class="function"><a href="stomp.construct.php" class="function">stomp_connect()</a></span>.</p></dd>
    
     <dt><code class="parameter">transaction_id</code></dt>
     <dd>
      <p class="para">
       The transaction id.     
      </p>
     </dd>
    
    <dt>
<code class="parameter">headers</code></dt><dd><p class="para">Асоціативний масив, що
містить додаткові заголовки (наприклад:
&quot;receipt&quot;).</p></dd>
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-stomp.begin-returnvalues">
  <h3 class="title">Значення, що повертаються</h3>
  <p class="para">
   Повертає <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> у разі успіху або <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> в разі помилки.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-stomp.begin-examples">
  <h3 class="title">Приклади</h3>
  <p class="para">
   See <span class="function"><a href="stomp.commit.php" class="function">stomp_commit()</a></span> or <span class="function"><a href="stomp.abort.php" class="function">stomp_abort()</a></span>.
  </p>
 </div>


 <div class="refsect1 notes" id="refsect1-stomp.begin-notes">
  <h3 class="title">Примітки</h3>
  <div class="tip"><strong class="tip">Підказка</strong><p class="simpara">Stomp за своєю суттю є
асинхронним. Синхронні з&#039;єднання можна встановлювати, додавши заголовок
&quot;receipt&quot;. Це призведе до того, що методи нічого не повертатимуть,
доки сервер не підтвердить отримання повідомлення або доки не мине час
очікування читання.</p></div>
 </div>


</div><?php manual_footer($setup); ?>