cvs: peardoc /en/package/php/php-compat/php-compat loadfunction.xml
| From: | Aidan Lister | Date: | Sat, 05 Jun 2004 06:55:21 +0000 |
| Subject: | cvs: peardoc /en/package/php/php-compat/php-compat loadfunction.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-4242@lists.php.net to get a copy of this message | ||
aidan Sat Jun 5 02:55:21 2004 EDT
Modified files:
/peardoc/en/package/php/php-compat/php-compat loadfunction.xml
Log:
Fixed formatting issues
http://cvs.php.net/diff.php/peardoc/en/package/php/php-compat/php-compat/loadfunction.xml?r1=1.6&r2=1.7&ty=u
Index: peardoc/en/package/php/php-compat/php-compat/loadfunction.xml
diff -u peardoc/en/package/php/php-compat/php-compat/loadfunction.xml:1.6
peardoc/en/package/php/php-compat/php-compat/loadfunction.xml:1.7
--- peardoc/en/package/php/php-compat/php-compat/loadfunction.xml:1.6 Fri Jun 4 23:20:24 2004
+++ peardoc/en/package/php/php-compat/php-compat/loadfunction.xml Sat Jun 5 02:55:21 2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="ISO-8859-1" ?>
-<!-- $Revision: 1.6 $ -->
+<!-- $Revision: 1.7 $ -->
<refentry id="package.php.php-compat.php-compat.loadfunction">
<refnamediv>
<refname><function>PHP_Compat::loadFunction()</function></refname>
@@ -13,7 +13,7 @@
</funcsynopsisinfo>
<funcprototype>
- <funcdef>mixed
<function>PHP_Compat::loadFunction()</function></funcdef>
+ <funcdef>mixed <function>PHP_Compat::loadFunction</function></funcdef>
<paramdef>mixed <parameter>$function</parameter></paramdef>
</funcprototype>
</funcsynopsis>
@@ -42,9 +42,13 @@
<variablelist>
<varlistentry>
<term>&type.mixed;</term>
- <listitem><para>&true; if the function was loaded
properly.</para></listitem>
- <listitem><para>&false; if the function was unable to be included (invalid
function name) or if the function has already been defined.</para><listitem>
- <listitem><para>If you specified an array of functions to load, an array of
true/false values is returned.</para></listitem>
+ <listitem>
+ <simplelist>
+ <member>&true; if the function was loaded properly.</mmeber>
+ <member>&false; if the function was not loaded. This could be because it was
unable to be included (invalid function name) or if the function has already been
defined.</member>
+ <member>If you specified an array of functions to load, an array of
&true;/&false; values is returned.</member>
+ </simplelist>
+ </listitem>
</varlistentry>
</variablelist>
</para>
@@ -55,17 +59,17 @@
<example>
<title>Loading a function with the class:</title>
<programlisting role="php">
- <![CDATA[
- <?php
- require_once 'PHP/Compat.php';
-
- // load file_put_contents
- PHP_Compat::loadFunction('file_put_contents');
-
- // load str_split, array_chunk and file_get_contents
- PHP_Compat::loadFunction(array('str_split', 'array_chunk',
'file_get_contents'));
- ?>
- ]]>
+<![CDATA[
+<?php
+require_once 'PHP/Compat.php';
+
+// load file_put_contents
+PHP_Compat::loadFunction('file_put_contents');
+
+// load str_split, array_chunk and file_get_contents
+PHP_Compat::loadFunction(array('str_split', 'array_chunk',
'file_get_contents'));
+?>
+]]>
</programlisting>
</example>
@@ -73,18 +77,18 @@
<example>
<title>Loading a function manually:</title>
<programlisting role="php">
- <![CDATA[
- <?php
- require_once 'PHP/Compat/Function/file_put_contents.php';
- ?>
- ]]>
+<![CDATA[
+<?php
+require_once 'PHP/Compat/Function/file_put_contents.php';
+?>
+]]>
</programlisting>
</example>
</refsect1>
<refsect1 id="package.php.php-compat.loadfunction.note">
&title.note;
- ¬e.static;
+ ¬e.yesstatic;
</refsect1>
</refentry>