ramsey Tue May 16 03:10:13 2006 UTC
Modified files:
/phpdoc/en/reference/dom/functions dom-domdocument-load.xml
dom-domdocument-loadxml.xml
Log:
Bug #37249 - Changed return type to "mixed" and added examples for calling
load() and loadXML() statically.
http://cvs.php.net/viewcvs.cgi/phpdoc/en/reference/dom/functions/dom-domdocument-load.xml?r1=1.9&r2=1.10&diff_format=u
Index: phpdoc/en/reference/dom/functions/dom-domdocument-load.xml
diff -u phpdoc/en/reference/dom/functions/dom-domdocument-load.xml:1.9
phpdoc/en/reference/dom/functions/dom-domdocument-load.xml:1.10
--- phpdoc/en/reference/dom/functions/dom-domdocument-load.xml:1.9 Mon Apr
17 12:59:17 2006
+++ phpdoc/en/reference/dom/functions/dom-domdocument-load.xml Tue May 16
03:10:13 2006
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.9 $ -->
+<!-- $Revision: 1.10 $ -->
<refentry id="function.dom-domdocument-load">
<refnamediv>
<refname>DOMDocument->load()</refname>
@@ -12,7 +12,7 @@
<classsynopsis>
<ooclass><classname>DOMDocument</classname></ooclass>
<methodsynopsis>
- <type>bool</type><methodname>load</methodname>
+ <type>mixed</type><methodname>load</methodname>
<methodparam><type>string</type><parameter>filename</parameter></methodparam>
<methodparam
choice="opt"><type>int</type><parameter>options</parameter></methodparam>
</methodsynopsis>
@@ -45,7 +45,7 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
- &return.success;
+ &return.success; If called statically, returns a DOMDocument.
</para>
</refsect1>
<refsect1 role="examples">
@@ -64,6 +64,19 @@
</programlisting>
</example>
</para>
+ <para>
+ <example>
+ <title>Static invocation of <literal>load</literal></title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+$doc = DOMDocument::load('book.xml');
+echo $doc->saveXML();
+?>
+]]>
+ </programlisting>
+ </example>
+ </para>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
http://cvs.php.net/viewcvs.cgi/phpdoc/en/reference/dom/functions/dom-domdocument-loadxml.xml?r1=1.9&r2=1.10&diff_format=u
Index: phpdoc/en/reference/dom/functions/dom-domdocument-loadxml.xml
diff -u phpdoc/en/reference/dom/functions/dom-domdocument-loadxml.xml:1.9
phpdoc/en/reference/dom/functions/dom-domdocument-loadxml.xml:1.10
--- phpdoc/en/reference/dom/functions/dom-domdocument-loadxml.xml:1.9 Mon Apr
17 12:59:17 2006
+++ phpdoc/en/reference/dom/functions/dom-domdocument-loadxml.xml Tue May
16 03:10:13 2006
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.9 $ -->
+<!-- $Revision: 1.10 $ -->
<refentry id="function.dom-domdocument-loadxml">
<refnamediv>
<refname>DOMDocument->loadXML()</refname>
@@ -12,7 +12,7 @@
<classsynopsis>
<ooclass><classname>DOMDocument</classname></ooclass>
<methodsynopsis>
- <type>bool</type><methodname>loadXML</methodname>
+ <type>mixed</type><methodname>loadXML</methodname>
<methodparam><type>string</type><parameter>source</parameter></methodparam>
<methodparam
choice="opt"><type>int</type><parameter>options</parameter></methodparam>
</methodsynopsis>
@@ -45,7 +45,7 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
- &return.success;
+ &return.success; If called statically, returns a DOMDocument.
</para>
</refsect1>
<refsect1 role="examples">
@@ -64,6 +64,19 @@
</programlisting>
</example>
</para>
+ <para>
+ <example>
+ <title>Static invocation of <literal>loadXML</literal></title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+$doc = DOMDocument::loadXML('<root><node/></root>');
+echo $doc->saveXML();
+?>
+]]>
+ </programlisting>
+ </example>
+ </para>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;