cvs: phpdoc-pl /reference/pgsql/functions pg-connection-status.xml

From: Date: Tue, 02 May 2006 00:02:05 +0000
Subject: cvs: phpdoc-pl /reference/pgsql/functions pg-connection-status.xml
Groups: php.doc.pl 
Request: Send a blank email to doc-pl+get-912@lists.php.net to get a copy of this message
leszek Tue May 2 00:02:05 2006 UTC Modified files: /phpdoc-pl/reference/pgsql/functions pg-connection-status.xml Log: [adi] update to rev. 1.11 http://cvs.php.net/viewcvs.cgi/phpdoc-pl/reference/pgsql/functions/pg-connection-status.xml?r1=1.3&r2=1.4&diff_format=u Index: phpdoc-pl/reference/pgsql/functions/pg-connection-status.xml diff -u phpdoc-pl/reference/pgsql/functions/pg-connection-status.xml:1.3 phpdoc-pl/reference/pgsql/functions/pg-connection-status.xml:1.4 --- phpdoc-pl/reference/pgsql/functions/pg-connection-status.xml:1.3 Wed Jun 19 09:03:21 2002 +++ phpdoc-pl/reference/pgsql/functions/pg-connection-status.xml Tue May 2 00:02:05 2006 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-2"?> -<!-- EN-Revision: 1.2 Maintainer: jarek Status: ready --> -<!-- $Revision: 1.3 $--> +<!-- EN-Revision: 1.11 Maintainer: jarek Status: ready --> +<!-- $Revision: 1.4 $--> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.82 --> <refentry id='function.pg-connection-status'> <refnamediv> @@ -9,22 +9,74 @@ Zwraca stan po³±czenia </refpurpose> </refnamediv> - <refsect1> - <title>Opis</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>int</type><methodname>pg_connection_status</methodname> - <methodparam><type>resource</type><parameter>connection</parameter></methodparam> + <methodparam><type>resource</type><parameter>po³±czenie</parameter></methodparam> </methodsynopsis> <para> - <function>pg_connection_status</function> zwraca stan po³±czenia. - Mo¿liwe stany to <literal>PGSQL_CONNECTION_OK</literal> - i <literal>PGSQL_CONNECTION_BAD</literal>. + <function>pg_connection_status</function> zwraca status + podanego <parameter>po³±czenia</parameter>. </para> - <para> - Zobacz tak¿e <function>pg_connection_busy</function>. - </para> - </refsect1> - </refentry> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>po³±czenie</parameter></term> + <listitem> + <para> + Zasób, po³±czenie do bazy PostgreSQL. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + <constant>PGSQL_CONNECTION_OK</constant> lub + <constant>PGSQL_CONNECTION_BAD</constant>. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>pg_connection_status</function> przyk³ad</title> + <programlisting role="php"> +<![CDATA[ +<?php + $dbconn = pg_connect("dbname=publisher") or die("Nie mo¿na siê po³±czyæ"); + $stat = pg_connection_status($dbconn); + if ($stat === PGSQL_CONNECTION_OK) { + echo 'Status po³±czenia ok'; + } else { + echo 'Status po³±czenia bad'; + } +?> +]]> + </programlisting> + </example> + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>pg_connection_busy</function></member> + </simplelist> + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables:

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