cvs: phpdoc-pl /reference/ibase/functions ibase-affected-rows.xml ibase-fetch-assoc.xml ibase-fetch-object.xml ibase-fetch-row.xml
ibase-name-result.xml ibase-prepare.xml ibase-set-event-handler.xml
| From: | Adam Major | Date: | Tue, 23 Jan 2007 12:11:04 +0000 |
| Subject: | cvs: phpdoc-pl /reference/ibase/functions ibase-affected-rows.xml ibase-fetch-assoc.xml ibase-fetch-object.xml ibase-fetch-row.xml ibase-name-result.xml ibase-prepare.xml ibase-set-event-handler.xml |
||
| Groups: | php.doc.pl | ||
| Request: | Send a blank email to doc-pl+get-1006@lists.php.net to get a copy of this message | ||
adi Tue Jan 23 12:11:04 2007 UTC
Added files:
/phpdoc-pl/reference/ibase/functions ibase-affected-rows.xml
ibase-fetch-assoc.xml
ibase-fetch-object.xml
ibase-fetch-row.xml
ibase-name-result.xml
ibase-prepare.xml
ibase-set-event-handler.xml
Log:
[joeaccord] New files
http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/ibase/functions/ibase-affected-rows.xml?view=markup&rev=1.1 Index: phpdoc-pl/reference/ibase/functions/ibase-affected-rows.xml +++ phpdoc-pl/reference/ibase/functions/ibase-affected-rows.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.3 Maintainer: joeaccord Status: ready --> <!-- $Revision: 1.1 $ --> <refentry id="function.ibase-affected-rows"> <refnamediv> <refname>ibase_affected_rows</refname> <refpurpose> Zwraca ilo¶æ wierszy przetworzonych przez ostatnie zapytanie </refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>int</type><methodname>ibase_affected_rows</methodname> <methodparam choice="opt"><type>resource</type><parameter>identyfikator</parameter></methodparam> </methodsynopsis> <para> Ta funkcja zwraca ilo¶æ wierszy przetworzonych przez ostatnie zapytanie (INSERT, UPDATE lub DELETE), które zosta³o wykonane w kontek¶cie transakcji okre¶lonej przez <parameter>identyfikator</parameter>. Je¶li <parameter>identyfikator</parameter> jest identyfikatorem po³±czenia, u¿ywana jest domy¶lna transakcja. </para> <para> Patrz tak¿e: <function>ibase_query</function> i <function>ibase_execute</function>. </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:"../../../../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 --> http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/ibase/functions/ibase-fetch-assoc.xml?view=markup&rev=1.1 Index: phpdoc-pl/reference/ibase/functions/ibase-fetch-assoc.xml +++ phpdoc-pl/reference/ibase/functions/ibase-fetch-assoc.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.3 Maintainer: joeaccord Status: ready --> <!-- $Revision: 1.1 $ --> <refentry id="function.ibase-fetch-assoc"> <refnamediv> <refname>ibase_fetch_assoc</refname> <refpurpose> Pobiera wiersz wyniku zapytania w postaci tablicy asocjacyjnej </refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>array</type><methodname>ibase_fetch_assoc</methodname> <methodparam><type>resource</type><parameter>identyfikator_wyniku</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>flaga_pobrania</parameter></methodparam> </methodsynopsis> <para> <function>ibase_fetch_assoc</function> zwraca tablicê asocjacyjn±, która jest odpowiednikiem pobranego wiersza. Kolejne wywo³anie zwróci nastêpny wiersz ze zbioru wynikowego, lub &false; je¶li nie ma ju¿ wiêcej wierszy. </para> <para> <function>ibase_fetch_assoc</function> pobiera jeden wiersz danych z <parameter>identyfikatora_wyniku</parameter>. Je¶li dwie lub wiêcej kolumn tego samego wyniku maj± takie same nazwy pól, zostan± zapisane warto¶ci z ostatnich kolumn. Aby uzyskaæ dostêp do warto¶ci ró¿nych kolumn o tych samych nazwach, powiniene¶ pobraæ wynik do tablicy z indeksami numerycznymi u¿ywaj±c <function>ibase_fetch_row</function> lub stosowac aliasy nazw w Twoich zapytaniach. </para> <para> <parameter>flaga_pobrania</parameter> jest kombinacj± sta³ych IBASE_TEXT i IBASE_UNIXTIME ³±czonych ze sob± przy pomocy operatora sumy bitowej. Przekazanie sta³ej IBASE_TEXT powoduje, ¿e ta funkcja zwraca zawarto¶æ BLOBa zamiast identyfikatora BLOBa. Przekazanie sta³ej IBASE_UNIXTIME powoduje, ¿e ta funkcja zwraca warto¶ci daty/czasu w postaci unixowego znacznika czasu zamiast sformatowanego ³añcucha. </para> <para> Patrz tak¿e: <function>ibase_fetch_row</function> i <function>ibase_fetch_object</function>. </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:"../../../../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 --> http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/ibase/functions/ibase-fetch-object.xml?view=markup&rev=1.1 Index: phpdoc-pl/reference/ibase/functions/ibase-fetch-object.xml +++ phpdoc-pl/reference/ibase/functions/ibase-fetch-object.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.8 Maintainer: joeaccord Status: ready --> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/ibase.xml, last change in rev 1.9 --> <refentry id="function.ibase-fetch-object"> <refnamediv> <refname>ibase_fetch_object</refname> <refpurpose>Pobiera wiersz wyniku zapytania w postaci obiektu</refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>object</type><methodname>ibase_fetch_object</methodname> <methodparam><type>resource</type><parameter>identyfikator_wyniku</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>flaga_pobrania</parameter></methodparam> </methodsynopsis> <para> Pobiera wiersz w postaci obiektu z <parameter>identyfikatora_wyniku</parameter> uzyskanego wcze¶niej przez wywo³anie <function>ibase_query</function> lub <function>ibase_execute</function>. <informalexample> <programlisting role="php"> <![CDATA[ <?php $dbh = ibase_connect($host, $username, $password); $stmt = 'SELECT * FROM tabela'; $sth = ibase_query($dbh, $stmt); while ($row = ibase_fetch_object($sth)) { echo $row->EMAIL . "\n"; } ibase_close($dbh); ?> ]]> </programlisting> </informalexample> </para> <para> Kolejne wywo³anie <function>ibase_fetch_object</function> zwróci nastêpny wiersz ze zbioru wynikowego, lub &false; je¶li nie ma ju¿ wiêcej wierszy. </para> <para> <parameter>flaga_pobrania</parameter> jest kombinacj± sta³ych IBASE_TEXT i IBASE_UNIXTIME ³±czonych ze sob± przy pomocy operatora sumy bitowej. Przekazanie sta³ej IBASE_TEXT powoduje, ¿e ta funkcja zwraca zawarto¶æ BLOBa zamiast identyfikatora BLOBa. Przekazanie sta³ej IBASE_UNIXTIME powoduje, ¿e ta funkcja zwraca warto¶ci daty/czasu w postaci unixowego znacznika czasu zamiast sformatowanego ³añcucha. </para> <para> Patrz tak¿e: <function>ibase_fetch_row</function> i <function>ibase_fetch_assoc</function>. </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:"../../../../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 --> http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/ibase/functions/ibase-fetch-row.xml?view=markup&rev=1.1 Index: phpdoc-pl/reference/ibase/functions/ibase-fetch-row.xml +++ phpdoc-pl/reference/ibase/functions/ibase-fetch-row.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.6 Maintainer: joeaccord Status: ready --> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/ibase.xml, last change in rev 1.2 --> <refentry id="function.ibase-fetch-row"> <refnamediv> <refname>ibase_fetch_row</refname> <refpurpose>Pobiera wiersz wyniku zapytania w postaci tablicy numerycznej</refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>array</type><methodname>ibase_fetch_row</methodname> <methodparam><type>resource</type><parameter>identyfikator_wyniku</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>flaga_pobrania</parameter></methodparam> </methodsynopsis> <para> Zwraca tablicê numeryczn±, która jest odpowiednikiem pobranego wiersza, lub &false; je¶li nie ma ju¿ wiêcej wierszy. </para> <para> <function>ibase_fetch_row</function> pobiera jeden wiersz danych z wyniku skojarzonego z podanym <parameter>identyfikatorem_wyniku</parameter>. Wiersz zwracany jest w postaci tablicy. Warto¶ci kolumn s± umieszczane na kolejnych pozycjach tablicy, zaczynaj±c od 0. </para> <para> Kolejne wywo³anie <function>ibase_fetch_row</function> zwróci nastêpny wiersz ze zbioru wynikowego, lub &false; je¶li nie ma ju¿ wiêcej wierszy. </para> <para> <parameter>flaga_pobrania</parameter> jest kombinacj± sta³ych IBASE_TEXT i IBASE_UNIXTIME ³±czonych ze sob± przy pomocy operatora sumy bitowej. Przekazanie sta³ej IBASE_TEXT powoduje, ¿e ta funkcja zwraca zawarto¶æ BLOBa zamiast identyfikatora BLOBa. Przekazanie sta³ej IBASE_UNIXTIME powoduje, ¿e ta funkcja zwraca warto¶ci daty/czasu w postaci unixowego znacznika czasu zamiast sformatowanego ³añcucha. </para> <para> Patrz ta¿e: <function>ibase_fetch_assoc</function> i <function>ibase_fetch_object</function>. </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:"../../../../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 --> http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/ibase/functions/ibase-name-result.xml?view=markup&rev=1.1 Index: phpdoc-pl/reference/ibase/functions/ibase-name-result.xml +++ phpdoc-pl/reference/ibase/functions/ibase-name-result.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.3 Maintainer: joeaccord Status: ready --> <!-- $Revision: 1.1 $ --> <refentry id="function.ibase-name-result"> <refnamediv> <refname>ibase_name_result</refname> <refpurpose> Przypisuje nazwê do zbioru wynikowego </refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>bool</type><methodname>ibase_name_result</methodname> <methodparam><type>resource</type><parameter>wynik</parameter></methodparam> <methodparam><type>string</type><parameter>nazwa</parameter></methodparam> </methodsynopsis> <para> Ta funkcja przypisuje nazwê do wyniku. Nazwa mo¿e byæ pó¼niej u¿ywana w segmentach: UPDATE|DELETE ... WHERE CURRENT OF <parameter>nazwa</parameter>. &return.success; <informalexample> <programlisting role="php"> <![CDATA[ <?php $result = ibase_query("SELECT pole1,pole2 FROM tabela FOR UPDATE"); ibase_name_result($result, "moj_kursor"); $updateqry = ibase_prepare("UPDATE tabela SET pole2 = ? WHERE CURRENT OF moj_kursor"); for ($i = 0; ibase_fetch_row($result); ++$i) { ibase_execute($updateqry, $i); } ?> ]]> </programlisting> </informalexample> </para> <para> Patrz tak¿e: <function>ibase_prepare</function> i <function>ibase_execute</function>. </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:"../../../../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 --> http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/ibase/functions/ibase-prepare.xml?view=markup&rev=1.1 Index: phpdoc-pl/reference/ibase/functions/ibase-prepare.xml +++ phpdoc-pl/reference/ibase/functions/ibase-prepare.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.4 Maintainer: joeaccord Status: ready --> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/ibase.xml, last change in rev 1.2 --> <refentry id="function.ibase-prepare"> <refnamediv> <refname>ibase_prepare</refname> <refpurpose> Przygotowuje zapytanie do pó¼niejszego dowi±zania argumentów w postaci zmiennych i do wykonania </refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>resource</type><methodname>ibase_prepare</methodname> <methodparam><type>string</type><parameter>zapytanie</parameter></methodparam> </methodsynopsis> <methodsynopsis> <type>resource</type><methodname>ibase_prepare</methodname> <methodparam><type>resource</type><parameter>identyfikator_po³±czenia</parameter></methodparam> <methodparam><type>string</type><parameter>zapytanie</parameter></methodparam> </methodsynopsis> <methodsynopsis> <type>resource</type><methodname>ibase_prepare</methodname> <methodparam><type>resource</type><parameter>identyfikator_po³±czenia</parameter></methodparam> <methodparam><type>string</type><parameter>transakcja</parameter></methodparam> <methodparam><type>string</type><parameter>zapytanie</parameter></methodparam> </methodsynopsis> <simpara> Przygotowuje zapytanie do pó¼niejszego dowi±zania argumentów w postaci zmiennych i do wykonania (przez <function>ibase_execute</function>). </simpara> </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:"../../../../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 --> http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/ibase/functions/ibase-set-event-handler.xml?view=markup&rev=1.1 Index: phpdoc-pl/reference/ibase/functions/ibase-set-event-handler.xml +++ phpdoc-pl/reference/ibase/functions/ibase-set-event-handler.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.8 Maintainer: joeaccord Status: ready --> <!-- $Revision: 1.1 $ --> <refentry id="function.ibase-set-event-handler"> <refnamediv> <refname>ibase_set_event_handler</refname> <refpurpose> Rejestruje funkcjê zwrotn± wywo³ywan± podczas wystêpowania zadarzeñ </refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>resource</type><methodname>ibase_set_event_handler</methodname> <methodparam><type>callback</type><parameter>nazwa_funkcji_zwrotnej</parameter></methodparam> <methodparam><type>string</type><parameter>nazwa_zdarzenia1</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>nazwa_zdarzenia2</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>...</parameter></methodparam> </methodsynopsis> <methodsynopsis> <type>resource</type><methodname>ibase_set_event_handler</methodname> <methodparam><type>resource</type><parameter>po³±czenie</parameter></methodparam> <methodparam><type>callback</type><parameter>nazwa_funkcji_zwrotnej</parameter></methodparam> <methodparam><type>string</type><parameter>nazwa_zdarzenia1</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>nazwa_zdarzenia2</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>...</parameter></methodparam> </methodsynopsis> <para> Ta funkcja rejestruje funkcjê u¿ytkownika PHP do obs³ugi zdarzeñ. Funkcja zwrotna jest wywo³ywana z argumentami nazwa_zdarzenia i identyfikator_po³±czenia gdy tylko baza danych prze¶le informacjê o wyst±pieniu jednego z okre¶lonych zdarzeñ. Aby obs³uga zdarzenia zosta³a wyrejestrowana, funkcja zwrotna musi zwróciæ &false;. Ka¿da inna zwracana warto¶æ jest ignorowana. Funkcja akceptuje maksymalnie 15 argumentów nazwa_zdarzenia. </para> <para> <informalexample> <programlisting role="php"> <![CDATA[ <?php function funkcja_zwrotna($nazwa_zdarzenia, $link) { if ($nazwa_zdarzenia=="NEW_ORDER") { // przetwarzanie NEW_ORDER ibase_query($link, "UPDATE orders SET status='handled'"); } else if ($nazwa_zdarzenia=="DB_SHUTDOWN") { // wyrejestruj funkcjê zwrotn± return false; } } ibase_set_event_handler($link, "funkcja_zwrotna", "NEW_ORDER", "DB_SHUTDOWN"); ?> ]]> </programlisting> </informalexample> </para> <para> Zwracana warto¶æ jest identyfikatorem zdarzenia. Identyfikator mo¿e byc u¿yty do odwo³ania funkcji obs³ugi zdarzenia przez <function>ibase_free_event_handler</function>. </para> <para> Patrz tak¿e: <function>ibase_free_event_handler</function> i <function>ibase_wait_event</function>. </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:"../../../../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 -->
http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/ibase/functions/ibase-affected-rows.xml?view=markup&rev=1.1 Index: phpdoc-pl/reference/ibase/functions/ibase-affected-rows.xml +++ phpdoc-pl/reference/ibase/functions/ibase-affected-rows.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.3 Maintainer: joeaccord Status: ready --> <!-- $Revision: 1.1 $ --> <refentry id="function.ibase-affected-rows"> <refnamediv> <refname>ibase_affected_rows</refname> <refpurpose> Zwraca ilo¶æ wierszy przetworzonych przez ostatnie zapytanie </refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>int</type><methodname>ibase_affected_rows</methodname> <methodparam choice="opt"><type>resource</type><parameter>identyfikator</parameter></methodparam> </methodsynopsis> <para> Ta funkcja zwraca ilo¶æ wierszy przetworzonych przez ostatnie zapytanie (INSERT, UPDATE lub DELETE), które zosta³o wykonane w kontek¶cie transakcji okre¶lonej przez <parameter>identyfikator</parameter>. Je¶li <parameter>identyfikator</parameter> jest identyfikatorem po³±czenia, u¿ywana jest domy¶lna transakcja. </para> <para> Patrz tak¿e: <function>ibase_query</function> i <function>ibase_execute</function>. </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:"../../../../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 --> http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/ibase/functions/ibase-fetch-assoc.xml?view=markup&rev=1.1 Index: phpdoc-pl/reference/ibase/functions/ibase-fetch-assoc.xml +++ phpdoc-pl/reference/ibase/functions/ibase-fetch-assoc.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.3 Maintainer: joeaccord Status: ready --> <!-- $Revision: 1.1 $ --> <refentry id="function.ibase-fetch-assoc"> <refnamediv> <refname>ibase_fetch_assoc</refname> <refpurpose> Pobiera wiersz wyniku zapytania w postaci tablicy asocjacyjnej </refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>array</type><methodname>ibase_fetch_assoc</methodname> <methodparam><type>resource</type><parameter>identyfikator_wyniku</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>flaga_pobrania</parameter></methodparam> </methodsynopsis> <para> <function>ibase_fetch_assoc</function> zwraca tablicê asocjacyjn±, która jest odpowiednikiem pobranego wiersza. Kolejne wywo³anie zwróci nastêpny wiersz ze zbioru wynikowego, lub &false; je¶li nie ma ju¿ wiêcej wierszy. </para> <para> <function>ibase_fetch_assoc</function> pobiera jeden wiersz danych z <parameter>identyfikatora_wyniku</parameter>. Je¶li dwie lub wiêcej kolumn tego samego wyniku maj± takie same nazwy pól, zostan± zapisane warto¶ci z ostatnich kolumn. Aby uzyskaæ dostêp do warto¶ci ró¿nych kolumn o tych samych nazwach, powiniene¶ pobraæ wynik do tablicy z indeksami numerycznymi u¿ywaj±c <function>ibase_fetch_row</function> lub stosowac aliasy nazw w Twoich zapytaniach. </para> <para> <parameter>flaga_pobrania</parameter> jest kombinacj± sta³ych IBASE_TEXT i IBASE_UNIXTIME ³±czonych ze sob± przy pomocy operatora sumy bitowej. Przekazanie sta³ej IBASE_TEXT powoduje, ¿e ta funkcja zwraca zawarto¶æ BLOBa zamiast identyfikatora BLOBa. Przekazanie sta³ej IBASE_UNIXTIME powoduje, ¿e ta funkcja zwraca warto¶ci daty/czasu w postaci unixowego znacznika czasu zamiast sformatowanego ³añcucha. </para> <para> Patrz tak¿e: <function>ibase_fetch_row</function> i <function>ibase_fetch_object</function>. </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:"../../../../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 --> http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/ibase/functions/ibase-fetch-object.xml?view=markup&rev=1.1 Index: phpdoc-pl/reference/ibase/functions/ibase-fetch-object.xml +++ phpdoc-pl/reference/ibase/functions/ibase-fetch-object.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.8 Maintainer: joeaccord Status: ready --> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/ibase.xml, last change in rev 1.9 --> <refentry id="function.ibase-fetch-object"> <refnamediv> <refname>ibase_fetch_object</refname> <refpurpose>Pobiera wiersz wyniku zapytania w postaci obiektu</refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>object</type><methodname>ibase_fetch_object</methodname> <methodparam><type>resource</type><parameter>identyfikator_wyniku</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>flaga_pobrania</parameter></methodparam> </methodsynopsis> <para> Pobiera wiersz w postaci obiektu z <parameter>identyfikatora_wyniku</parameter> uzyskanego wcze¶niej przez wywo³anie <function>ibase_query</function> lub <function>ibase_execute</function>. <informalexample> <programlisting role="php"> <![CDATA[ <?php $dbh = ibase_connect($host, $username, $password); $stmt = 'SELECT * FROM tabela'; $sth = ibase_query($dbh, $stmt); while ($row = ibase_fetch_object($sth)) { echo $row->EMAIL . "\n"; } ibase_close($dbh); ?> ]]> </programlisting> </informalexample> </para> <para> Kolejne wywo³anie <function>ibase_fetch_object</function> zwróci nastêpny wiersz ze zbioru wynikowego, lub &false; je¶li nie ma ju¿ wiêcej wierszy. </para> <para> <parameter>flaga_pobrania</parameter> jest kombinacj± sta³ych IBASE_TEXT i IBASE_UNIXTIME ³±czonych ze sob± przy pomocy operatora sumy bitowej. Przekazanie sta³ej IBASE_TEXT powoduje, ¿e ta funkcja zwraca zawarto¶æ BLOBa zamiast identyfikatora BLOBa. Przekazanie sta³ej IBASE_UNIXTIME powoduje, ¿e ta funkcja zwraca warto¶ci daty/czasu w postaci unixowego znacznika czasu zamiast sformatowanego ³añcucha. </para> <para> Patrz tak¿e: <function>ibase_fetch_row</function> i <function>ibase_fetch_assoc</function>. </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:"../../../../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 --> http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/ibase/functions/ibase-fetch-row.xml?view=markup&rev=1.1 Index: phpdoc-pl/reference/ibase/functions/ibase-fetch-row.xml +++ phpdoc-pl/reference/ibase/functions/ibase-fetch-row.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.6 Maintainer: joeaccord Status: ready --> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/ibase.xml, last change in rev 1.2 --> <refentry id="function.ibase-fetch-row"> <refnamediv> <refname>ibase_fetch_row</refname> <refpurpose>Pobiera wiersz wyniku zapytania w postaci tablicy numerycznej</refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>array</type><methodname>ibase_fetch_row</methodname> <methodparam><type>resource</type><parameter>identyfikator_wyniku</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>flaga_pobrania</parameter></methodparam> </methodsynopsis> <para> Zwraca tablicê numeryczn±, która jest odpowiednikiem pobranego wiersza, lub &false; je¶li nie ma ju¿ wiêcej wierszy. </para> <para> <function>ibase_fetch_row</function> pobiera jeden wiersz danych z wyniku skojarzonego z podanym <parameter>identyfikatorem_wyniku</parameter>. Wiersz zwracany jest w postaci tablicy. Warto¶ci kolumn s± umieszczane na kolejnych pozycjach tablicy, zaczynaj±c od 0. </para> <para> Kolejne wywo³anie <function>ibase_fetch_row</function> zwróci nastêpny wiersz ze zbioru wynikowego, lub &false; je¶li nie ma ju¿ wiêcej wierszy. </para> <para> <parameter>flaga_pobrania</parameter> jest kombinacj± sta³ych IBASE_TEXT i IBASE_UNIXTIME ³±czonych ze sob± przy pomocy operatora sumy bitowej. Przekazanie sta³ej IBASE_TEXT powoduje, ¿e ta funkcja zwraca zawarto¶æ BLOBa zamiast identyfikatora BLOBa. Przekazanie sta³ej IBASE_UNIXTIME powoduje, ¿e ta funkcja zwraca warto¶ci daty/czasu w postaci unixowego znacznika czasu zamiast sformatowanego ³añcucha. </para> <para> Patrz ta¿e: <function>ibase_fetch_assoc</function> i <function>ibase_fetch_object</function>. </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:"../../../../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 --> http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/ibase/functions/ibase-name-result.xml?view=markup&rev=1.1 Index: phpdoc-pl/reference/ibase/functions/ibase-name-result.xml +++ phpdoc-pl/reference/ibase/functions/ibase-name-result.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.3 Maintainer: joeaccord Status: ready --> <!-- $Revision: 1.1 $ --> <refentry id="function.ibase-name-result"> <refnamediv> <refname>ibase_name_result</refname> <refpurpose> Przypisuje nazwê do zbioru wynikowego </refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>bool</type><methodname>ibase_name_result</methodname> <methodparam><type>resource</type><parameter>wynik</parameter></methodparam> <methodparam><type>string</type><parameter>nazwa</parameter></methodparam> </methodsynopsis> <para> Ta funkcja przypisuje nazwê do wyniku. Nazwa mo¿e byæ pó¼niej u¿ywana w segmentach: UPDATE|DELETE ... WHERE CURRENT OF <parameter>nazwa</parameter>. &return.success; <informalexample> <programlisting role="php"> <![CDATA[ <?php $result = ibase_query("SELECT pole1,pole2 FROM tabela FOR UPDATE"); ibase_name_result($result, "moj_kursor"); $updateqry = ibase_prepare("UPDATE tabela SET pole2 = ? WHERE CURRENT OF moj_kursor"); for ($i = 0; ibase_fetch_row($result); ++$i) { ibase_execute($updateqry, $i); } ?> ]]> </programlisting> </informalexample> </para> <para> Patrz tak¿e: <function>ibase_prepare</function> i <function>ibase_execute</function>. </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:"../../../../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 --> http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/ibase/functions/ibase-prepare.xml?view=markup&rev=1.1 Index: phpdoc-pl/reference/ibase/functions/ibase-prepare.xml +++ phpdoc-pl/reference/ibase/functions/ibase-prepare.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.4 Maintainer: joeaccord Status: ready --> <!-- $Revision: 1.1 $ --> <!-- splitted from ./en/functions/ibase.xml, last change in rev 1.2 --> <refentry id="function.ibase-prepare"> <refnamediv> <refname>ibase_prepare</refname> <refpurpose> Przygotowuje zapytanie do pó¼niejszego dowi±zania argumentów w postaci zmiennych i do wykonania </refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>resource</type><methodname>ibase_prepare</methodname> <methodparam><type>string</type><parameter>zapytanie</parameter></methodparam> </methodsynopsis> <methodsynopsis> <type>resource</type><methodname>ibase_prepare</methodname> <methodparam><type>resource</type><parameter>identyfikator_po³±czenia</parameter></methodparam> <methodparam><type>string</type><parameter>zapytanie</parameter></methodparam> </methodsynopsis> <methodsynopsis> <type>resource</type><methodname>ibase_prepare</methodname> <methodparam><type>resource</type><parameter>identyfikator_po³±czenia</parameter></methodparam> <methodparam><type>string</type><parameter>transakcja</parameter></methodparam> <methodparam><type>string</type><parameter>zapytanie</parameter></methodparam> </methodsynopsis> <simpara> Przygotowuje zapytanie do pó¼niejszego dowi±zania argumentów w postaci zmiennych i do wykonania (przez <function>ibase_execute</function>). </simpara> </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:"../../../../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 --> http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/ibase/functions/ibase-set-event-handler.xml?view=markup&rev=1.1 Index: phpdoc-pl/reference/ibase/functions/ibase-set-event-handler.xml +++ phpdoc-pl/reference/ibase/functions/ibase-set-event-handler.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.8 Maintainer: joeaccord Status: ready --> <!-- $Revision: 1.1 $ --> <refentry id="function.ibase-set-event-handler"> <refnamediv> <refname>ibase_set_event_handler</refname> <refpurpose> Rejestruje funkcjê zwrotn± wywo³ywan± podczas wystêpowania zadarzeñ </refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>resource</type><methodname>ibase_set_event_handler</methodname> <methodparam><type>callback</type><parameter>nazwa_funkcji_zwrotnej</parameter></methodparam> <methodparam><type>string</type><parameter>nazwa_zdarzenia1</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>nazwa_zdarzenia2</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>...</parameter></methodparam> </methodsynopsis> <methodsynopsis> <type>resource</type><methodname>ibase_set_event_handler</methodname> <methodparam><type>resource</type><parameter>po³±czenie</parameter></methodparam> <methodparam><type>callback</type><parameter>nazwa_funkcji_zwrotnej</parameter></methodparam> <methodparam><type>string</type><parameter>nazwa_zdarzenia1</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>nazwa_zdarzenia2</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>...</parameter></methodparam> </methodsynopsis> <para> Ta funkcja rejestruje funkcjê u¿ytkownika PHP do obs³ugi zdarzeñ. Funkcja zwrotna jest wywo³ywana z argumentami nazwa_zdarzenia i identyfikator_po³±czenia gdy tylko baza danych prze¶le informacjê o wyst±pieniu jednego z okre¶lonych zdarzeñ. Aby obs³uga zdarzenia zosta³a wyrejestrowana, funkcja zwrotna musi zwróciæ &false;. Ka¿da inna zwracana warto¶æ jest ignorowana. Funkcja akceptuje maksymalnie 15 argumentów nazwa_zdarzenia. </para> <para> <informalexample> <programlisting role="php"> <![CDATA[ <?php function funkcja_zwrotna($nazwa_zdarzenia, $link) { if ($nazwa_zdarzenia=="NEW_ORDER") { // przetwarzanie NEW_ORDER ibase_query($link, "UPDATE orders SET status='handled'"); } else if ($nazwa_zdarzenia=="DB_SHUTDOWN") { // wyrejestruj funkcjê zwrotn± return false; } } ibase_set_event_handler($link, "funkcja_zwrotna", "NEW_ORDER", "DB_SHUTDOWN"); ?> ]]> </programlisting> </informalexample> </para> <para> Zwracana warto¶æ jest identyfikatorem zdarzenia. Identyfikator mo¿e byc u¿yty do odwo³ania funkcji obs³ugi zdarzenia przez <function>ibase_free_event_handler</function>. </para> <para> Patrz tak¿e: <function>ibase_free_event_handler</function> i <function>ibase_wait_event</function>. </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:"../../../../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 -->