cvs: phpdoc-ja /reference/domxml/functions DomElement-get-attribute-node.xml DomElement-get-attribute.xml DomElement-get-elements-by-tagname.xml
DomElement-has-attribute.xml DomElement-remove-attribute.xml DomElement-set-attribute-node.xml DomElement-set-attribute.xml DomElement-tagname.xml

From: Date: Sun, 24 Jul 2005 08:25:25 +0000
Subject: cvs: phpdoc-ja /reference/domxml/functions DomElement-get-attribute-node.xml DomElement-get-attribute.xml DomElement-get-elements-by-tagname.xml
DomElement-has-attribute.xml DomElement-remove-attribute.xml DomElement-set-attribute-node.xml DomElement-set-attribute.xml DomElement-tagname.xml
Groups: php.doc.ja 
Request: Send a blank email to doc-ja+get-1071@lists.php.net to get a copy of this message
shimooka Sun Jul 24 04:25:25 2005 EDT Modified files: /phpdoc-ja/reference/domxml/functions DomElement-get-attribute-node.xml DomElement-get-attribute.xml DomElement-get-elements-by-tagname.xml DomElement-has-attribute.xml DomElement-remove-attribute.xml DomElement-set-attribute-node.xml DomElement-set-attribute.xml DomElement-tagname.xml Log: translation updated

