- added missing documentation for DomNode->replace_child()

- update DomNode->replace_node()


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@79593 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Uwe Steinmann 2002-04-23 14:25:44 +00:00
parent ec445371fe
commit bb5a47d544
3 changed files with 54 additions and 3 deletions

View file

@ -52,6 +52,7 @@
&reference.domxml.functions.DomNode-prefix;
&reference.domxml.functions.DomNode-previous-sibling;
&reference.domxml.functions.DomNode-remove-child;
&reference.domxml.functions.DomNode-replace-child;
&reference.domxml.functions.DomNode-replace-node;
&reference.domxml.functions.DomNode-set-content;
&reference.domxml.functions.DomNode-set-name;

View file

@ -0,0 +1,49 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.1 $ -->
<refentry id='function.DomNode-replace-child'>
<refnamediv>
<refname>DomNode->replace_child</refname>
<refpurpose>
Replaces a child
</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<methodsynopsis>
<type>object</type><methodname>DomNode->replace_child</methodname>
<methodparam><type>object</type><parameter>oldnode</parameter></methodparam>
<methodparam><type>object</type><parameter>newnode</parameter></methodparam>
<void/>
</methodsynopsis>
<para>
This function replaces the child <parameter>oldnode</parameter>
with the passed new node. If the new node is already a child it
will not be added a second time. If the old node cannot be found
the function returns false. If the replacement succeds the old node
is returned.
</para>
<para>
See also <function>DomNode_append_child</function>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.3 $ -->
<!-- $Revision: 1.4 $ -->
<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.39 -->
<refentry id='function.DomNode-replace-node'>
<refnamediv>
@ -18,9 +18,10 @@
<para>
This function replaces an existing node with the passed
new node. Before the replacement
<parameter>newnode</parameter> is copied to make sure a node which is
<parameter>newnode</parameter> is copied if it has a parent to
make sure a node which is
already in the document will not be inserted a second time. This
behaviour enforces to do all modifications on the node before the
behaviour enforces doing all modifications on the node before the
replacement or to refetch the inserted node afterwards with functions like
<function>DomNode_first_child</function>,
<function>DomNode_child_nodes</function> etc..