-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PHP 8.4] DOMNode::DOCUMENT_*定数とDOMNode::compareDocumentPositionに関する翻訳 (
#189) * DOMNode::DOCUMENT_*定数に関する変更履歴の翻訳 * DOMNode::compareDocumentPosition、DOMNode::DOCUMENT_の英文を追加 * Revisionを追加 * DOCUMENT_POSITION_*定数の翻訳 * EN-Revisionの変更 * DOMNode::compareDocumentPositionの翻訳 * インデントや改行を原文と揃える --------- Co-authored-by: 武田 憲太郎 <takeda@youmind.jp>
- Loading branch information
1 parent
2db999a
commit 2a392a8
Showing
2 changed files
with
237 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- $Revision$ --> | ||
<!-- EN-Revision: f1516b33abc82b59d0b8a52b973d64f4857939cc Maintainer: jdkfx Status: ready --> | ||
<!-- CREDITS: jdkfx --> | ||
<refentry xml:id="domnode.comparedocumentposition" xmlns="http://docbook.org/ns/docbook"> | ||
<refnamediv> | ||
<refname>DOMNode::compareDocumentPosition</refname> | ||
<refpurpose>2つのノードの位置を比較します。</refpurpose> | ||
</refnamediv> | ||
|
||
<refsect1 role="description"> | ||
&reftitle.description; | ||
<methodsynopsis role="DOMNode"> | ||
<modifier>public</modifier> <type>int</type><methodname>DOMNode::compareDocumentPosition</methodname> | ||
<methodparam><type>DOMNode</type><parameter>other</parameter></methodparam> | ||
</methodsynopsis> | ||
<simpara> | ||
このノードに対するもう一方のノードの位置を比較します。 | ||
</simpara> | ||
</refsect1> | ||
|
||
<refsect1 role="parameters"> | ||
&reftitle.parameters; | ||
<variablelist> | ||
<varlistentry> | ||
<term><parameter>other</parameter></term> | ||
<listitem> | ||
<para> | ||
このノードに対して、位置を比較すべきノード。 | ||
</para> | ||
</listitem> | ||
</varlistentry> | ||
</variablelist> | ||
</refsect1> | ||
|
||
<refsect1 role="returnvalues"> | ||
&reftitle.returnvalues; | ||
<simpara> | ||
<constant>DOMNode::DOCUMENT_POSITION_<replaceable>*</replaceable></constant> 定数のビットマスク。 | ||
</simpara> | ||
</refsect1> | ||
|
||
<refsect1 role="examples"> | ||
&reftitle.examples; | ||
<example> | ||
<title><methodname>DOMNode::compareDocumentPosition</methodname> の例</title> | ||
<programlisting role="php"> | ||
<![CDATA[ | ||
<?php | ||
$xml = <<<XML | ||
<root> | ||
<child1/> | ||
<child2/> | ||
</root> | ||
XML; | ||
$dom = new DOMDocument(); | ||
$dom->loadXML($xml); | ||
$root = $dom->documentElement; | ||
$child1 = $root->firstElementChild; | ||
$child2 = $child1->nextElementSibling; | ||
var_dump($root->compareDocumentPosition($child1)); | ||
var_dump($child2->compareDocumentPosition($child1)); | ||
?> | ||
]]> | ||
</programlisting> | ||
&example.outputs; | ||
<screen> | ||
<![CDATA[ | ||
int(20) // DOMNode::DOCUMENT_POSITION_CONTAINED_BY | DOMNode::DOCUMENT_POSITION_FOLLOWING 定数 | ||
int(2) // DOMNode::DOCUMENT_POSITION_PRECEDING 定数 | ||
]]> | ||
</screen> | ||
</example> | ||
</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:"~/.phpdoc/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 | ||
--> |