fix whitespaces

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@187901 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Jean-Sébastien Goupil 2005-06-07 23:54:12 +00:00
parent ff434b9f7b
commit 314fd3d36d

View file

@ -1,57 +1,61 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.7 $ -->
<!-- $Revision: 1.8 $ -->
<!-- splitted from ./en/functions/var.xml, last change in rev 1.75 -->
<refentry id="function.get-resource-type">
<refnamediv>
<refname>get_resource_type</refname>
<refpurpose>
Returns the resource type
</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>
This function gets the type of the given resource.
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>handle</parameter></term>
<listitem>
<para>
The evaluated resource handle.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
If the given <parameter>handle</parameter> is a resource, this function
will return a string representing its type. If the type is not identified
by this function, the return value will be the string
<literal>Unknown</literal>.
</para>
<para>
This function will return &false; and generate an error if
<parameter>handle</parameter> is not a <type>resource</type>.
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title><function>get_resource_type</function> example</title>
<programlisting role="php">
<refentry id="function.get-resource-type">
<refnamediv>
<refname>get_resource_type</refname>
<refpurpose>
Returns the resource type
</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>
This function gets the type of the given resource.
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>handle</parameter></term>
<listitem>
<para>
The evaluated resource handle.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
If the given <parameter>handle</parameter> is a resource, this function
will return a string representing its type. If the type is not identified
by this function, the return value will be the string
<literal>Unknown</literal>.
</para>
<para>
This function will return &false; and generate an error if
<parameter>handle</parameter> is not a <type>resource</type>.
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title><function>get_resource_type</function> example</title>
<programlisting role="php">
<![CDATA[
<?php
// prints: mysql link
@ -67,11 +71,11 @@ $doc = new_xmldoc("1.0");
echo get_resource_type($doc->doc) . "\n";
?>
]]>
</programlisting>
</example>
</para>
</refsect1>
</refentry>
</programlisting>
</example>
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables: