cvs: phpdoc-ro /reference/var/functions get-resource-type.xml

From: Date: Tue, 29 Apr 2008 10:52:50 +0000
Subject: cvs: phpdoc-ro /reference/var/functions get-resource-type.xml
Groups: php.doc.ro 
Request: Send a blank email to doc-ro+get-419@lists.php.net to get a copy of this message
simionea Tue Apr 29 10:52:50 2008 UTC Modified files: /phpdoc-ro/reference/var/functions get-resource-type.xml Log: Updated the file. http://cvs.php.net/viewvc.cgi/phpdoc-ro/reference/var/functions/get-resource-type.xml?r1=1.3&r2=1.4&diff_format=u Index: phpdoc-ro/reference/var/functions/get-resource-type.xml diff -u phpdoc-ro/reference/var/functions/get-resource-type.xml:1.3 phpdoc-ro/reference/var/functions/get-resource-type.xml:1.4 --- phpdoc-ro/reference/var/functions/get-resource-type.xml:1.3 Tue Sep 18 14:05:18 2007 +++ phpdoc-ro/reference/var/functions/get-resource-type.xml Tue Apr 29 10:52:49 2008 @@ -1,46 +1,83 @@ -<?xml version="1.0" encoding="iso-8859-2"?> -<!-- EN-Revision: 1.0 Maintainer: adiju Status: outdated --> -<!-- splitted from ./ro/functions/var.xml, last change in rev 1.1 --> -<!-- last change to 'get-resource-type' in en/ tree in rev 1.75 --> - <refentry xml:id="function.get-resource-type" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>get_resource_type</refname> - <refpurpose> - Returneazã tipul resursei - </refpurpose> - </refnamediv> - <refsect1> - <title>Descriere</title> - <methodsynopsis> - <type>string</type><methodname>get_resource_type</methodname> - <methodparam><type>resource</type><parameter>handle</parameter></methodparam> - </methodsynopsis> - <para> - Aceastã funcþie returneazã un ºir de caractere care reprezintã tipul - resursei <type>resource</type> care i-a fost pasatã. Dacã parametrul - <type>resource</type> nu este o resursã validã, se va genera o eroare. - <informalexample> - <programlisting role="php"> +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.9 Maintainer: simionea Status: translated --> +<!-- CREDITS: adiju --> +<!-- splitted from ./en/functions/var.xml, last change in rev 1.75 --> +<refentry xml:id="function.get-resource-type" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>get_resource_type</refname> + <refpurpose> + Întoarce tipul resursei + </refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>string</type><methodname>get_resource_type</methodname> + <methodparam><type>resource</type><parameter>handle</parameter></methodparam> + </methodsynopsis> + <para> + Această funcÅ£ie obÅ£ine tipul unei resurse date. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>handle</parameter></term> + <listitem> + <para> + Handle-ul resursei în cauză. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Dacă <parameter>handle-ul</parameter> furnizat este o resursă, această + funcÅ£ie va întoarce un string reprezentând tipul său. Dacă funcÅ£ia nu poate + identifica tipul, valoarea întoarsă va fi string-ul + <literal>Unknown</literal>. + </para> + <para> + Această funcÅ£ie va întoarce &false; şi va genera o eroare dacă + <parameter>handle</parameter> nu este o <type>resource</type>. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title>Exemplu <function>get_resource_type</function></title> + <programlisting role="php"> <![CDATA[ <?php +// Afişează: mysql link $c = mysql_connect(); echo get_resource_type($c) . "\n"; -// afiºeazã: mysql link +// Afişează: file $fp = fopen("foo", "w"); echo get_resource_type($fp) . "\n"; -// afiºeazã: file +// Afişează: domxml document $doc = new_xmldoc("1.0"); echo get_resource_type($doc->doc) . "\n"; -// afiºeazã: domxml document ?> ]]> - </programlisting> - </informalexample> - </para> - </refsect1> - </refentry> + </programlisting> + </example> + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables:

« previous php.doc.ro (#419) next »