fix build and document DOMText, correct some other files

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@175694 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Mehdi Achour 2004-12-27 16:53:36 +00:00
parent 6b964056ba
commit 84649cab8c
8 changed files with 103 additions and 74 deletions

View file

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.8 $ -->
<!-- $Revision: 1.9 $ -->
<refentry id='function.dom-domattr-isid'>
<refnamediv>
<refname>DOMAttr->isId</refname>
<refname>DOMAttr->isId()</refname>
<refpurpose>
Checks if attribute is a defined ID
</refpurpose>

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.7 $ -->
<!-- $Revision: 1.8 $ -->
<refentry id='function.dom-domimplementation-createdocument'>
<refnamediv>
<refname>DOMImplementation->createDocument()</refname>
@ -61,7 +61,7 @@
A new <classname>DOMDocument</classname> object. If
<parameter>namespaceURI</parameter>, <parameter>qualifiedName</parameter>,
and <parameter>doctype</parameter> are null, the returned
<classname>DOMDocument</classnale> is empty with no document element
<classname>DOMDocument</classname> is empty with no document element
</para>
</refsect1>
<refsect1 role="exceptions">

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.5 $ -->
<!-- $Revision: 1.6 $ -->
<refentry id="function.dom-domnode-normalize">
<refnamediv>
<refname>DOMNode->normalize()</refname>
@ -12,7 +12,7 @@
<classsynopsis>
<ooclass><classname>DOMNode</classname></ooclass>
<methodsynopsis>
<type>void</type>
<void/>
<methodname>normalize</methodname>
<void/>
</methodsynopsis>
@ -21,6 +21,12 @@
Normalizes the node.
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
&return.void;
</para>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>

View file

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.6 $ -->
<!-- $Revision: 1.7 $ -->
<refentry id='function.dom-domnodelist-item'>
<refnamediv>
<refname>DOMNodelist->item</refname>
<refname>DOMNodelist->item()</refname>
<refpurpose>
Retrieves a node specified by index
</refpurpose>

View file

@ -1,29 +1,35 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.4 $ -->
<refentry id='function.dom-domtext-iswhitespaceinelementcontent'>
<refnamediv>
<refname>DOMText->isWhitespaceInElementContent</refname>
<refpurpose>
Indicates whether this text node contains whitespace
</refpurpose>
</refnamediv>
<refsect1>
&reftitle.description;
<classsynopsis>
<ooclass><classname>DOMText</classname></ooclass>
<methodsynopsis>
<type>bool</type>
<methodname>isWhitespaceInElementContent</methodname>
<void/>
</methodsynopsis>
</classsynopsis>
<para>
Indicates whether this text node contains whitespace. The text node is
determined to contain whitespace in element content during the load of the
document.
</para>
</refsect1>
</refentry>
<!-- $Revision: 1.5 $ -->
<refentry id='function.dom-domtext-iswhitespaceinelementcontent'>
<refnamediv>
<refname>DOMText->isWhitespaceInElementContent()</refname>
<refpurpose>
Indicates whether this text node contains whitespace
</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<classsynopsis>
<ooclass><classname>DOMText</classname></ooclass>
<methodsynopsis>
<type>bool</type>
<methodname>isWhitespaceInElementContent</methodname>
<void/>
</methodsynopsis>
</classsynopsis>
<para>
Indicates whether this text node contains whitespace. The text node is
determined to contain whitespace in element content during the load of the
document.
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
&return.success;
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:

View file

@ -1,34 +1,57 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.5 $ -->
<refentry id='function.dom-domtext-splittext'>
<refnamediv>
<refname>DOMText->splitText</refname>
<refpurpose>
Breaks this node into two nodes at the specified offset
</refpurpose>
</refnamediv>
<refsect1>
&reftitle.description;
<classsynopsis>
<ooclass><classname>DOMText</classname></ooclass>
<methodsynopsis>
<type>DOMText</type>
<methodname>splitText</methodname>
<methodparam><type>int</type><parameter>offset</parameter></methodparam>
</methodsynopsis>
</classsynopsis>
<para>
Breaks this node into two nodes at the specified <parameter>offset</parameter>,
keeping both in the tree as siblings. After being split, this node will
contain all the content up to the <parameter>offset</parameter>. A new
node of the same type, which contains all the content at and after the
<parameter>offset</parameter>, is returned. If the original node had a
parent node, the new node is inserted as the next sibling of the original
node. When the <parameter>offset</parameter> is equal to the length of
this node, the new node has no data.
</para>
</refsect1>
</refentry>
<!-- $Revision: 1.6 $ -->
<refentry id='function.dom-domtext-splittext'>
<refnamediv>
<refname>DOMText->splitText()</refname>
<refpurpose>
Breaks this node into two nodes at the specified offset
</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<classsynopsis>
<ooclass><classname>DOMText</classname></ooclass>
<methodsynopsis>
<type>DOMText</type>
<methodname>splitText</methodname>
<methodparam><type>int</type><parameter>offset</parameter></methodparam>
</methodsynopsis>
</classsynopsis>
<para>
Breaks this node into two nodes at the specified <parameter>offset</parameter>,
keeping both in the tree as siblings.
</para>
<para>
After being split, this node will contain all the content up to the
<parameter>offset</parameter>. If the original node had a parent node,
the new node is inserted as the next sibling of the original node.
When the <parameter>offset</parameter> is equal to the length of this node,
the new node has no data.
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>offset</parameter></term>
<listitem>
<para>
The offset at which to split, starting from 0.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
The new node of the same type, which contains all the content at and after the
<parameter>offset</parameter>.
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.6 $ -->
<!-- $Revision: 1.7 $ -->
<refentry id='function.dom-import-simplexml'>
<refnamediv>
<refname>dom_import_simplexml</refname>
@ -38,7 +38,7 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
The DOMElement node added or &false; if any errors occur.
The <classname>DOMElement</classname> node added or &false; if any errors occur.
</para>
</refsect1>
<refsect1 role="examples">

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.10 $ -->
<!-- $Revision: 1.11 $ -->
<reference id="ref.dom">
<title>DOM Functions</title>
<titleabbrev>DOM</titleabbrev>
@ -1101,16 +1101,10 @@
&reftitle.methods;
<itemizedlist>
<listitem>
<para><xref linkend='function.dom-domtext-iselementcontentwhitespace' /> - </para>
<para><xref linkend='function.dom-domtext-iswhitespaceinelementcontent' /> - Indicates whether this text node contains whitespace</para>
</listitem>
<listitem>
<para><xref linkend='function.dom-domtext-iswhitespaceinelementcontent' /> - </para>
</listitem>
<listitem>
<para><xref linkend='function.dom-domtext-replacewholetext' /> - </para>
</listitem>
<listitem>
<para><xref linkend='function.dom-domtext-splittext' /> - </para>
<para><xref linkend='function.dom-domtext-splittext' /> - Breaks the node into two nodes at the specified offset</para>
</listitem>
</itemizedlist>
</section>