downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

Our source is open

The syntax highlighted source is automatically generated by PHP from the plaintext script. If you're interested in what's behind the several functions we used, you can always take a look at the source of the following files:

Of course, if you want to see the source of this page, we have it available. You can also browse the Git repository for this website on git.php.net.

Source of: /manual/fa/function.dbplus-getlock.php

<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once
dirname(__FILE__) ."/toc/ref.dbplus.inc";
$setup = array (
 
'home' =>
  array (
   
0 => 'index.php',
   
1 => 'PHP Manual',
  ),
 
'head' =>
  array (
   
0 => 'UTF-8',
   
1 => 'fa',
  ),
 
'this' =>
  array (
   
0 => 'function.dbplus-getlock.php',
   
1 => 'dbplus_getlock',
  ),
 
'up' =>
  array (
   
0 => 'ref.dbplus.php',
   
1 => 'DB++ Functions',
  ),
 
'prev' =>
  array (
   
0 => 'function.dbplus-freerlocks.php',
   
1 => 'dbplus_freerlocks',
  ),
 
'next' =>
  array (
   
0 => 'function.dbplus-getunique.php',
   
1 => 'dbplus_getunique',
  ),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);

manual_header();
?>
<div id="function.dbplus-getlock" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">dbplus_getlock</h1>
  <p class="verinfo">(PHP 4 &lt;= 4.1.0, PECL dbplus &gt;= 0.9)</p><p class="refpurpose"><span class="refname">dbplus_getlock</span> &mdash; <span class="dc-title">Get a write lock on a tuple</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.dbplus-getlock-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">int</span> <span class="methodname"><b>dbplus_getlock</b></span>
    ( <span class="methodparam"><span class="type">resource</span> <tt class="parameter">$relation</tt></span>
   , <span class="methodparam"><span class="type">string</span> <tt class="parameter">$tuple</tt></span>
   )</div>

  <p class="para rdfs-comment">
   Requests a write lock on the specified <i><tt class="parameter">tuple</tt></i>.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.dbplus-getlock-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">
   <dl>

    <dt>

     <span class="term"><i><tt class="parameter">relation</tt></i></span>
     <dd>

      <p class="para">
       A relation opened by <span class="function"><a href="function.dbplus-open.php" class="function">dbplus_open()</a></span>.
      </p>
     </dd>

    </dt>

    <dt>

     <span class="term"><i><tt class="parameter">tuple</tt></i></span>
     <dd>

      <p class="para">
      </p>
     </dd>

    </dt>

   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.dbplus-getlock-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   Returns zero on success or a non-zero error code, especially
   <b><tt>DBPLUS_ERR_WLOCKED</tt></b> on failure.
  </p>
 </div>


 <div class="refsect1 notes" id="refsect1-function.dbplus-getlock-notes">
  <h3 class="title">Notes</h3>
  <div class="warning"><b class="warning">Warning</b><p class="simpara">This function is
<em class="emphasis">EXPERIMENTAL</em>. The behaviour of this function, its name, and
surrounding documentation may change without notice in a future release of PHP.
This function should be used at your own risk.
</p></div>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.dbplus-getlock-seealso">
  <h3 class="title">See Also</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="function.dbplus-freelock.php" class="function" rel="rdfs-seeAlso">dbplus_freelock()</a> - آزاد کردن قفل نوشتن چندتایی</span></li>
    <li class="member"><span class="function"><a href="function.dbplus-freerlocks.php" class="function" rel="rdfs-seeAlso">dbplus_freerlocks()</a> - آزاد کردن تمام قفل&zwnj;های رابطه داده شده</span></li>
    <li class="member"><span class="function"><a href="function.dbplus-freealllocks.php" class="function" rel="rdfs-seeAlso">dbplus_freealllocks()</a> - آزاد کردن تمام قفل&zwnj;های این کلاینت</span></li>
   </ul>
  </p>
 </div>


</div><?php manual_footer(); ?>
 
show source | credits | sitemap | contact | advertising | mirror sites