cvs: phpdoc-pl /reference/pgsql/functions pg-field-is-null.xml

From: Date: Tue, 20 May 2008 18:20:25 +0000
Subject: cvs: phpdoc-pl /reference/pgsql/functions pg-field-is-null.xml
Groups: php.doc.pl 
Request: Send a blank email to doc-pl+get-1382@lists.php.net to get a copy of this message
adi Tue May 20 18:20:25 2008 UTC Modified files: /phpdoc-pl/reference/pgsql/functions pg-field-is-null.xml Log: Update http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/pgsql/functions/pg-field-is-null.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-pl/reference/pgsql/functions/pg-field-is-null.xml diff -u phpdoc-pl/reference/pgsql/functions/pg-field-is-null.xml:1.4 phpdoc-pl/reference/pgsql/functions/pg-field-is-null.xml:1.5 --- phpdoc-pl/reference/pgsql/functions/pg-field-is-null.xml:1.4 Sat Jun 23 13:29:34 2007 +++ phpdoc-pl/reference/pgsql/functions/pg-field-is-null.xml Tue May 20 18:20:25 2008 @@ -1,51 +1,126 @@ -<?xml version="1.0" encoding="iso-8859-2"?> -<!-- EN-Revision: 1.2 Maintainer: jarek Status: ready --> -<!-- $Revision: 1.4 $--> -<!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --> - <refentry xml:id="function.pg-field-is-null" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>pg_field_is_null</refname> - <refpurpose>Sprawdza czy pole zawiera &null;</refpurpose> - </refnamediv> - <refsect1> - <title>Opis</title> - <methodsynopsis> - <type>int</type><methodname>pg_field_is_null</methodname> - <methodparam><type>resource</type><parameter>result</parameter></methodparam> - <methodparam><type>int</type><parameter>row</parameter></methodparam> - <methodparam><type>mixed</type><parameter>field</parameter></methodparam> - </methodsynopsis> - <para> - <function>pg_field_is_null</function> sprawdza czy pole zawiera &null;. - Zwraca 1 je¶li wskazane pole zawiera &null;. Zwraca 0 je¶li pole jest - ró¿ne od &null;. Pola mog± byæ okre¶lone jako indeks (numer) lub - jako nazwa kolumny (³añcuch). Wiersze s± numerowane od 0. - </para> - <note> - <para> - Ta funkcja by³a poprzednio nazwana <literal>pg_fieldisnull()</literal>. - </para> - </note> - </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 ---> +<?xml version="1.0" encoding="iso-8859-2"?> +<!-- EN-Revision: 1.10 Maintainer: garbus Status: ready --> +<!-- $Revision: 1.5 $--> +<!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --> +<!-- CREDITS: jarek --> +<refentry xml:id="function.pg-field-is-null" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>pg_field_is_null</refname> + <refpurpose>Sprawdza czy pole SQL zawiera <literal>NULL</literal></refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>int</type><methodname>pg_field_is_null</methodname> + <methodparam><type>resource</type><parameter>wynik</parameter></methodparam> + <methodparam><type>int</type><parameter>wiersz</parameter></methodparam> + <methodparam><type>mixed</type><parameter>pole</parameter></methodparam> + </methodsynopsis> + <methodsynopsis> + <type>int</type><methodname>pg_field_is_null</methodname> + <methodparam><type>resource</type><parameter>wynik</parameter></methodparam> + <methodparam><type>mixed</type><parameter>pole</parameter></methodparam> + </methodsynopsis> + <para> + <function>pg_field_is_null</function> sprawdza, czy pole identyfikatora + wyniku PostgreSQL jest warto¶ci± <literal>NULL</literal> SQL-a czy nie. + </para> + <note> + <para> + Ta funkcja by³a poprzednio nazwana <function>pg_fieldisnull</function>. + </para> + </note> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>wynik</parameter></term> + <listitem> + <para> + Identyfikator wyniku PostgreSQL-q, zwrócony przez <function>pg_query</function>, + <function>pg_query_params</function> lub <function>pg_execute</function> + (miêdzy innymi). + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>wiersz</parameter></term> + <listitem> + <para> + Numer wiersza w wyniku do pobrania. Wiersze s± numerowane od zera, w górê. Je¶li nie podano, + aktualny wiersz jest pobierany. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>pole</parameter></term> + <listitem> + <para> + Numer pola (zaczynaj±c od zera) jako typ ca³kowity (ang. <type>integer</type>) lub + nazwa pola jako ³añcuch (ang. <type>string</type>). + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Zwraca <literal>1</literal> je¶li pole w zadanym wierszu w bazie SQL jest warto¶ci± <literal>NULL</literal>, <literal>0</literal> + je¶li ni± nie jest. &false; jest zwracane, gdy podany wiersz jest poza przedzia³em, lub przez ka¿dy inny b³±d. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>pg_field_is_null</function> - przyk³ad</title> + <programlisting role="php"> +<![CDATA[ +<?php + $polaczenie = pg_connect("dbname=wydawca") or die ("Nie mo¿na siê po³±czyæ"); + $wyn = pg_query($polaczenie, "select * from autorzy where autor = 'Orwell'" + if ($wyn) { + if (pg_field_is_null($wyn, 0, "rok") == 1) { + echo "Warto¶æ pola roku jest null.\n"; + } + if (pg_field_is_null($wyn, 0, "rok") == 0) { + echo "Warto¶æ pola roku nie jest null.\n"; + } + } +?> +]]> + </programlisting> + </example> + </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 +--> +

« previous php.doc.pl (#1382) next »