mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
Migrate DOMXPath::XX(), add see also, explain parameters
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@175671 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
542c010d2f
commit
87a79b78ff
3 changed files with 104 additions and 52 deletions
|
@ -1,26 +1,42 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id='function.dom-domxpath-construct'>
|
||||
<refnamediv>
|
||||
<refname>DOMXPath->__construct</refname>
|
||||
<refpurpose>
|
||||
Creates a new DOMXPath object
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<classsynopsis>
|
||||
<ooclass><classname>DOMXPath</classname></ooclass>
|
||||
<constructorsynopsis>
|
||||
<methodname>__construct</methodname>
|
||||
<methodparam><type>DOMDocument</type><parameter>doc</parameter></methodparam>
|
||||
</constructorsynopsis>
|
||||
</classsynopsis>
|
||||
<para>
|
||||
Creates a new <classname>DOMXPath</classname> object.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
<!-- $Revision: 1.2 $ -->
|
||||
<refentry id='function.dom-domxpath-construct'>
|
||||
<refnamediv>
|
||||
<refname>DOMXPath->__construct()</refname>
|
||||
<refpurpose>
|
||||
Creates a new DOMXPath object
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<classsynopsis>
|
||||
<ooclass><classname>DOMXPath</classname></ooclass>
|
||||
<constructorsynopsis>
|
||||
<methodname>__construct</methodname>
|
||||
<methodparam><type>DOMDocument</type><parameter>doc</parameter></methodparam>
|
||||
</constructorsynopsis>
|
||||
</classsynopsis>
|
||||
<para>
|
||||
Creates a new <classname>DOMXPath</classname> object.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>doc</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The <classname>DOMDocument</classname> associated with the
|
||||
<classname>DOMXPath</classname>.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</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.8 $ -->
|
||||
<!-- $Revision: 1.9 $ -->
|
||||
<refentry id="function.dom-domxpath-query">
|
||||
<refnamediv>
|
||||
<refname>DOMXPath->query</refname>
|
||||
<refname>DOMXPath->query()</refname>
|
||||
<refpurpose>
|
||||
Evaluates the given XPath expression
|
||||
</refpurpose>
|
||||
|
@ -19,8 +19,7 @@
|
|||
</methodsynopsis>
|
||||
</classsynopsis>
|
||||
<para>
|
||||
Excutes the given XPath <parameter>expression</parameter> and returns a
|
||||
set of nodes as result.
|
||||
Executes the given XPath <parameter>expression</parameter>.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="parameters">
|
||||
|
@ -104,7 +103,7 @@ Found The Pearl, by John Steinbeck
|
|||
$doc = new DOMDocument;
|
||||
$doc->preserveWhiteSpace = false;
|
||||
|
||||
$doc->Load('book.xml');
|
||||
$doc->load('book.xml');
|
||||
|
||||
$xpath = new DOMXPath($doc);
|
||||
|
||||
|
@ -125,6 +124,14 @@ foreach ($entries as $entry) {
|
|||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="seealso">
|
||||
&reftitle.seealso;
|
||||
<para>
|
||||
<simplelist>
|
||||
<member><xref linkend="function.dom-domxpath-evaluate" /></member>
|
||||
</simplelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
|
|
|
@ -1,29 +1,58 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.4 $ -->
|
||||
<refentry id="function.dom-domxpath-registernamespace">
|
||||
<refnamediv>
|
||||
<refname>DOMXPath->registerNamespace</refname>
|
||||
<refpurpose>
|
||||
Registers the namespace with the DOMXpath object
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<classsynopsis>
|
||||
<ooclass><classname>DOMXPath</classname></ooclass>
|
||||
<methodsynopsis>
|
||||
<type>bool</type>
|
||||
<methodname>registerNamespace</methodname>
|
||||
<methodparam><type>string</type><parameter>prefix</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>namespaceURI</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
</classsynopsis>
|
||||
<para>
|
||||
Registers the <parameter>namespaceURI</parameter> and
|
||||
<parameter>prefix</parameter> with the DOMXpath object.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<refentry id="function.dom-domxpath-registernamespace">
|
||||
<refnamediv>
|
||||
<refname>DOMXPath->registerNamespace()</refname>
|
||||
<refpurpose>
|
||||
Registers the namespace with the DOMXpath object
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<classsynopsis>
|
||||
<ooclass><classname>DOMXPath</classname></ooclass>
|
||||
<methodsynopsis>
|
||||
<type>bool</type>
|
||||
<methodname>registerNamespace</methodname>
|
||||
<methodparam><type>string</type><parameter>prefix</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>namespaceURI</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
</classsynopsis>
|
||||
<para>
|
||||
Registers the <parameter>namespaceURI</parameter> and
|
||||
<parameter>prefix</parameter> with the DOMXpath object.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>prefix</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The prefix.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>namespaceURI</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The URI of the namespace.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
&return.success;
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
|
Loading…
Reference in a new issue