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: | Hideyuki Shimooka | 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:
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: