mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Migrate and document DOMDocument::createXX()
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@175669 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
73bee31211
commit
542c010d2f
10 changed files with 556 additions and 283 deletions
|
@ -1,37 +1,71 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<refentry id="function.dom-domdocument-createattribute">
|
||||
<refnamediv>
|
||||
<refname>DOMDocument->createAttribute</refname>
|
||||
<refpurpose>Create new attribute</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<classsynopsis>
|
||||
<ooclass><classname>DOMDocument</classname></ooclass>
|
||||
<methodsynopsis>
|
||||
<type>DOMAttr</type>
|
||||
<methodname>createAttribute</methodname>
|
||||
<methodparam><type>string</type><parameter>name</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
</classsynopsis>
|
||||
<para>
|
||||
This function returns a new instance of class <classname>DOMAttr</classname>.
|
||||
The name of the attribute is the value of the first parameter.
|
||||
&dom.node.inserted;
|
||||
</para>
|
||||
<para>
|
||||
The return value is &false; if an error occurred.
|
||||
</para>
|
||||
<para>
|
||||
See also <link linkend="function.dom-domdocument-createelement">DOMDocument->createElement()</link>,
|
||||
<link linkend="function.dom-domnode-appendchild">DOMNode->appendChild()</link>,
|
||||
<link linkend="function.dom-domdocument-createtextnode">DOMDocument->createTextNode()</link>,
|
||||
<link linkend="function.dom-domdocument-createcomment">DOMDocument->createComment()</link> and
|
||||
<link linkend="function.dom-domdocument-createprocessinginstruction">DOMDocument->createProcessingInstruction()</link>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<refentry id="function.dom-domdocument-createattribute">
|
||||
<refnamediv>
|
||||
<refname>DOMDocument->createAttribute()</refname>
|
||||
<refpurpose>Create new attribute</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<classsynopsis>
|
||||
<ooclass><classname>DOMDocument</classname></ooclass>
|
||||
<methodsynopsis>
|
||||
<type>DOMAttr</type>
|
||||
<methodname>createAttribute</methodname>
|
||||
<methodparam><type>string</type><parameter>name</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
</classsynopsis>
|
||||
<para>
|
||||
This function creates a new instance of class <classname>DOMAttr</classname>.
|
||||
&dom.node.inserted;
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>name</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The name of the attribute.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
The new <classname>DOMAttr</classname> or &false; if an error occured.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="exceptions">
|
||||
&reftitle.exceptions;
|
||||
<para>
|
||||
Throws <classname>DOMException</classname> if <parameter>name</parameter>
|
||||
contains an invalid character.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="seealso">
|
||||
&reftitle.seealso;
|
||||
<para>
|
||||
<simplelist>
|
||||
<member><xref linkend="function.dom-domnode-appendchild" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createattributens" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createcdatasection" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createcomment" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createdocumentfragment" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createelement" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createelementns" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createentityreference" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createprocessinginstruction" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createtextnode" /></member>
|
||||
</simplelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
|
|
@ -1,42 +1,82 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<refentry id="function.dom-domdocument-createattributens">
|
||||
<refnamediv>
|
||||
<refname>DOMDocument->createAttributeNS</refname>
|
||||
<refpurpose>
|
||||
Create new attribute node with an associated namespace
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<classsynopsis>
|
||||
<ooclass><classname>DOMDocument</classname></ooclass>
|
||||
<methodsynopsis>
|
||||
<type>DOMAttr</type>
|
||||
<methodname>createAttributeNS</methodname>
|
||||
<methodparam><type>string</type><parameter>namespaceURI</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>qualifiedName</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
</classsynopsis>
|
||||
<para>
|
||||
This function returns a new instance of class <classname>DOMAttr</classname>.
|
||||
The tag name and prefix of the attribute is determined by the value of the
|
||||
passed parameter <parameter>qualifiedName</parameter>. The URI of the
|
||||
namespace is the value of <parameter>namespaceURI</parameter>.
|
||||
&dom.node.inserted;
|
||||
</para>
|
||||
<para>
|
||||
The return value is &false; if an error occurred.
|
||||
</para>
|
||||
<para>
|
||||
See also <link linkend="function.dom-domdocument-createelementns">DOMDocument->createElementNS()</link>,
|
||||
<link linkend="function.dom-domnode-appendchild">DOMNode->appendChild()</link>,
|
||||
<link linkend="function.dom-domdocument-createelement">DOMDocument->createElement()</link>,
|
||||
<link linkend="function.dom-domdocument-createtextnode">DOMDocument->createTextNode()</link> and
|
||||
<link linkend="function.dom-domdocument-createattribute">DOMDocument->createAttribute()</link>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<refentry id="function.dom-domdocument-createattributens">
|
||||
<refnamediv>
|
||||
<refname>DOMDocument->createAttributeNS()</refname>
|
||||
<refpurpose>
|
||||
Create new attribute node with an associated namespace
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<classsynopsis>
|
||||
<ooclass><classname>DOMDocument</classname></ooclass>
|
||||
<methodsynopsis>
|
||||
<type>DOMAttr</type>
|
||||
<methodname>createAttributeNS</methodname>
|
||||
<methodparam><type>string</type><parameter>namespaceURI</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>qualifiedName</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
</classsynopsis>
|
||||
<para>
|
||||
This function creates a new instance of class
|
||||
<classname>DOMAttr</classname>. &dom.node.inserted;
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>namespaceURI</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The URI of the namespace.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>qualifiedName</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The tag name and prefix of the attribute, as <literal>prefix:tagname</literal>.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
The new <classname>DOMAttr</classname> or &false; if an error occured.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="exceptions">
|
||||
&reftitle.exceptions;
|
||||
<para>
|
||||
Throws <classname>DOMException</classname> if <parameter>qualifiedName</parameter>
|
||||
contains an invalid character.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="seealso">
|
||||
&reftitle.seealso;
|
||||
<para>
|
||||
<simplelist>
|
||||
<member><xref linkend="function.dom-domnode-appendchild" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createattribute" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createcdatasection" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createcomment" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createdocumentfragment" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createelement" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createelementns" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createentityreference" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createprocessinginstruction" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createtextnode" /></member>
|
||||
</simplelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
|
|
@ -1,37 +1,64 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<refentry id="function.dom-domdocument-createcdatasection">
|
||||
<refnamediv>
|
||||
<refname>DOMDocument->createCDATASection</refname>
|
||||
<refpurpose>Create new cdata node</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<classsynopsis>
|
||||
<ooclass><classname>DOMDocument</classname></ooclass>
|
||||
<methodsynopsis>
|
||||
<type>DOMCDATASection</type>
|
||||
<methodname>createCDATASection</methodname>
|
||||
<methodparam><type>string</type><parameter>data</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
</classsynopsis>
|
||||
<para>
|
||||
This function returns a new instance of class
|
||||
<classname>DOMCDATASection</classname>. The content of the cdata is the
|
||||
value of the passed parameter. &dom.node.inserted;
|
||||
</para>
|
||||
<para>
|
||||
The return value is &false; if an error occurred.
|
||||
</para>
|
||||
<para>
|
||||
See also <link linkend="function.dom-domnode-appendchild">DOMNode->appendChild()</link>,
|
||||
<link linkend="function.dom-domdocument-createelement">DOMDocument->createElement()</link>,
|
||||
<link linkend="function.dom-domdocument-createtextnode">DOMDocument->createTextNode()</link>,
|
||||
<link linkend="function.dom-domdocument-createattribute">DOMDocument->createAttribute()</link>,
|
||||
<link linkend="function.dom-domdocument-createprocessinginstruction">DOMDocument->createProcessingInstruction()</link>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<refentry id="function.dom-domdocument-createcdatasection">
|
||||
<refnamediv>
|
||||
<refname>DOMDocument->createCDATASection()</refname>
|
||||
<refpurpose>Create new cdata node</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<classsynopsis>
|
||||
<ooclass><classname>DOMDocument</classname></ooclass>
|
||||
<methodsynopsis>
|
||||
<type>DOMCDATASection</type>
|
||||
<methodname>createCDATASection</methodname>
|
||||
<methodparam><type>string</type><parameter>data</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
</classsynopsis>
|
||||
<para>
|
||||
This function creates a new instance of class
|
||||
<classname>DOMCDATASection</classname>. &dom.node.inserted;
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>data</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The content of the cdata.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
The new <classname>DOMCDATASection</classname> or &false; if an error occured.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="seealso">
|
||||
&reftitle.seealso;
|
||||
<para>
|
||||
<simplelist>
|
||||
<member><xref linkend="function.dom-domnode-appendchild" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createattribute" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createattributens" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createcomment" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createdocumentfragment" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createelement" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createelementns" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createentityreference" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createprocessinginstruction" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createtextnode" /></member>
|
||||
</simplelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
|
|
@ -1,37 +1,64 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<refentry id="function.dom-domdocument-createcomment">
|
||||
<refnamediv>
|
||||
<refname>DOMDocument->createComment</refname>
|
||||
<refpurpose>Create new comment node</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<classsynopsis>
|
||||
<ooclass><classname>DOMDocument</classname></ooclass>
|
||||
<methodsynopsis>
|
||||
<type>DOMComment</type>
|
||||
<methodname>createComment</methodname>
|
||||
<methodparam><type>string</type><parameter>data</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
</classsynopsis>
|
||||
<para>
|
||||
This function returns a new instance of class
|
||||
<classname>DOMComment</classname>. The content of the comment is the
|
||||
value of the passed parameter. &dom.node.inserted;
|
||||
</para>
|
||||
<para>
|
||||
The return value is &false; if an error occurred.
|
||||
</para>
|
||||
<para>
|
||||
See also <link linkend="function.dom-domnode-appendchild">DOMNode->appendChild()</link>,
|
||||
<link linkend="function.dom-domdocument-createelement">DOMDocument->createElement()</link>,
|
||||
<link linkend="function.dom-domdocument-createtextnode">DOMDocument->createTextNode()</link>,
|
||||
<link linkend="function.dom-domdocument-createattribute">DOMDocument->createAttribute()</link>,
|
||||
<link linkend="function.dom-domdocument-createprocessinginstruction">DOMDocument->createProcessingInstruction()</link>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<refentry id="function.dom-domdocument-createcomment">
|
||||
<refnamediv>
|
||||
<refname>DOMDocument->createComment()</refname>
|
||||
<refpurpose>Create new comment node</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<classsynopsis>
|
||||
<ooclass><classname>DOMDocument</classname></ooclass>
|
||||
<methodsynopsis>
|
||||
<type>DOMComment</type>
|
||||
<methodname>createComment</methodname>
|
||||
<methodparam><type>string</type><parameter>data</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
</classsynopsis>
|
||||
<para>
|
||||
This function creates a new instance of class
|
||||
<classname>DOMComment</classname>. &dom.node.inserted;
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>data</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The content of the comment.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
The new <classname>DOMComment</classname> or &false; if an error occured.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="seealso">
|
||||
&reftitle.seealso;
|
||||
<para>
|
||||
<simplelist>
|
||||
<member><xref linkend="function.dom-domnode-appendchild" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createattribute" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createattributens" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createcdatasection" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createdocumentfragment" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createelement" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createelementns" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createentityreference" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createprocessinginstruction" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createtextnode" /></member>
|
||||
</simplelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
|
|
@ -1,30 +1,48 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<refentry id="function.dom-domdocument-createdocumentfragment">
|
||||
<refnamediv>
|
||||
<refname>DOMDocument->createDocumentFragment</refname>
|
||||
<refpurpose>Create new document fragment</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<classsynopsis>
|
||||
<ooclass><classname>DOMDocument</classname></ooclass>
|
||||
<methodsynopsis>
|
||||
<type>DOMDocumentFragment</type>
|
||||
<methodname>createDocumentFragment</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
</classsynopsis>
|
||||
<para>
|
||||
This function returns a new instance of class <classname>DOMAttr</classname>.
|
||||
The name of the attribute is the value of the first parameter.
|
||||
&dom.node.inserted;
|
||||
</para>
|
||||
<para>
|
||||
The return value is &false; if an error occurred.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<refentry id="function.dom-domdocument-createdocumentfragment">
|
||||
<refnamediv>
|
||||
<refname>DOMDocument->createDocumentFragment()</refname>
|
||||
<refpurpose>Create new document fragment</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<classsynopsis>
|
||||
<ooclass><classname>DOMDocument</classname></ooclass>
|
||||
<methodsynopsis>
|
||||
<type>DOMDocumentFragment</type>
|
||||
<methodname>createDocumentFragment</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
</classsynopsis>
|
||||
<para>
|
||||
This function creates a new instance of class
|
||||
<classname>DOMDocumentFragment</classname>. &dom.node.inserted;
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
The new <classname>DOMDocumentFragment</classname> or &false; if an error occured.
|
||||
</para>
|
||||
</refsect1> <refsect1 role="seealso">
|
||||
&reftitle.seealso;
|
||||
<para>
|
||||
<simplelist>
|
||||
<member><xref linkend="function.dom-domnode-appendchild" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createattribute" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createattributens" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createcdatasection" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createcomment" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createelement" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createelementns" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createentityreference" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createprocessinginstruction" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createtextnode" /></member>
|
||||
</simplelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<refentry id="function.dom-domdocument-createelement">
|
||||
<refnamediv>
|
||||
<refname>DOMDocument->createElement</refname>
|
||||
<refname>DOMDocument->createElement()</refname>
|
||||
<refpurpose>Create new element node</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1 role="description">
|
||||
|
@ -17,9 +17,10 @@
|
|||
</methodsynopsis>
|
||||
</classsynopsis>
|
||||
<para>
|
||||
This function creates a new element node. &dom.node.inserted;
|
||||
This function creates a new instance of class
|
||||
<classname>DOMElement</classname>. &dom.node.inserted;
|
||||
</para>
|
||||
</refsect1>
|
||||
</refsect1>
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
<para>
|
||||
|
@ -51,6 +52,13 @@
|
|||
if an error occured.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="exceptions">
|
||||
&reftitle.exceptions;
|
||||
<para>
|
||||
Throws <classname>DOMException</classname> if <parameter>name</parameter>
|
||||
contains an invalid character.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<para>
|
||||
|
@ -85,12 +93,16 @@ echo $dom->saveXML();
|
|||
&reftitle.seealso;
|
||||
<para>
|
||||
<simplelist>
|
||||
<member><link linkend="function.dom-domdocument-createelementns">DOMDocument->createElementNS()</link></member>
|
||||
<member><link linkend="function.dom-domnode-appendchild">DOMNode->appendChild()</link></member>
|
||||
<member><link linkend="function.dom-domdocument-createtextnode">DOMDocument->createTextNode()</link></member>
|
||||
<member><link linkend="function.dom-domdocument-createcomment">DOMDocument->createComment()</link></member>
|
||||
<member><link linkend="function.dom-domdocument-createattribute">DOMDocument->createAttribute()</link></member>
|
||||
<member><link linkend="function.dom-domdocument-createprocessinginstruction">DOMDocument->createProcessingInstruction()</link></member>
|
||||
<member><xref linkend="function.dom-domnode-appendchild" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createattribute" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createattributens" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createcdatasection" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createcomment" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createdocumentfragment" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createelementns" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createentityreference" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createprocessinginstruction" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createtextnode" /></member>
|
||||
</simplelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<!-- $Revision: 1.8 $ -->
|
||||
<refentry id="function.dom-domdocument-createelementns">
|
||||
<refnamediv>
|
||||
<refname>DOMDocument->createElementNS</refname>
|
||||
<refname>DOMDocument->createElementNS()</refname>
|
||||
<refpurpose>
|
||||
Create new element node with an associated namespace
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<classsynopsis>
|
||||
<ooclass><classname>DOMDocument</classname></ooclass>
|
||||
|
@ -23,7 +23,7 @@
|
|||
This function creates a new element node with an associated namespace.
|
||||
&dom.node.inserted;
|
||||
</para>
|
||||
</refsect1>
|
||||
</refsect1>
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
<para>
|
||||
|
@ -40,7 +40,7 @@
|
|||
<term><parameter>qualifiedName</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The qualified name of the element, as <literal>prefix:tagname</literal>
|
||||
The qualified name of the element, as <literal>prefix:tagname</literal>.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
@ -59,8 +59,14 @@
|
|||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
Returns a new instance of class <classname>DOMElement</classname> or &false;
|
||||
if an error occured.
|
||||
The new <classname>DOMElement</classname> or &false; if an error occured.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="exceptions">
|
||||
&reftitle.exceptions;
|
||||
<para>
|
||||
Throws <classname>DOMException</classname> if <parameter>qualifiedName</parameter>
|
||||
contains an invalid character.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="examples">
|
||||
|
@ -97,12 +103,16 @@ echo $dom->saveXML();
|
|||
&reftitle.seealso;
|
||||
<para>
|
||||
<simplelist>
|
||||
<member><link linkend="function.dom-domdocument-createelement">DOMDocument->createElement()</link></member>
|
||||
<member><link linkend="function.dom-domnode-appendchild">DOMNode->appendChild()</link></member>
|
||||
<member><link linkend="function.dom-domdocument-createtextnode">DOMDocument->createTextNode()</link></member>
|
||||
<member><link linkend="function.dom-domdocument-createcomment">DOMDocument->createComment()</link></member>
|
||||
<member><link linkend="function.dom-domdocument-createattribute">DOMDocument->createAttribute()</link></member>
|
||||
<member><link linkend="function.dom-domdocument-createprocessinginstruction">DOMDocument->createProcessingInstruction()</link></member>
|
||||
<member><xref linkend="function.dom-domnode-appendchild" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createattribute" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createattributens" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createcdatasection" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createcomment" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createdocumentfragment" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createelement" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createentityreference" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createprocessinginstruction" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createtextnode" /></member>
|
||||
</simplelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
|
|
@ -1,36 +1,71 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<refentry id="function.dom-domdocument-createentityreference">
|
||||
<refnamediv>
|
||||
<refname>DOMDocument->createEntityReference</refname>
|
||||
<refpurpose>Create new entity reference node</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<classsynopsis>
|
||||
<ooclass><classname>DOMDocument</classname></ooclass>
|
||||
<methodsynopsis>
|
||||
<type>DOMEntityReference</type>
|
||||
<methodname>createEntityReference</methodname>
|
||||
<methodparam><type>string</type><parameter>name</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
</classsynopsis>
|
||||
<para>
|
||||
This function returns a new instance of class
|
||||
<classname>DOMEntityReference</classname>. The content of the entity
|
||||
reference is the value of the passed parameter. &dom.node.inserted;
|
||||
</para>
|
||||
<para>
|
||||
The return value is &false; if an error occurred.
|
||||
</para>
|
||||
<para>
|
||||
See also <link linkend="function.dom-domnode-appendchild">DOMNode->appendChild()</link>,
|
||||
<link linkend="function.dom-domdocument-createelement">DOMDocument->createElement()</link>,
|
||||
<link linkend="function.dom-domdocument-createattribute">DOMDocument->createAttribute()</link> and
|
||||
<link linkend="function.dom-domdocument-createcomment">DOMDocument->createComment()</link>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<refentry id="function.dom-domdocument-createentityreference">
|
||||
<refnamediv>
|
||||
<refname>DOMDocument->createEntityReference()</refname>
|
||||
<refpurpose>Create new entity reference node</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<classsynopsis>
|
||||
<ooclass><classname>DOMDocument</classname></ooclass>
|
||||
<methodsynopsis>
|
||||
<type>DOMEntityReference</type>
|
||||
<methodname>createEntityReference</methodname>
|
||||
<methodparam><type>string</type><parameter>name</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
</classsynopsis>
|
||||
<para>
|
||||
This function creates a new instance of class
|
||||
<classname>DOMEntityReference</classname>. &dom.node.inserted;
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>name</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The content of the entity reference.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
The new <classname>DOMEntityReference</classname> or &false; if an error occured.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="exceptions">
|
||||
&reftitle.exceptions;
|
||||
<para>
|
||||
Throws <classname>DOMException</classname> if <parameter>name</parameter>
|
||||
contains an invalid character.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="seealso">
|
||||
&reftitle.seealso;
|
||||
<para>
|
||||
<simplelist>
|
||||
<member><xref linkend="function.dom-domnode-appendchild" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createattribute" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createattributens" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createcdatasection" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createcomment" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createdocumentfragment" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createelement" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createelementns" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createprocessinginstruction" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createtextnode" /></member>
|
||||
</simplelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
|
|
@ -1,37 +1,79 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<refentry id="function.dom-domdocument-createprocessinginstruction">
|
||||
<refnamediv>
|
||||
<refname>DOMDocument->createProcessingInstruction</refname>
|
||||
<refpurpose>Creates new PI node</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<classsynopsis>
|
||||
<ooclass><classname>DOMDocument</classname></ooclass>
|
||||
<methodsynopsis>
|
||||
<type>DOMProcessingInstruction</type>
|
||||
<methodname>createProcessingInstruction</methodname>
|
||||
<methodparam><type>string</type><parameter>target</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>string</type><parameter>data</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
</classsynopsis>
|
||||
<para>
|
||||
This function returns a new instance of class
|
||||
<classname>DOMProcessingInstruction</classname>. The content of the pi is the
|
||||
value of the passed parameter. &dom.node.inserted;
|
||||
</para>
|
||||
<para>
|
||||
The return value is &false; if an error occurred.
|
||||
</para>
|
||||
<para>
|
||||
See also <link linkend="function.dom-domnode-appendchild">DOMNode->appendChild()</link>,
|
||||
<link linkend="function.dom-domdocument-createelement">DOMDocument->createElement()</link>,
|
||||
<link linkend="function.dom-domdocument-createattribute">DOMDocument->createAttribute()</link> and
|
||||
<link linkend="function.dom-domdocument-createcomment">DOMDocument->createComment()</link>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<refentry id="function.dom-domdocument-createprocessinginstruction">
|
||||
<refnamediv>
|
||||
<refname>DOMDocument->createProcessingInstruction()</refname>
|
||||
<refpurpose>Creates new PI node</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<classsynopsis>
|
||||
<ooclass><classname>DOMDocument</classname></ooclass>
|
||||
<methodsynopsis>
|
||||
<type>DOMProcessingInstruction</type>
|
||||
<methodname>createProcessingInstruction</methodname>
|
||||
<methodparam><type>string</type><parameter>target</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>string</type><parameter>data</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
</classsynopsis>
|
||||
<para>
|
||||
This function creates a new instance of class
|
||||
<classname>DOMProcessingInstruction</classname>. &dom.node.inserted;
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>target</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The target of the processing instruction.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>data</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The content of the processing instruction.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
The new <classname>DOMProcessingInstruction</classname> or &false; if an error occured.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="exceptions">
|
||||
&reftitle.exceptions;
|
||||
<para>
|
||||
Throws <classname>DOMException</classname> if <parameter>target</parameter>
|
||||
contains an invalid character.
|
||||
</para> </refsect1>
|
||||
<refsect1 role="seealso">
|
||||
&reftitle.seealso;
|
||||
<para>
|
||||
<simplelist>
|
||||
<member><xref linkend="function.dom-domnode-appendchild" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createattribute" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createattributens" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createcdatasection" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createcomment" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createdocumentfragment" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createelement" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createelementns" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createentityreference" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createtextnode" /></member>
|
||||
</simplelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
|
|
@ -1,36 +1,64 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<refentry id="function.dom-domdocument-createtextnode">
|
||||
<refnamediv>
|
||||
<refname>DOMDocument->createTextNode</refname>
|
||||
<refpurpose>Create new text node</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<classsynopsis>
|
||||
<ooclass><classname>DOMDocument</classname></ooclass>
|
||||
<methodsynopsis>
|
||||
<type>DOMText</type>
|
||||
<methodname>createTextNode</methodname>
|
||||
<methodparam><type>string</type><parameter>content</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
</classsynopsis>
|
||||
<para>
|
||||
This function returns a new instance of class
|
||||
<classname>DOMText</classname>. The content of the text is the value of
|
||||
the passed parameter. &dom.node.inserted;
|
||||
</para>
|
||||
<para>
|
||||
The return value is &false; if an error occurred.
|
||||
</para>
|
||||
<para>
|
||||
See also <link linkend="function.dom-domnode-appendchild">DOMNode->appendChild()</link>,
|
||||
<link linkend="function.dom-domdocument-createelement">DOMDocument->createElement()</link>,
|
||||
<link linkend="function.dom-domdocument-createattribute">DOMDocument->createAttribute()</link> and
|
||||
<link linkend="function.dom-domdocument-createcomment">DOMDocument->createComment()</link>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<refentry id="function.dom-domdocument-createtextnode">
|
||||
<refnamediv>
|
||||
<refname>DOMDocument->createTextNode()</refname>
|
||||
<refpurpose>Create new text node</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<classsynopsis>
|
||||
<ooclass><classname>DOMDocument</classname></ooclass>
|
||||
<methodsynopsis>
|
||||
<type>DOMText</type>
|
||||
<methodname>createTextNode</methodname>
|
||||
<methodparam><type>string</type><parameter>content</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
</classsynopsis>
|
||||
<para>
|
||||
This function creates a new instance of class
|
||||
<classname>DOMText</classname>. &dom.node.inserted;
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>content</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The content of the text.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
The new <classname>DOMText</classname> or &false; if an error occured.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="seealso">
|
||||
&reftitle.seealso;
|
||||
<para>
|
||||
<simplelist>
|
||||
<member><xref linkend="function.dom-domnode-appendchild" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createattribute" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createattributens" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createcdatasection" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createcomment" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createdocumentfragment" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createelement" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createelementns" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createentityreference" /></member>
|
||||
<member><xref linkend="function.dom-domdocument-createprocessinginstruction" /></member>
|
||||
</simplelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
|
Loading…
Reference in a new issue