betz Fri Jun 17 14:04:59 2005 EDT
Modified files:
/phpdoc/en/reference/net_gopher/functions gopher-parsedir.xml
Log:
New docstyle
http://cvs.php.net/diff.php/phpdoc/en/reference/net_gopher/functions/gopher-parsedir.xml?r1=1.2&r2=1.3&ty=u
Index: phpdoc/en/reference/net_gopher/functions/gopher-parsedir.xml
diff -u phpdoc/en/reference/net_gopher/functions/gopher-parsedir.xml:1.2
phpdoc/en/reference/net_gopher/functions/gopher-parsedir.xml:1.3
--- phpdoc/en/reference/net_gopher/functions/gopher-parsedir.xml:1.2 Fri Jun
17 13:54:45 2005
+++ phpdoc/en/reference/net_gopher/functions/gopher-parsedir.xml Fri Jun
17 14:04:58 2005
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
<!-- splitted from ./en/functions/net-gopher.xml, last change in rev -->
<refentry id="function.gopher-parsedir">
<refnamediv>
@@ -7,8 +7,8 @@
<refpurpose>Translate a gopher formatted directory entry into an associative
array.</refpurpose>
</refnamediv>
- <refsect1>
- <title>Description</title>
+ <refsect1 role="description">
+ &reftitle.description;
<methodsynopsis>
<type>array</type><methodname>gopher_parsedir</methodname>
<methodparam><type>string</type><parameter>dirent</parameter></methodparam>
@@ -19,8 +19,13 @@
return specially encoded series of lines with each line being one
directory entry or information line.
</simpara>
- <example>
- <title>Hypothetical output from
<literal>gopher://gopher.example.com/</literal></title>
+ </refsect1>
+
+ <refsect1 role="examples">
+ &reftitle.examples;
+ <para>
+ <example>
+ <title>Hypothetical output from
<literal>gopher://gopher.example.com/</literal></title>
<screen>
<![CDATA[
0All about my gopher site. /allabout.txt gopher.example.com 70
@@ -35,7 +40,8 @@
]]>
</screen>
</example>
- <simpara>
+ </para>
+ <simpara>
In the example above, the root directory at gopher.example.com knows about
one <literal>DOCUMENT</literal> identified by <literal>0</literal> located
at
<literal>gopher://gopher.example.com:70/allabout.txt</literal>. It also
knows
@@ -44,12 +50,13 @@
<literal>gopher://gopher.ejemplo.co.es:70/</literal>.
In addition there is a binary file, a link to an HTTP url, and several
informative lines.
- </simpara>
- <simpara>
- By passing each line of the directory listing into
- <function>gopher_parsedir</function>, an associative array is formed
containing
- a parsed out version of the data.
- </simpara>
+ </simpara>
+ <simpara>
+ By passing each line of the directory listing into
+ <function>gopher_parsedir</function>, an associative array is formed
containing
+ a parsed out version of the data.
+ </simpara>
+ <para>
<example>
<title>Using <function>gopher_parsedir</function></title>
<programlisting role="php">
@@ -60,7 +67,7 @@
$directory = file("gopher://gopher.example.com");
foreach($directory as $dirent) {
- print_r(gopher_parsedir($dirent));
+ print_r(gopher_parsedir($dirent));
}
/* Expected Output
@@ -134,10 +141,11 @@
]]>
</programlisting>
</example>
- <simpara>
- The values given by <parameter>type</parameter> are associated with
- the following constants.
- </simpara>
+ </para>
+ <simpara>
+ The values given by <parameter>type</parameter> are associated with
+ the following constants.
+ </simpara>
<table>
<title>Gopher Constants</title>
<tgroup cols="2">