mirror of
https://github.com/php/doc-ru.git
synced 2025-08-20 23:31:15 +00:00

git-svn-id: https://svn.php.net/repository/phpdoc/ru/trunk@347191 c90b9560-bf6c-de11-be94-00142212c4b1
119 lines
3.8 KiB
XML
119 lines
3.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
||
<!-- $Revision$ -->
|
||
<!-- EN-Revision: 96c9d88bad9a7d7d44bfb7f26c226df7ee9ddf26 Maintainer: sergey Status: ready -->
|
||
<!-- Reviewed: no -->
|
||
|
||
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.ibase-fetch-object">
|
||
<refnamediv>
|
||
<refname>ibase_fetch_object</refname>
|
||
<refpurpose>Получает объект из базы данных InterBase</refpurpose>
|
||
</refnamediv>
|
||
|
||
<refsect1 role="description">
|
||
&reftitle.description;
|
||
<methodsynopsis>
|
||
<type>object</type><methodname>ibase_fetch_object</methodname>
|
||
<methodparam><type>resource</type><parameter>result_id</parameter></methodparam>
|
||
<methodparam choice="opt"><type>int</type><parameter>fetch_flag</parameter><initializer>0</initializer></methodparam>
|
||
</methodsynopsis>
|
||
<para>
|
||
Извлекает строку как псевдообъект из заданного идентификатора результата.
|
||
</para>
|
||
<para>
|
||
Последующие вызовы <function>ibase_fetch_object</function>
|
||
вернут следующую строку в наборе результатов.
|
||
</para>
|
||
</refsect1>
|
||
|
||
<refsect1 role="parameters">
|
||
&reftitle.parameters;
|
||
<para>
|
||
<variablelist>
|
||
<varlistentry>
|
||
<term><parameter>result_id</parameter></term>
|
||
<listitem>
|
||
<para>
|
||
Идентификатор результата InterBase,
|
||
полученный с помощью <function>ibase_query</function> или <function>ibase_execute</function>.
|
||
</para>
|
||
</listitem>
|
||
</varlistentry>
|
||
<varlistentry>
|
||
<term><parameter>fetch_flag</parameter></term>
|
||
<listitem>
|
||
<para>
|
||
<parameter>fetch_flag</parameter> представляет собой комбинацию констант
|
||
<constant>IBASE_TEXT</constant> и <constant>IBASE_UNIXTIME</constant> ORed.
|
||
Передача <constant>IBASE_TEXT</constant> заставит функцию возвращать содержимое
|
||
BLOB-объектов вместо идентификаторов BLOB-объектов.
|
||
Передача <constant>IBASE_UNIXTIME</constant> заставит функцию возвращать
|
||
значения даты/времени как метки времени Unix, а не как отформатированные строки.
|
||
</para>
|
||
</listitem>
|
||
</varlistentry>
|
||
</variablelist>
|
||
</para>
|
||
</refsect1>
|
||
|
||
<refsect1 role="returnvalues">
|
||
&reftitle.returnvalues;
|
||
<para>
|
||
Возвращает объект с информацией о строке или &false;, если строк больше нет.
|
||
</para>
|
||
</refsect1>
|
||
|
||
<refsect1 role="examples">
|
||
&reftitle.examples;
|
||
<para>
|
||
<example>
|
||
<title>Пример использования <function>ibase_fetch_object</function></title>
|
||
<programlisting role="php">
|
||
<![CDATA[
|
||
<?php
|
||
$dbh = ibase_connect($host, $username, $password);
|
||
$stmt = 'SELECT * FROM tblname';
|
||
$sth = ibase_query($dbh, $stmt);
|
||
while ($row = ibase_fetch_object($sth)) {
|
||
echo $row->email . "\n";
|
||
}
|
||
ibase_close($dbh);
|
||
?>
|
||
]]>
|
||
</programlisting>
|
||
</example>
|
||
</para>
|
||
</refsect1>
|
||
|
||
<refsect1 role="seealso">
|
||
&reftitle.seealso;
|
||
<para>
|
||
<simplelist>
|
||
<member><function>ibase_fetch_row</function></member>
|
||
<member><function>ibase_fetch_assoc</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
|
||
indent-tabs-mode:nil
|
||
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
|
||
-->
|