Files
php-doc-ru/reference/sqlite/functions/sqlite-current.xml
Alexey Pyltsyn e4f0aa9df2 Upd
git-svn-id: https://svn.php.net/repository/phpdoc/ru/trunk@343990 c90b9560-bf6c-de11-be94-00142212c4b1
2018-01-28 07:19:06 +00:00

110 lines
4.1 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: b8758b0605e80c4e3610137b7502a6abeea5c69b Maintainer: shein Status: ready -->
<!-- Reviewed: no -->
<!-- $Revision$ -->
<refentry xml:id="function.sqlite-current" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>sqlite_current</refname>
<refname>SQLiteResult::current</refname>
<refname>SQLiteUnbuffered::current</refname>
<refpurpose>Возвращает текущую запись из результирующего набора в виде массива</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>array</type><methodname>sqlite_current</methodname>
<methodparam><type>resource</type><parameter>result</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>result_type</parameter><initializer>SQLITE_BOTH</initializer></methodparam>
<methodparam choice="opt"><type>bool</type><parameter>decode_binary</parameter><initializer>&true;</initializer></methodparam>
</methodsynopsis>
<para>&style.oop; (метод):</para>
<methodsynopsis>
<type>array</type><methodname>SQLiteResult::current</methodname>
<methodparam choice="opt"><type>int</type><parameter>result_type</parameter><initializer>SQLITE_BOTH</initializer></methodparam>
<methodparam choice="opt"><type>bool</type><parameter>decode_binary</parameter><initializer>&true;</initializer></methodparam>
</methodsynopsis>
<methodsynopsis>
<type>array</type><methodname>SQLiteUnbuffered::current</methodname>
<methodparam choice="opt"><type>int</type><parameter>result_type</parameter><initializer>SQLITE_BOTH</initializer></methodparam>
<methodparam choice="opt"><type>bool</type><parameter>decode_binary</parameter><initializer>&true;</initializer></methodparam>
</methodsynopsis>
<para>
<function>sqlite_current</function> аналогична
<function>sqlite_fetch_array</function> за исключением того, что
она не переходит к следующей записи до выборки данных, а просто
возвращает данные из текущий позиции.
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>result</parameter></term>
<listitem>
<para>
Ресурс результата SQLite. Этот параметр не требуется при
использовании объектно-ориентированного метода.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>result_type</parameter></term>
<listitem>
&sqlite.result-type;
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>decode_binary</parameter></term>
<listitem>
&sqlite.decode-bin;
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Возвращает текущую запись из результирующего набора в виде массива.
Если текущая позиция в результате запроса находится за последней записью,
эта функция возвращает &false;.
</para>
&sqlite.case-fold;
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>sqlite_seek</function></member>
<member><function>sqlite_next</function></member>
<member><function>sqlite_fetch_array</function></member>
</simplelist>
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->