cvs: phpdoc-pl /reference/pgsql/functions pg-escape-string.xml
| From: | Adam Major | Date: | Sun, 18 May 2008 10:27:12 +0000 |
| Subject: | cvs: phpdoc-pl /reference/pgsql/functions pg-escape-string.xml | ||
| Groups: | php.doc.pl | ||
| Request: | Send a blank email to doc-pl+get-1381@lists.php.net to get a copy of this message | ||
adi Sun May 18 10:27:12 2008 UTC
Modified files:
/phpdoc-pl/reference/pgsql/functions pg-escape-string.xml
Log:
Update
http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/pgsql/functions/pg-escape-string.xml?r1=1.4&r2=1.5&diff_format=u
Index: phpdoc-pl/reference/pgsql/functions/pg-escape-string.xml
diff -u phpdoc-pl/reference/pgsql/functions/pg-escape-string.xml:1.4
phpdoc-pl/reference/pgsql/functions/pg-escape-string.xml:1.5
--- phpdoc-pl/reference/pgsql/functions/pg-escape-string.xml:1.4 Sat Jun 23 13:29:34 2007
+++ phpdoc-pl/reference/pgsql/functions/pg-escape-string.xml Sun May 18 10:27:12 2008
@@ -1,54 +1,147 @@
-<?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.61 -->
- <refentry xml:id='function.pg-escape-string' xmlns="http://docbook.org/ns/docbook">
- <refnamediv>
- <refname>pg_escape_string</refname>
- <refpurpose>
- Konwertuje ³añcuch wstawiaj±c sekwencje Escape dla typu text/char
- </refpurpose>
- </refnamediv>
- <refsect1>
- <title>Opis</title>
- <methodsynopsis>
- <type>string</type><methodname>pg_escape_string</methodname>
-
<methodparam><type>string</type><parameter>data</parameter></methodparam>
- </methodsynopsis>
- <para>
- <function>pg_escape_string</function> konwertuje ³añcuch wstawiaj±c
- sekwencje Escape dla typu text/char. Zwraca ³añcuch z sekwencjami
- Escape dla PostgreSQL-a. Zalecane jest u¿ywanie tej funkcji
- w miejsce <function>addslashes</function>.
- </para>
- <note>
- <para>
- Funkcja wymaga PostgreSQL 7.2 lub nowszego.
- </para>
- </note>
- <para>
- Zobacz tak¿e <function>pg_escape_bytea</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
--->
+<?xml version="1.0" encoding="iso-8859-2"?>
+<!-- EN-Revision: 1.9 Maintainer: garbus Status: ready -->
+<!-- $Revision: 1.5 $-->
+<!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.61 -->
+<!-- CREDITS: jarek -->
+<refentry xml:id='function.pg-escape-string' xmlns="http://docbook.org/ns/docbook">
+ <refnamediv>
+ <refname>pg_escape_string</refname>
+ <refpurpose>
+ Konwertuje ³añcuch wpisywany do pola tekstowego, wstawiaj±c sekwencje Escape
+ </refpurpose>
+ </refnamediv>
+
+ <refsect1 role="description">
+ &reftitle.description;
+ <methodsynopsis>
+ <type>string</type><methodname>pg_escape_string</methodname>
+ <methodparam
choice="opt"><type>resource</type><parameter>polaczenie</parameter></methodparam>
+
<methodparam><type>string</type><parameter>dane</parameter></methodparam>
+ </methodsynopsis>
+ <para>
+ <function>pg_escape_string</function> konwertuje ³añcuch wstawiaj±c
+ sekwencje Escape przy wpisywaniu do bazy danych. Zwraca ³añcuch z sekwencjami Escape
+ w formacie PostgreSQL-a. Zalecane jest u¿ywanie tej funkcji w miejsce
+ <function>addslashes</function>. Je¶li typem kolumny jest
+ bytea, trzeba u¿yæ funkcji <function>pg_escape_bytea</function>
+ zamiast tej.
+ </para>
+ <note>
+ <para>
+ Funkcja wymaga PostgreSQL 7.2 lub nowszego.
+ </para>
+ </note>
+ </refsect1>
+
+<refsect1 role="parameters">
+ &reftitle.parameters;
+ <para>
+ <variablelist>
+ <varlistentry>
+ <term><parameter>polaczenie</parameter></term>
+ <listitem>
+ <para>
+ Identyfikator po³±czenia do bazy danych. Gdy
+ <parameter>polaczenie</parameter> nie zosta³o podane, domy¶lne po³±czenie
+ jest u¿yte. Domy¶lnym po³±czeniem jest ostatnie po³±czenie stworzone przez
+ <function>pg_connect</function> lub
<function>pg_pconnect</function>.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><parameter>dane</parameter></term>
+ <listitem>
+ <para>
+ £añcuch (ang. <type>string</type>) zawieraj±cy tekst bez sekwencji Escape.
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </para>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+ &reftitle.returnvalues;
+ <para>
+ £añcuch (ang. <type>string</type>) zawieraj±cy dane z sekwencjami Escape.
+ </para>
+ </refsect1>
+
+ <refsect1 role="changelog">
+ &reftitle.changelog;
+ <para>
+ <informaltable>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>&Version;</entry>
+ <entry>&Description;</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>5.2.0</entry>
+ <entry>Parametr <parameter>polaczenie</parameter> zosta³
dodany</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </informaltable>
+ </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+ &reftitle.examples;
+ <para>
+ <example>
+ <title><function>pg_escape_string</function> - przyk³ad</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+ // Po³±czenie do bazy danych
+ $polaczenie = pg_connect('dbname=foo');
+
+ // Przeczytaj plik tekstowy (zawieraj±cy apostrofy i uko¶niki wsteczne)
+ $dane = file_get_contents('list.txt');
+
+ // Dodaj sekwencje Escape do danych
+ $z_escape = pg_escape_string($dane);
+
+ // Wpisz to do bazy danych
+ pg_query("INSERT INTO korespondencja (nazwa, dane) VALUES ('Moj list',
'{$z_escape}')");
+?>
+]]>
+ </programlisting>
+ </example>
+ </para>
+ </refsect1>
+
+ <refsect1 role="seealso">
+ &reftitle.seealso;
+ <para>
+ <simplelist>
+ <member><function>pg_escape_bytea</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:"../../../../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
+-->