<?php include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc'; $TOC = array(); $TOC_DEPRECATED = array(); $PARENTS = array(); include_once dirname(__FILE__) ."/toc/class.sqlite3.inc"; $setup = array ( 'home' => array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'sqlite3.busytimeout.php', 1 => 'SQLite3::busyTimeout', 2 => 'Sets the busy connection handler', ), 'up' => array ( 0 => 'class.sqlite3.php', 1 => 'SQLite3', ), 'prev' => array ( 0 => 'sqlite3.backup.php', 1 => 'SQLite3::backup', ), 'next' => array ( 0 => 'sqlite3.changes.php', 1 => 'SQLite3::changes', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/sqlite3/sqlite3/busyTimeout.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?> <div id="sqlite3.busytimeout" class="refentry"> <div class="refnamediv"> <h1 class="refname">SQLite3::busyTimeout</h1> <p class="verinfo">(PHP 5 >= 5.3.3, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">SQLite3::busyTimeout</span> — <span class="dc-title">Sets the busy connection handler</span></p> </div> <div class="refsect1 description" id="refsect1-sqlite3.busytimeout-description"> <h3 class="title">说明</h3> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="methodname"><strong>SQLite3::busyTimeout</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$milliseconds</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div> <p class="para rdfs-comment"> Sets a busy handler that will sleep until the database is not locked or the timeout is reached. </p> </div> <div class="refsect1 parameters" id="refsect1-sqlite3.busytimeout-parameters"> <h3 class="title">参数</h3> <p class="para"> <dl> <dt><code class="parameter">milliseconds</code></dt> <dd> <p class="para"> The milliseconds to sleep. Setting this value to a value less than or equal to zero, will turn off an already set timeout handler. </p> </dd> </dl> </p> </div> <div class="refsect1 returnvalues" id="refsect1-sqlite3.busytimeout-returnvalues"> <h3 class="title">返回值</h3> <p class="para"> Returns <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> on success, 或者在失败时返回 <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>. </p> </div> </div><?php manual_footer($setup); ?>