http://cvs.php.net/diff.php/phpdoc-ja/reference/domxml/functions/DomElement-get-attribute-node.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/domxml/functions/DomElement-get-attribute-node.xml diff -u phpdoc-ja/reference/domxml/functions/DomElement-get-attribute-node.xml:1.3 phpdoc-ja/reference/domxml/functions/DomElement-get-attribute-node.xml:1.4 --- phpdoc-ja/reference/domxml/functions/DomElement-get-attribute-node.xml:1.3 Mon Nov 22 23:45:32 2004 +++ phpdoc-ja/reference/domxml/functions/DomElement-get-attribute-node.xml Sun Jul 24 04:25:24 2005 @@ -1,24 +1,95 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/domxml.xml, last change in rev 1.16 --> -<!-- EN-Revision: 1.27 Maintainer: hirokawa Status: ready --> - <refentry id='function.DomElement-get-attribute-node'> - <refnamediv> - <refname>DomElement->get_attribute_node</refname> - <refpurpose> - 属性の値を返す - </refpurpose> - </refnamediv> - <refsect1> - <title>説明</title> - <methodsynopsis> - <type>object</type><methodname>DomElement->get_attribute_node</methodname> - <methodparam><type>object</type><parameter>attr</parameter></methodparam> - </methodsynopsis> - <para> - &warn.undocumented.func; - </para> - </refsect1> - </refentry> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.8 Maintainer: shimooka Status: ready --> +<!-- CREDITS: hirokawa --> +<refentry id='function.domelement-get-attribute-node'> + <refnamediv> + <refname>DomElement->get_attribute_node()</refname> + <refpurpose> + 与えられた属性のノードを返す + </refpurpose> + </refnamediv> + <refsect1 role="description"> + &reftitle.description; + <classsynopsis> + <ooclass><classname>DomElement</classname></ooclass> + <methodsynopsis> + <type>DomAttribute</type><methodname>get_attribute_node</methodname> + <methodparam><type>string</type><parameter>name</parameter></methodparam> + </methodsynopsis> + </classsynopsis> + <para> + 現在の要素中の与えられた属性のノードを返す + Returns the node of the given attribute in the current element. + </para> + </refsect1> + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>name</parameter></term> + <listitem> + <para> + 検索する属性の名前。このパラメータは大文字小文字を区別します。 + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + 属性のノードを <classname>DomAttribute</classname> として返す、 + もしくは与えられた名前 + <parameter>name</parameter> を持つ属性がない場合、&false; が返されます。 + </para> + </refsect1> + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title>属性ノードを取得する</title> + <programlisting role="php"> +<![CDATA[ +<?php + +include("example.inc"); + +if (!$dom = domxml_open_mem($xmlstr)) { + echo "Error while parsing the document\n"; + exit; +} + +$root = $dom->document_element(); +if ($attribute = $root->get_attribute_node('language')) { + echo 'Language is: ' . $attribute->value() . "\n"; +} + +?> +]]> + </programlisting> + </example> + </para> + </refsect1> + <refsect1 role="migration"> + <title>PHP 5 への移行</title> + <para> + <xref linkend="function.dom-domelement-getattributenode" /> + を使用してください。 + </para> + </refsect1> + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><xref linkend="function.domelement-get-attribute" /></member> + <member><xref linkend="function.domelement-set-attribute" /></member> + </simplelist> + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc-ja/reference/domxml/functions/DomElement-get-attribute.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/domxml/functions/DomElement-get-attribute.xml diff -u phpdoc-ja/reference/domxml/functions/DomElement-get-attribute.xml:1.3 phpdoc-ja/reference/domxml/functions/DomElement-get-attribute.xml:1.4 --- phpdoc-ja/reference/domxml/functions/DomElement-get-attribute.xml:1.3 Mon Nov 22 23:45:32 2004 +++ phpdoc-ja/reference/domxml/functions/DomElement-get-attribute.xml Sun Jul 24 04:25:24 2005 @@ -1,28 +1,95 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/domxml.xml, last change in rev 1.16 --> -<!-- EN-Revision: 1.28 Maintainer: hirokawa Status: ready --> - <refentry id='function.DomElement-get-attribute'> - <refnamediv> - <refname>DomElement->get_attribute</refname> - <refpurpose> - 属性の値を返す - </refpurpose> - </refnamediv> - <refsect1> - <title>説明</title> - <methodsynopsis> - <type>object</type><methodname>DomElement->get_attribute</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - </methodsynopsis> - <para> - Returns the attribute with name <parameter>name</parameter> of the - current node. - </para> - <para> - See also <function>DomElement_set_attribute</function> - </para> - </refsect1> - </refentry> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.10 Maintainer: shimooka Status: ready --> +<!-- CREDITS: hirokawa --> +<refentry id='function.domelement-get-attribute'> + <refnamediv> + <refname>DomElement->get_attribute()</refname> + <refpurpose> + 与えられた属性の値を返す + </refpurpose> + </refnamediv> + <refsect1 role="description"> + &reftitle.description; + <classsynopsis> + <ooclass><classname>DomElement</classname></ooclass> + <methodsynopsis> + <type>string</type><methodname>get_attribute</methodname> + <methodparam><type>string</type><parameter>name</parameter></methodparam> + </methodsynopsis> + </classsynopsis> + <para> + 現在の要素中の与えられた属性の値を返します。 + </para> + <para> + PHP 4.3 以降、与えられた名前 <parameter>name</parameter> + を持つ属性がない場合、空文字列が返されます。 + </para> + </refsect1> + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>name</parameter></term> + <listitem> + <para> + 検索する属性の名前。このパラメータは大文字小文字を区別します。 + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + 属性の名前を文字列として返す、もしくは与えられた名前 + <parameter>name</parameter> を持つ属性がない場合、空文字列が返されます。 + </para> + </refsect1> + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title>属性の値を取得する</title> + <programlisting role="php"> +<![CDATA[ +<?php + +include("example.inc"); + +if (!$dom = domxml_open_mem($xmlstr)) { + echo "Error while parsing the document\n"; + exit; +} + +// chapter を取得する +$root = $dom->document_element(); +echo $root->get_attribute('language'); // en + +?> +]]> + </programlisting> + </example> + </para> + </refsect1> + <refsect1 role="migration"> + <title>PHP 5 への移行</title> + <para> + <xref linkend="function.dom-domelement-getattribute" /> を使用してください。 + </para> + </refsect1> + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><xref linkend="function.domelement-get-attribute-node" /></member> + <member><xref linkend="function.domelement-set-attribute" /></member> + </simplelist> + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc-ja/reference/domxml/functions/DomElement-get-elements-by-tagname.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/domxml/functions/DomElement-get-elements-by-tagname.xml diff -u phpdoc-ja/reference/domxml/functions/DomElement-get-elements-by-tagname.xml:1.3 phpdoc-ja/reference/domxml/functions/DomElement-get-elements-by-tagname.xml:1.4 --- phpdoc-ja/reference/domxml/functions/DomElement-get-elements-by-tagname.xml:1.3 Mon Nov 22 23:45:32 2004 +++ phpdoc-ja/reference/domxml/functions/DomElement-get-elements-by-tagname.xml Sun Jul 24 04:25:24 2005 @@ -1,24 +1,83 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/domxml.xml, last change in rev 1.16 --> -<!-- EN-Revision: 1.38 Maintainer: hirokawa Status: ready --> - <refentry id='function.DomElement-get-elements-by-tagname'> - <refnamediv> - <refname>DomElement->get_elements_by_tagname</refname> - <refpurpose> - タグ名により要素を取得する - </refpurpose> - </refnamediv> - <refsect1> - <title>説明</title> - <methodsynopsis> - <type>bool</type><methodname>DomElement->get_elements_by_tagname</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - </methodsynopsis> - <para> - &warn.undocumented.func; - </para> - </refsect1> - </refentry> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.12 Maintainer: shimooka Status: ready --> +<!-- CREDITS: hirokawa --> +<refentry id='function.domelement-get-elements-by-tagname'> + <refnamediv> + <refname>DomElement->get_elements_by_tagname()</refname> + <refpurpose> + タグ名により要素を取得する + </refpurpose> + </refnamediv> + <refsect1 role="description"> + &reftitle.description; + <classsynopsis> + <ooclass><classname>DomElement</classname></ooclass> + <methodsynopsis> + <type>array</type><methodname>get_elements_by_tagname</methodname> + <methodparam><type>string</type><parameter>name</parameter></methodparam> + </methodsynopsis> + </classsynopsis> + <para> + 指定した名前 <parameter>name</parameter> を持つ現在の要素以下にある全ての子要素を取得します。 + </para> + </refsect1> + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>name</parameter></term> + <listitem> + <para> + 検索する属性の名前 + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + <classname>DomElement</classname> オブジェクトの配列を返します。 + </para> + </refsect1> + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title>内容を取得する</title> + <programlisting role="php"> +<![CDATA[ +<?php +if (!$dom = domxml_open_mem($xmlstr)) { + echo "Error while parsing the document\n"; + exit; +} + +$root = $dom->document_element(); + +$node_array = $root->get_elements_by_tagname('element'); + +foreach ($node_array as $node) { + echo ' - ' . $node->get_content() . "\n"; +} + +?> +]]> + </programlisting> + </example> + </para> + </refsect1> + <refsect1 role="migration"> + <title>PHP 5 への移行</title> + <para> + <xref linkend="function.dom-domelement-getelementsbytagname" /> + を使用してください。 + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc-ja/reference/domxml/functions/DomElement-has-attribute.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/domxml/functions/DomElement-has-attribute.xml diff -u phpdoc-ja/reference/domxml/functions/DomElement-has-attribute.xml:1.3 phpdoc-ja/reference/domxml/functions/DomElement-has-attribute.xml:1.4 --- phpdoc-ja/reference/domxml/functions/DomElement-has-attribute.xml:1.3 Mon Nov 22 23:45:32 2004 +++ phpdoc-ja/reference/domxml/functions/DomElement-has-attribute.xml Sun Jul 24 04:25:24 2005 @@ -1,24 +1,89 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/domxml.xml, last change in rev 1.16 --> -<!-- EN-Revision: 1.38 Maintainer: hirokawa Status: ready --> - <refentry id='function.DomElement-has-attribute'> - <refnamediv> - <refname>DomElement->has_attribute</refname> - <refpurpose> - 属性があるかどうかを調べる - </refpurpose> - </refnamediv> - <refsect1> - <title>説明</title> - <methodsynopsis> - <type>bool</type><methodname>DomElement->has_attribute</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - </methodsynopsis> - <para> - &warn.undocumented.func; - </para> - </refsect1> - </refentry> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.9 Maintainer: shimooka Status: ready --> +<!-- CREDITS: hirokawa --> +<refentry id='function.domelement-has-attribute'> + <refnamediv> + <refname>DomElement->has_attribute()</refname> + <refpurpose> + 現在のノードに属性があるかどうかを調べる + </refpurpose> + </refnamediv> + <refsect1 role="description"> + &reftitle.description; + <classsynopsis> + <ooclass><classname>DomElement</classname></ooclass> + <methodsynopsis> + <type>bool</type><methodname>has_attribute</methodname> + <methodparam><type>string</type><parameter>name</parameter></methodparam> + </methodsynopsis> + </classsynopsis> + <para> + この関数は、現在のノードに名前 <parameter>name</parameter> + を持つ属性があるかどうかを調べます。 + </para> + </refsect1> + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>name</parameter></term> + <listitem> + <para> + 検査する属性名 + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + もし問い合わせた属性が存在する場合 &true;、そうでない場合 &false; + を返します。 + </para> + </refsect1> + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title>属性の存在を調べる</title> + <programlisting role="php"> +<![CDATA[ +<?php + +include("example.inc"); + +if (!$dom = domxml_open_mem($xmlstr)) { + echo "Error while parsing the document\n"; + exit; +} + +$root = $dom->document_element(); + +$buffer = '<html'; +if ($root->has_attribute('language')) { + $buffer .= 'lang="' . $root->get_attribute('language') . '"'; +} +$buffer .= '>'; + +?> + +]]> + </programlisting> + </example> + </para> + </refsect1> + <refsect1 role="migration"> + <title>PHP 5 への移行</title> + <para> + <xref linkend="function.dom-domelement-hasattribute" /> + を使用してください。 + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc-ja/reference/domxml/functions/DomElement-remove-attribute.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/domxml/functions/DomElement-remove-attribute.xml diff -u phpdoc-ja/reference/domxml/functions/DomElement-remove-attribute.xml:1.3 phpdoc-ja/reference/domxml/functions/DomElement-remove-attribute.xml:1.4 --- phpdoc-ja/reference/domxml/functions/DomElement-remove-attribute.xml:1.3 Mon Nov 22 23:45:32 2004 +++ phpdoc-ja/reference/domxml/functions/DomElement-remove-attribute.xml Sun Jul 24 04:25:24 2005 @@ -1,24 +1,56 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/domxml.xml, last change in rev 1.16 --> -<!-- EN-Revision: 1.38 Maintainer: hirokawa Status: ready --> - <refentry id='function.DomElement-remove-attribute'> - <refnamediv> - <refname>DomElement->remove_attribute</refname> - <refpurpose> - 属性を削除する - </refpurpose> - </refnamediv> - <refsect1> - <title>説明</title> - <methodsynopsis> - <type>bool</type><methodname>DomElement->remove_attribute</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - </methodsynopsis> - <para> - &warn.undocumented.func; - </para> - </refsect1> - </refentry> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.7 Maintainer: shimooka Status: ready --> +<!-- CREDITS: hirokawa --> +<refentry id='function.domelement-remove-attribute'> + <refnamediv> + <refname>DomElement->remove_attribute()</refname> + <refpurpose> + 属性を削除する + </refpurpose> + </refnamediv> + <refsect1 role="description"> + &reftitle.description; + <classsynopsis> + <ooclass><classname>DomElement</classname></ooclass> + <methodsynopsis> + <type>bool</type><methodname>remove_attribute</methodname> + <methodparam><type>string</type><parameter>name</parameter></methodparam> + </methodsynopsis> + </classsynopsis> + <para> + 現在の <classname>DomElement</classname> ノードから属性を削除します。 + </para> + </refsect1> + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>name</parameter></term> + <listitem> + <para> + 削除する属性名 + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + &return.success; + </para> + </refsect1> + <refsect1 role="migration"> + <title>PHP 5 への移行</title> + <para> + <xref linkend="function.dom-domelement-removeattribute" /> + を使用してください。 + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc-ja/reference/domxml/functions/DomElement-set-attribute-node.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/domxml/functions/DomElement-set-attribute-node.xml diff -u phpdoc-ja/reference/domxml/functions/DomElement-set-attribute-node.xml:1.3 phpdoc-ja/reference/domxml/functions/DomElement-set-attribute-node.xml:1.4 --- phpdoc-ja/reference/domxml/functions/DomElement-set-attribute-node.xml:1.3 Mon Nov 22 23:45:32 2004 +++ phpdoc-ja/reference/domxml/functions/DomElement-set-attribute-node.xml Sun Jul 24 04:25:24 2005 @@ -1,25 +1,30 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/domxml.xml, last change in rev 1.16 --> -<!-- EN-Revision: 1.38 Maintainer: hirokawa Status: ready --> - <refentry id='function.DomElement-set-attribute-node'> - <refnamediv> - <refname>DomElement->set_attribute_node</refname> - <refpurpose> - 新規属性を設定する - </refpurpose> - </refnamediv> - <refsect1> - <title>説明</title> - <methodsynopsis> - <type>bool</type><methodname>DomElement->set_attribute_node</methodname> - <methodparam><type>object</type><parameter>attr</parameter></methodparam> - </methodsynopsis> - <para> - &warn.undocumented.func; - </para> - </refsect1> - </refentry> - +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.7 Maintainer: shimooka Status: ready --> +<!-- CREDITS: hirokawa --> +<!-- This function is not implemented at all for the time being +<refentry id='function.domelement-set-attribute-node'> + <refnamediv> + <refname>DomElement->set_attribute_node()</refname> + <refpurpose> + 新規属性を追加する + </refpurpose> + </refnamediv> + <refsect1 role="description"> + &reftitle.description; + <classsynopsis> + <ooclass><classname>DomElement</classname></ooclass> + <methodsynopsis> + <type>DomNode</type><methodname>set_attribute_node</methodname> + <methodparam><type>DomNode</type><parameter>attr</parameter></methodparam> + </methodsynopsis> + </classsynopsis> + <para> + &warn.undocumented.func; + </para> + </refsect1> +</refentry> +--> <!-- Keep this comment at the end of the file Local variables: mode: sgml http://cvs.php.net/diff.php/phpdoc-ja/reference/domxml/functions/DomElement-set-attribute.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/domxml/functions/DomElement-set-attribute.xml diff -u phpdoc-ja/reference/domxml/functions/DomElement-set-attribute.xml:1.3 phpdoc-ja/reference/domxml/functions/DomElement-set-attribute.xml:1.4 --- phpdoc-ja/reference/domxml/functions/DomElement-set-attribute.xml:1.3 Mon Nov 22 23:45:32 2004 +++ phpdoc-ja/reference/domxml/functions/DomElement-set-attribute.xml Sun Jul 24 04:25:24 2005 @@ -1,28 +1,65 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/domxml.xml, last change in rev 1.16 --> -<!-- EN-Revision: 1.27 Maintainer: hirokawa Status: ready --> - <refentry id='function.DomElement-set-attribute'> - <refnamediv> - <refname>DomElement->set_attribute</refname> - <refpurpose> - 新規属性を追加する - </refpurpose> - </refnamediv> - <refsect1> - <title>説明</title> - <methodsynopsis> - <type>bool</type><methodname>DomElement->set_attribute</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - <methodparam><type>string</type><parameter>value</parameter></methodparam> - </methodsynopsis> - <para> - Sets an attribute with name <parameter>name</parameter> ot the given - value. If the attribute does not exist, it will be created. - </para> - <para> - <example> - <title>属性を設定する</title> - <programlisting role="php"> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.11 Maintainer: shimooka Status: ready --> +<!-- CREDITS: hirokawa --> +<refentry id='function.domelement-set-attribute'> + <refnamediv> + <refname>DomElement->set_attribute()</refname> + <refpurpose> + 属性値を設定する + </refpurpose> + </refnamediv> + <refsect1 role="description"> + &reftitle.description; + <classsynopsis> + <ooclass><classname>DomElement</classname></ooclass> + <methodsynopsis> + <type>DomAttribute</type><methodname>set_attribute</methodname> + <methodparam><type>string</type><parameter>name</parameter></methodparam> + <methodparam><type>string</type><parameter>value</parameter></methodparam> + </methodsynopsis> + </classsynopsis> + <para> + 名前 <parameter>name</parameter> を持つ属性値を <parameter>value</parameter> + に設定します。 + </para> + </refsect1> + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>name</parameter></term> + <listitem> + <para> + 属性名。もし属性が存在しない場合、新たに作成されます。 + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>value</parameter></term> + <listitem> + <para> + 属性値 + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + 古い <classname>DomAttribute</classname> ノード、 + もしくは最初に属性が作成された場合は新しいノードを返します。 + </para> + </refsect1> + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title>属性を設定する</title> + <programlisting role="php"> <![CDATA[ <?php $doc = domxml_new_doc("1.0"); @@ -31,14 +68,27 @@ $newnode->set_attribute("align", "left"); ?> ]]> - </programlisting> - </example> - </para> - <para> - <function>DomElement_get_attribute</function>も参照する。 - </para> - </refsect1> - </refentry> + </programlisting> + </example> + </para> + </refsect1> + <refsect1 role="migration"> + <title>PHP 5 への移行</title> + <para> + <xref linkend="function.dom-domelement-setattribute" /> + を使用してください。 + </para> + </refsect1> + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><xref linkend="function.domelement-get-attribute-node" /></member> + <member><xref linkend="function.domelement-get-attribute" /></member> + </simplelist> + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc-ja/reference/domxml/functions/DomElement-tagname.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/domxml/functions/DomElement-tagname.xml diff -u phpdoc-ja/reference/domxml/functions/DomElement-tagname.xml:1.3 phpdoc-ja/reference/domxml/functions/DomElement-tagname.xml:1.4 --- phpdoc-ja/reference/domxml/functions/DomElement-tagname.xml:1.3 Mon Nov 22 23:45:32 2004 +++ phpdoc-ja/reference/domxml/functions/DomElement-tagname.xml Sun Jul 24 04:25:24 2005 @@ -1,24 +1,73 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/domxml.xml, last change in rev 1.16 --> -<!-- EN-Revision: 1.6 Maintainer: hirokawa Status: ready --> - <refentry id='function.DomElement-tagname'> - <refnamediv> - <refname>DomElement->tagname</refname> - <refpurpose> - 要素名を返す - </refpurpose> - </refnamediv> - <refsect1> - <title>説明</title> - <methodsynopsis> - <type>string</type><methodname>DomElement->tagname</methodname> - <void/> - </methodsynopsis> - <para> - &warn.undocumented.func; - </para> - </refsect1> - </refentry> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.7 Maintainer: shimooka Status: ready --> +<!-- CREDITS: hirokawa --> +<refentry id='function.domelement-tagname'> + <refnamediv> + <refname>DomElement->tagname()</refname> + <refpurpose> + 現在の要素名を返す + </refpurpose> + </refnamediv> + <refsect1 role="description"> + &reftitle.description; + <classsynopsis> + <ooclass><classname>DomElement</classname></ooclass> + <methodsynopsis> + <type>string</type><methodname>tagname</methodname> + <void/> + </methodsynopsis> + </classsynopsis> + <para> + 現在のノードの名前を返します。この関数をコールすることは、 + <property>tagname</property> プロパティにアクセスする、 + もしくは現在のノードに対して <xref linkend="function.domnode-node-name" /> + をコールすることと等価です。 + </para> + </refsect1> + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + 現在の <classname>DomElement</classname> ノードの名前を返します。 + </para> + </refsect1> + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title>ノード名を取得する</title> + <programlisting role="php"> +<![CDATA[ +<?php + +include("example.inc"); + +if (!$dom = domxml_open_mem($xmlstr)) { + echo "Error while parsing the document\n"; + exit; +} + +$root = $dom->document_element(); +echo $root->tagname(); // chapter +echo $root->tagname; // chapter +echo $root->node_name(); // chapter + + +?> + +]]> + </programlisting> + </example> + </para> + </refsect1> + <refsect1 role="migration"> + <title>PHP 5 への移行</title> + <para> + <classname>DOMElement</classname> オブジェクトの + <property>tagName</property> プロパティを使用してください。 + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables:
« previous php.doc.ja (#1071) next »