cvs: peardoc /ja/package/xml/xml_sql2xml xml-sql2xml.xml /ja/package/xml/xml_sql2xml/xml-sql2xml example.xml intro-passing.xml intro-simple.xml
intro-xpath.xml /ja/package/xml/xml_sql2xml/xml-sql2xml/xml-sql2xml add.xml addarray.xml addresult.xml addsql.xml addxmlfile.xml addxmlstring.xml
getxml.xml getxmlobject.xml getxpathchildvalues.xml getxpathvalue.xml setencoding.xml setoptions.xml setparenttables.xml xml-sql2xml.xml

From: Date: Sun, 08 May 2005 03:26:47 +0000
Subject: cvs: peardoc /ja/package/xml/xml_sql2xml xml-sql2xml.xml /ja/package/xml/xml_sql2xml/xml-sql2xml example.xml intro-passing.xml intro-simple.xml
intro-xpath.xml /ja/package/xml/xml_sql2xml/xml-sql2xml/xml-sql2xml add.xml addarray.xml addresult.xml addsql.xml addxmlfile.xml addxmlstring.xml
getxml.xml getxmlobject.xml getxpathchildvalues.xml getxpathvalue.xml setencoding.xml setoptions.xml setparenttables.xml xml-sql2xml.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-5993@lists.php.net to get a copy of this message
elf Sat May 7 23:26:47 2005 EDT Added files: /peardoc/ja/package/xml/xml_sql2xml xml-sql2xml.xml /peardoc/ja/package/xml/xml_sql2xml/xml-sql2xml example.xml intro-passing.xml intro-simple.xml intro-xpath.xml /peardoc/ja/package/xml/xml_sql2xml/xml-sql2xml/xml-sql2xml add.xml addarray.xml addresult.xml addsql.xml addxmlfile.xml addxmlstring.xml getxml.xml getxmlobject.xml getxpathchildvalues.xml getxpathvalue.xml setencoding.xml setoptions.xml setparenttables.xml xml-sql2xml.xml Log: o added japanese manual (thanks shimooka)

http://cvs.php.net/co.php/peardoc/ja/package/xml/xml_sql2xml/xml-sql2xml.xml?r=1.1&p=1 Index: peardoc/ja/package/xml/xml_sql2xml/xml-sql2xml.xml +++ peardoc/ja/package/xml/xml_sql2xml/xml-sql2xml.xml <!-- $Revision: 1.1 $ --> <sect1 id="package.xml.xml-sql2xml"> <title>XML_sql2xml</title> <para> SQL クエリを XML 形式のリザルトセットへ変換します。 </para> <para> XML_sql2xml は既存のリザルトセットか SQL ステートメントを XML 形式に変換します。 </para> &package.xml.xml-sql2xml.intro-simple; &package.xml.xml-sql2xml.intro-passing; &package.xml.xml-sql2xml.intro-xpath; &package.xml.xml-sql2xml.xml-sql2xml.xml-sql2xml; &package.xml.xml-sql2xml.xml-sql2xml.add; &package.xml.xml-sql2xml.xml-sql2xml.addxmlfile; &package.xml.xml-sql2xml.xml-sql2xml.addxmlstring; &package.xml.xml-sql2xml.xml-sql2xml.addresult; &package.xml.xml-sql2xml.xml-sql2xml.addsql; &package.xml.xml-sql2xml.xml-sql2xml.addarray; &package.xml.xml-sql2xml.xml-sql2xml.getxml; &package.xml.xml-sql2xml.xml-sql2xml.getxmlobject; &package.xml.xml-sql2xml.xml-sql2xml.setoptions; &package.xml.xml-sql2xml.xml-sql2xml.setencoding; <!-- &package.xml.xml-sql2xml.xml-sql2xml.setparenttables; --> &package.xml.xml-sql2xml.xml-sql2xml.getxpathvalue; &package.xml.xml-sql2xml.xml-sql2xml.getxpathchildvalues; <!-- &package.xml.xml-sql2xml.xml-sql2xml-ext.xml-sql2xml-ext; --> <!-- &package.xml.xml-sql2xml.xml-sql2xml-ext.insertnewrow; --> </sect1> <!-- 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 sgml-parent-document:nil sgml-default-dtd-file:"../../../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 --> http://cvs.php.net/co.php/peardoc/ja/package/xml/xml_sql2xml/xml-sql2xml/example.xml?r=1.1&p=1 Index: peardoc/ja/package/xml/xml_sql2xml/xml-sql2xml/example.xml +++ peardoc/ja/package/xml/xml_sql2xml/xml-sql2xml/example.xml <!-- $Revision: 1.1 $ --> <refentry id="package.xml.xml-sql2xml.example"> <refnamediv> <refname>Example(s)</refname> <refpurpose>What for (an) Example(s)?</refpurpose> </refnamediv> <refsect1 id="package.xml.xml-sql2xml.example.example1"> <title></title> <para> Example description </para> <!-- the cdata section will formated "as is take care for tabulators --> <programlisting role="php"> <![CDATA[ ]]> </programlisting> </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 sgml-parent-document:nil sgml-default-dtd-file:"../../../../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 --> http://cvs.php.net/co.php/peardoc/ja/package/xml/xml_sql2xml/xml-sql2xml/intro-passing.xml?r=1.1&p=1 Index: peardoc/ja/package/xml/xml_sql2xml/xml-sql2xml/intro-passing.xml +++ peardoc/ja/package/xml/xml_sql2xml/xml-sql2xml/intro-passing.xml <!-- EN-Revision: 1.1 Maintainer: Yusuke Hata Status: partial --> <!-- $Revision: 1.1 $ --> <refentry id="package.xml.xml-sql2xml.intro-passing"> <refnamediv> <refname>導入</refname> <refpurpose>データを変化させる</refpurpose> </refnamediv> <refsect1 id="package.xml.xml-sql2xml.intro-passing.overview"> <title>概要</title> <para> データをオブジェクトへ変化させるには3つの方法があります。 <itemizedlist> <listitem> <para> <emphasis>直接クエリを用いて</emphasis> </para> <para> 先に <link linkend="package.xml.xml-sql2xml.intro-simple">はじめに</link> にある導入を読んでおいてください。 </para> </listitem> <listitem> <para> <emphasis>既存の &class.db-result; オブジェクトを用いて</emphasis> </para> <para> もし貴方が <link linkend="package.database.db"><classname>PEAR::DB</classname></link> の全出力が可能であるか <classname>PEAR::MDB</classname> API が利用可能であるならば、こちらを選ぶべきです。 </para> </listitem> <listitem> <para> <emphasis>配列を用いて</emphasis> </para> <para> これは SQL を直接 XML へ変換させるものではありません。 連想配列をインスタンスへ 渡した場合、配列のキーは XML のタグになり、配列の値はタグの内容に変換されます。 この特徴はデータを与えることで XML の結果を変化させることに役立つことです。 </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.xml.xml-sql2xml.intro-passing.query"> <title>Direct query</title> <para> これは DBMS に接続し、問い合わせと取得を自動的に行います。 <classname>XML_sql2xml</classname> は有効な &intro.db-dsn; を <link linkend="package.xml.xml-sql2xml.xml-sql2xml.xml-sql2xml">コンストラクタ</link> パラメータ に必要とします。 クエリは <link linkend="package.xml.xml-sql2xml.xml-sql2xml.getxml"><function>getXML</function></link> か <link linkend="package.xml.xml-sql2xml.xml-sql2xml.getxml"><function>add</function></link> メソッドに渡さなければなりません。 </para> <para> <link linkend="package.xml.xml-sql2xml.intro-simple">はじめに</link> に導入例があるので見てださい。 </para> </refsect1> <refsect1 id="package.xml.xml-sql2xml.intro-passing.db-result"> <title>DB_Result オブジェクトを渡す</title> <para> <link linkend="package.database.db"><classname>PEAR::DB</classname></link> と <classname>PEAR::MDB</classname> は &class.db-result; として リザルトセットを返します。 あなたは &class.db-common; インスタンスを <link linkend="package.xml.xml-sql2xml.xml-sql2xml.xml-sql2xml">コンストラクタ</link> に、 そして &class.db-result; インスタンスを <link linkend="package.xml.xml-sql2xml.xml-sql2xml.getxml"><function>getXML</function></link> か <link linkend="package.xml.xml-sql2xml.xml-sql2xml.getxml"><function>add</function></link> に提供しなければなりません。 </para> <example> <title>DB_Result オブジェクトを渡す</title> <programlisting role="php"> <![CDATA[ <?php require_once "XML/sql2xml.php"; require_once "DB.php"; $db = db::connect("mysql://username:password@localhost/xmltest"); $result = $db->query("select * from bands"); $sql2xmlclass = new xml_sql2xml($db); $xmlstring = $sql2xmlclass->getxml($result); ?> ]]> </programlisting> </example> <para> <parameter>$xmlstring</parameter> への XML 出力は、 <link linkend="package.xml.xml-sql2xml.intro-simple.simple"> "典型的な使用"</link> の例と一緒です。 </para> <para> あなたがデータベース API すべての特徴の恩恵を受けたいのなら、この方法しかありません。 </para> </refsect1> <refsect1 id="package.xml.xml-sql2xml.intro-passing.array"> <title>配列を渡す</title> <para> あなたが入れ子状になった配列を <link linkend="package.xml.xml-sql2xml.xml-sql2xml.getxml"><function>getXML</function></link> か <link linkend="package.xml.xml-sql2xml.xml-sql2xml.getxml"><function>add</function></link> に渡せば、 XML ドキュメントに変換されます。 </para> <example> <title>配列を渡す</title> <programlisting role="php"> <![CDATA[ <?php require_once "XML/sql2xml.php"; $sql2xmlclass = new xml_sql2xml(); $array = array ( array("name"=>"The Blabbers", "birth_year"=>"1998", "birth_place"=>"London", "genre"=>"Rock'n'Roll"), array("name"=>"Only Stupids", "birth_year"=>"1997", "birth_place"=>"New York", "genre"=>"hiphop") ); $xmlstring = $sql2xmlclass->getXML($array); ?> ]]> </programlisting> <para><parameter>$xmlstring</parameter>に代入された XML の出力</para> <programlisting role="php"> <![CDATA[ <?xml version="1.0"?> <root> <result> <row> <name>The Blabbers</name> <birth_year>1998</birth_year> <birth_place>London</birth_place> <genre>Rock'n'Roll</genre> </row> <row> <name>Only Stupids</name> <birth_year>1997</birth_year> <birth_place>New York</birth_place> <genre>hiphop</genre> </row> </result> </root> ]]> </programlisting> </example> </refsect1> <refsect1 id="package.xml.xml-sql2xml.intro-passing.passcount"> <title>もう一組のリザルトセットを渡す</title> <para> <link linkend="package.xml.xml-sql2xml.xml-sql2xml.add"><function>add</function></link> をコールすることで数個のリザルトセットを XML ドキュメントに追加することができます。 あらゆるリザルトセットにこのメソッドをコールし、すべてのリザルトセットを加えたなら、 XML 文書を得るために 引数なしで <link linkend="package.xml.xml-sql2xml.xml-sql2xml.getxml"><function>getXml</function></link> をコールしてください。 </para> <example> <title>Adding result sets</title> <programlisting role="php"> <![CDATA[ $sql2xmlclass->add("select * from bands"); $sql2xmlclass->add("select * from albums"); $xmlstring= $sql2xmlclass->getxml(); ]]> </programlisting> </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 sgml-parent-document:nil sgml-default-dtd-file:"../../../../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 --> http://cvs.php.net/co.php/peardoc/ja/package/xml/xml_sql2xml/xml-sql2xml/intro-simple.xml?r=1.1&p=1 Index: peardoc/ja/package/xml/xml_sql2xml/xml-sql2xml/intro-simple.xml +++ peardoc/ja/package/xml/xml_sql2xml/xml-sql2xml/intro-simple.xml <!-- EN-Revision: 1.1 Maintainer: Yusuke Hata Status: partial --> <!-- $Revision: 1.1 $ --> <refentry id="package.xml.xml-sql2xml.intro-simple"> <refnamediv> <refname>導入</refname> <refpurpose>簡単な変換</refpurpose> </refnamediv> <refsect1 id="package.xml.xml-sql2xml.intro-simple.dbsample"> <title>データベースの例</title> <para> このチュートリアルで、 例として使われるデータベーステーブルです。 <programlisting> <![CDATA[ mysql> select * from bands; +----+--------------+------------+-------------+-------------+ | id | name | birth_year | birth_place | genre | +----+--------------+------------+-------------+-------------+ | 1 | The Blabbers | 1998 | London | Rock'n'Roll | | 2 | Only Stupids | 1997 | New York | Hip Hop | +----+--------------+------------+-------------+-------------+ mysql> select * from albums; +----+---------+------------------+------+-----------------+ | id | bandsID | title | year | comment | +----+---------+------------------+------+-----------------+ | 1 | 1 | BlaBla | 1998 | Their first one | | 2 | 1 | More Talks | 2000 | The second one | | 3 | 2 | All your base... | 1999 | The Classic | +----+---------+------------------+------+-----------------+ ]]> </programlisting> </para> </refsect1> <refsect1 id="package.xml.xml-sql2xml.intro-simple.simple"> <title>典型的な使用</title> <para> デフォルトオプションを使用する例から始めましょう。 新しいインスタンスが DSN と結びつけるので、あなたは SQL クエリを投げるだけでよいです。 インスタンスは自動的に結果を取得し、リザルトセットの XML 表現にしたものを <parameter>$xmlstring</parameter> に代入します。 </para> <example> <title>もっとも典型的な例</title> <programlisting role="php"> <![CDATA[ <?php require_once "XML/sql2xml.php"; $sql2xmlclass = new xml_sql2xml("mysql://username:password@localhost/xmltest"); $xmlstring = $sql2xmlclass->getxml("select * from bands"); ?> ]]> </programlisting> <para> データベーステーブルに基づく <parameter>$xmlstring</parameter> の内容は下記の通りです。 </para> <programlisting> <![CDATA[ <?xml version="1.0"?> <root> <result> <row> <id>1</id> <name>The Blabbers</name> <birth_year>1998</birth_year> <birth_place>London</birth_place> <genre>Rock'n'Roll</genre> </row> <row> <id>2</id> <name>Only Stupids</name> <birth_year>1997</birth_year> <birth_place>New York</birth_place> <genre>Hip Hop</genre> </row> </result> </root> ]]> </programlisting> </example> </refsect1> <refsect1 id="package.xml.xml-sql2xml.intro-simple.join"> <title>結合クエリに基づいて変換</title> <para> もしクエリの結果が結合されたテーブルならば、 XML データ構造は入れ子になり DBMS がどのようにテーブルを結合したかを表します。 この振る舞いは <link linkend="package.xml.xml-sql2xml.xml-sql2xml.setoptions"> <function>setOptions</function></link> のオプションキー <parameter>'nested'</parameter> を使って有効にしたり無効にしたりできます。 デフォルトの値は &true; - 入れ子は有効。 </para> <example> <title>入れ子状になったリザルトセット</title> <programlisting role="php"> <![CDATA[ <?php $sql2xmlclass = new xml_sql2xml("mysql://username:password@localhost/xmltest"); $xmlstring = $sql2xmlclass->getxml("select * from bands left join albums on bands.id = bandsID"); ?> ]]> </programlisting> <para> <parameter>$xmlstring</parameter> に生成された XML </para> <programlisting> <![CDATA[ <?xml version="1.0"?> <root> <result> <row> <id>1</id> <name>The Blabbers</name> <birth_year>1998</birth_year> <birth_place>London</birth_place> <genre>Rock'n'Roll</genre> <row> <id>1</id> <bandsID>1</bandsID> <title>BlaBla</title> <year>1998</year> <comment>Their first one</comment> </row> <row> <id>2</id> <bandsID>1</bandsID> <title>More Talks</title> <year>2000</year> <comment>The second one</comment> </row> </row> <row> <id>2</id> <name>Only Stupids</name> <birth_year>1997</birth_year> <birth_place>New York</birth_place> <genre>Hip Hop</genre> <row> <id>3</id> <bandsID>2</bandsID> <title>All your base...</title> <year>1999</year> <comment>The Classic</comment> </row> </row> </result> </root> ]]> </programlisting> </example> <para> もし入れ子を無効にした場合、 XML 構造の列は平坦になります。 </para> <example> <title>入れ子状になっていないリザルトセット</title> <programlisting role="php"> <![CDATA[ <?php $sql2xmlclass = new xml_sql2xml("mysql://username:password@localhost/xmltest"); $options = array('nested' => false); $sql2xmlclass->setOptions($options); $xmlstring = $sql2xmlclass->getxml("select * from bands left join albums on bands.id = bandsID"); ?> ]]> </programlisting> <para> XML 出力 </para> <programlisting> <![CDATA[ $xmlstring => <?xml version="1.0"?> <root> <result> <row> <id>1</id> <name>The Blabbers</name> <birth_year>1998</birth_year> <birth_place>London</birth_place> <genre>Rock'n'Roll</genre> <id>1</id> <bandsID>1</bandsID> <title>BlaBla</title> <year>1998</year> <comment>Their first one</comment> </row> <row> <id>1</id> <name>The Blabbers</name> <birth_year>1998</birth_year> <birth_place>London</birth_place> <genre>Rock'n'Roll</genre> <id>2</id> <bandsID>1</bandsID> <title>More Talks</title> <year>2000</year> <comment>The second one</comment> </row> <row> <id>2</id> <name>Only Stupids</name> <birth_year>1997</birth_year> <birth_place>New York</birth_place> <genre>Hip Hop</genre> <id>3</id> <bandsID>2</bandsID> <title>All your base...</title> <year>1999</year> <comment>The Classic</comment> </row> </result> </root> ]]> </programlisting> </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 sgml-parent-document:nil sgml-default-dtd-file:"../../../../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 --> http://cvs.php.net/co.php/peardoc/ja/package/xml/xml_sql2xml/xml-sql2xml/intro-xpath.xml?r=1.1&p=1 Index: peardoc/ja/package/xml/xml_sql2xml/xml-sql2xml/intro-xpath.xml +++ peardoc/ja/package/xml/xml_sql2xml/xml-sql2xml/intro-xpath.xml <!-- EN-Revision: 1.2 Maintainer: Yusuke Hata Status: partial --> <!-- $Revision: 1.1 $ --> <refentry id="package.xml.xml-sql2xml.intro-xpath"> <refnamediv> <refname>導入</refname> <refpurpose>XPath を用いる</refpurpose> </refnamediv> <refsect1 id="package.xml.xml-sql2xml.intro-xpath.why"> <title>何故 XPath サポート ?</title> <para> XPath サポートは SQL に問い合わせた後のリザルトセットに対してアクセスするために 導入されました。これはデータベースへリザルトセットを再び問い合わせすることなく より一層の処理を可能にします。 </para> <para> XPath は W3 規格です、そしてそれに対する詳細な情報については、 XSL/XML の本 もしくは、 <ulink url="&url.w3;">&url.w3;</ulink> を訪ねてください。 </para> </refsect1> <refsect1 id="package.xml.xml-sql2xml.intro-xpath.getxpath"> <title>XPath の式を渡す</title> <para> <classname>XML_sql2xml</classname> はリザルトセットの問い合わせについて2つの関数を提供します。 <link linkend="package.xml.xml-sql2xml.xml-sql2xml.getxpathvalue"> <function>getXpathValue</function></link> と <link linkend="package.xml.xml-sql2xml.xml-sql2xml.getxpathchildvalues"> <function>getXpathChildValues</function></link>。 両方とも XPath クエリによって、配列もしくは文字列の結果を返します。 <example> <title>getXpathValue</title> <programlisting role="php"> <![CDATA[ <?php include_once("XML/sql2xml.php"); $sql2xmlclass = new xml_sql2xml("mysql://username:password@localhost/xmltest"); $sql2xmlclass->add("select * from bands"); $xmlstring = $sql2xmlclass->getXpathValue("/root/result/row[id = '2']/name"); ?> ]]> </programlisting> <para> <parameter>$xmlstring</parameter> contains: </para> <programlisting> <![CDATA[ $xmlstring = 'Only Stupids' ]]> </programlisting> </example> <example> <title>getXpathChildValues</title> <programlisting role="php"> <![CDATA[ <?php include_once("XML/sql2xml.php"); $sql2xmlclass = new xml_sql2xml("mysql://username:password@localhost/xmltest"); $sql2xmlclass->add("select * from bands"); $xmlstring = $sql2xmlclass->getXpathChildValues("/root/result/row[id = '2']"); ?> ]]> </programlisting> <para> <parameter>$xmlstring</parameter> contains: </para> <programlisting> <![CDATA[ Array ( [] => [id] => 2 [name] => Only Stupids [birth_year] => 1997 [birth_place] => New York [genre] => Hip Hop ) ]]> </programlisting> </example> </para> </refsect1> <refsect1 id="package.xml.xml-sql2xml.intro-xpath.mixsqlxpath"> <title>XPath クエリと SQL の混合</title> <para> SQL クエリに XPath クエリを挿入することができます。例では先に SQL クエリが終了し、 再度第2の SQL クエリが実行されます、しかし <parameter>bandsID</parameter> の パラメータは XPath 式の波括弧から取得される。この表現では <emphasis>最初</emphasis> の SQL クエリのリザルトセットで処理されます。 </para> <example> <title>混合したクエリ</title> <programlisting role="php"> <![CDATA[ <?php include_once("XML/sql2xml.php"); $sql2xmlclass = new xml_sql2xml("mysql://username:password@localhost/xmltest"); $sql2xmlclass->add("select * from bands"); $sql2xmlclass->add("select * from albums where bandsID = {/root/result/row[name = 'The Blabbers']/id}"); $xmlstring = $sql2xmlclass->getxml(); ?> ]]> </programlisting> <programlisting> <![CDATA[ $xmlstring = ' <?xml version="1.0"?> <root> <result> <row> <id>1</id> <name>The Blabbers</name> <birth_year>1998</birth_year> <birth_place>London</birth_place> <genre>Rock'n'Roll</genre> </row> <row> <id>2</id> <name>Only Stupids</name> <birth_year>1997</birth_year> <birth_place>New York</birth_place> <genre>Hip Hop</genre> </row> </result> <result> <row> <id>1</id> <bandsID>1</bandsID> <title>BlaBla</title> <year>1998</year> <comment>Their first one</comment> </row> <row> <id>2</id> <bandsID>1</bandsID> <title>More Talks</title> <year>2000</year> <comment>The second one</comment> </row> </result> </root> ]]> </programlisting> </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 sgml-parent-document:nil sgml-default-dtd-file:"../../../../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 --> http://cvs.php.net/co.php/peardoc/ja/package/xml/xml_sql2xml/xml-sql2xml/xml-sql2xml/add.xml?r=1.1&p=1 Index: peardoc/ja/package/xml/xml_sql2xml/xml-sql2xml/xml-sql2xml/add.xml +++ peardoc/ja/package/xml/xml_sql2xml/xml-sql2xml/xml-sql2xml/add.xml <!-- EN-Revision: 1.3 Maintainer: Yusuke Hata Status: partial --> <!-- $Revision: 1.1 $ --> <refentry id="package.xml.xml-sql2xml.xml-sql2xml.add"> <refnamediv> <refname>XML_sql2xml::add</refname> <refpurpose>新しいリザルトセットを追加するための一般メソッド</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once "XML/sql2xml.php"; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>XML_sql2xml::add</function></funcdef> <paramdef> string <parameter>$resultset</parameter> </paramdef> <paramdef> mixed <parameter><optional>$params = &null;</optional></parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-sql2xml.xml-sql2xml.add.desc"> &title.desc; <para> オブジェクトに新しいリザルトセットを追加するための一般メソッドです。 インプットパラメータとして SQL ステートメント、 PEAR::&class.db-result; オブジェクトまたは配列を与えると、 このメソッドは適切な入力のためのメソッドをコールします。 </para> </refsect1> <refsect1 id="package.xml.xml-sql2xml.xml-sql2xml.add.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $resultset</parameter> - SQL ステートメント、 &class.db-result; オブジェクトまたは配列 </para> </listitem> <listitem> <para> <parameter>mixed $params</parameter> - parameters for the following functions </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.xml.xml-sql2xml.xml-sql2xml.add.note"> &title.note; &note.notstatic; <simpara></simpara> </refsect1> <refsect1 id="package.xml.xml-sql2xml.xml-sql2xml.add.see"> &title.see; <!-- Additional links go here --> <para> <link linkend="package.xml.xml-sql2xml.xml-sql2xml.addresult">XML_sql2xml::addResult()</link>, <link linkend="package.xml.xml-sql2xml.xml-sql2xml.addsql">XML_sql2xml::addSql()</link>, <link linkend="package.xml.xml-sql2xml.xml-sql2xml.addarray">XML_sql2xml::addArray()</link>, <link linkend="package.xml.xml-sql2xml.xml-sql2xml.addxmlfile">XML_sql2xml::addXmlFile()</link> </para> </refsect1> <refsect1 id="package.xml.xml-sql2xml.xml-sql2xml.add.example"> &title.example; <example> <title>Using <function>add</function></title> <programlisting role="php"> <![CDATA[ $sql2xml->Add("select * from bands"); ]]> </programlisting> </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 sgml-parent-document:nil sgml-default-dtd-file:"../../../../../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 --> http://cvs.php.net/co.php/peardoc/ja/package/xml/xml_sql2xml/xml-sql2xml/xml-sql2xml/addarray.xml?r=1.1&p=1 Index: peardoc/ja/package/xml/xml_sql2xml/xml-sql2xml/xml-sql2xml/addarray.xml +++ peardoc/ja/package/xml/xml_sql2xml/xml-sql2xml/xml-sql2xml/addarray.xml <!-- EN-Revision: 1.2 Maintainer: Yusuke Hata Status: partial --> <!-- $Revision: 1.1 $ --> <refentry id="package.xml.xml-sql2xml.xml-sql2xml.addarray"> <refnamediv> <refname>XML_sql2xml::addArray</refname> <refpurpose>配列からリザルトセットへ追加する</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once "XML/sql2xml.php"; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>XML_sql2xml::addArray</function></funcdef> <paramdef> array <parameter>$array</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-sql2xml.xml-sql2xml.addarray.desc"> &title.desc; <para> 配列から生成した付加をリザルトセットへ追加します。 XML は配列の入れ子を表現します。 </para> </refsect1> <refsect1 id="package.xml.xml-sql2xml.xml-sql2xml.addarray.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>array $array</parameter> - データ配列 </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.xml.xml-sql2xml.xml-sql2xml.addarray.note"> &title.note; &note.notstatic; <simpara></simpara> </refsect1> <refsect1 id="package.xml.xml-sql2xml.xml-sql2xml.addarray.see"> &title.see; <!-- Additional links go here --> <para> <link linkend="package.xml.xml-sql2xml.xml-sql2xml.add">XML_sql2xml::add()</link> </para> </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 sgml-parent-document:nil sgml-default-dtd-file:"../../../../../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 --> http://cvs.php.net/co.php/peardoc/ja/package/xml/xml_sql2xml/xml-sql2xml/xml-sql2xml/addresult.xml?r=1.1&p=1 Index: peardoc/ja/package/xml/xml_sql2xml/xml-sql2xml/xml-sql2xml/addresult.xml +++ peardoc/ja/package/xml/xml_sql2xml/xml-sql2xml/xml-sql2xml/addresult.xml <!-- EN-Revision: 1.2 Maintainer: Yusuke Hata Status: partial --> <!-- $Revision: 1.1 $ --> <refentry id="package.xml.xml-sql2xml.xml-sql2xml.addresult"> <refnamediv> <refname>XML_sql2xml::addResult</refname> <refpurpose>PEAR::DB のリザルトセットを追加する</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once "XML/sql2xml.php"; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>XML_sql2xml::addResult</function></funcdef> <paramdef> Object <parameter>$result</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-sql2xml.xml-sql2xml.addresult.desc"> &title.desc; <para> PEAR::&class.db-result; のリザルトセットを追加する </para> </refsect1> <refsect1 id="package.xml.xml-sql2xml.xml-sql2xml.addresult.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>Object $result</parameter> - &class.db-result; オブジェクト </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.xml.xml-sql2xml.xml-sql2xml.addresult.note"> &title.note; &note.notstatic; <simpara></simpara> </refsect1> <refsect1 id="package.xml.xml-sql2xml.xml-sql2xml.addresult.see"> &title.see; <!-- Additional links go here --> <para> <link linkend="package.xml.xml-sql2xml.xml-sql2xml.add">XML_sql2xml::add()</link> </para> </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 sgml-parent-document:nil sgml-default-dtd-file:"../../../../../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 --> http://cvs.php.net/co.php/peardoc/ja/package/xml/xml_sql2xml/xml-sql2xml/xml-sql2xml/addsql.xml?r=1.1&p=1 Index: peardoc/ja/package/xml/xml_sql2xml/xml-sql2xml/xml-sql2xml/addsql.xml +++ peardoc/ja/package/xml/xml_sql2xml/xml-sql2xml/xml-sql2xml/addsql.xml <!-- EN-Revision: 1.2 Maintainer: Yusuke Hata Status: partial --> <!-- $Revision: 1.1 $ --> <refentry id="package.xml.xml-sql2xml.xml-sql2xml.addsql"> <refnamediv> <refname>XML_sql2xml::addSql</refname> <refpurpose>SQL ステートメントからリザルトセットへ追加する</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once "XML/sql2xml.php"; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>XML_sql2xml::addSql</function></funcdef> <paramdef> string <parameter>$sql</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-sql2xml.xml-sql2xml.addsql.desc"> &title.desc; <para> SQL ステートメントから生成されたリザルトセットを追加します。 この機能はステートメントを実行し XML に変換します。 あなたは <link linkend="package.database.db.intro-dsn"> DSN</link> を <link linkend="package.xml.xml-sql2xml.xml-sql2xml.xml-sql2xml"> コンストラクタ</link>に渡さなければならない。 </para> </refsect1> <refsect1 id="package.xml.xml-sql2xml.xml-sql2xml.addsql.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $sql</parameter> - SQL ステートメントを含む文字列 </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.xml.xml-sql2xml.xml-sql2xml.addsql.note"> &title.note; &note.notstatic; <simpara></simpara> </refsect1> <refsect1 id="package.xml.xml-sql2xml.xml-sql2xml.addsql.see"> &title.see; <!-- Additional links go here --> <para> <link linkend="package.xml.xml-sql2xml.xml-sql2xml.xml-sql2xml"><function>XML_sql2xml::XML_sql2xml</function></link>, <link linkend="package.xml.xml-sql2xml.xml-sql2xml.add"><function>XML_sql2xml::add</function></link> </para> </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 sgml-parent-document:nil sgml-default-dtd-file:"../../../../../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 --> http://cvs.php.net/co.php/peardoc/ja/package/xml/xml_sql2xml/xml-sql2xml/xml-sql2xml/addxmlfile.xml?r=1.1&p=1 Index: peardoc/ja/package/xml/xml_sql2xml/xml-sql2xml/xml-sql2xml/addxmlfile.xml +++ peardoc/ja/package/xml/xml_sql2xml/xml-sql2xml/xml-sql2xml/addxmlfile.xml <!-- EN-Revision: 1.3 Maintainer: Yusuke Hata Status: partial --> <!-- $Revision: 1.1 $ --> <refentry id="package.xml.xml-sql2xml.xml-sql2xml.addxmlfile"> <refnamediv> <refname>XML_sql2xml::addXmlFile</refname> <refpurpose>XML ファイルを追加する</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once "XML/sql2xml.php"; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>XML_sql2xml::addXmlFile</function></funcdef> <paramdef> string <parameter>$file</parameter> </paramdef> <paramdef> mixed <parameter><optional>$xpath = &null;</optional></parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-sql2xml.xml-sql2xml.addxmlfile.desc"> &title.desc; <para> 正常なリザルトセットと同レベルの XML ファイルの内容を加える (それは &lt;root&gt; 直下になります) </para> </refsect1> <refsect1 id="package.xml.xml-sql2xml.xml-sql2xml.addxmlfile.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $file</parameter> - ファイル名 </para> </listitem> <listitem> <para> <parameter>mixed $xpath</parameter> - either a string with the XPath expression or an array with the keys &quot;xpath&quot;=&gt;XPath expression and &quot;root&quot;=&gt;tag/subtag/etc, which are the tags to be inserted before the result. </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.xml.xml-sql2xml.xml-sql2xml.addxmlfile.note"> &title.note; &note.notstatic; <simpara></simpara> </refsect1> <refsect1 id="package.xml.xml-sql2xml.xml-sql2xml.addxmlfile.see"> &title.see; <!-- Additional links go here --> <para> <link linkend="package.xml.xml-sql2xml.xml-sql2xml.add"><function>XML_sql2xml::add</function></link> </para> </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 sgml-parent-document:nil sgml-default-dtd-file:"../../../../../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 --> http://cvs.php.net/co.php/peardoc/ja/package/xml/xml_sql2xml/xml-sql2xml/xml-sql2xml/addxmlstring.xml?r=1.1&p=1 Index: peardoc/ja/package/xml/xml_sql2xml/xml-sql2xml/xml-sql2xml/addxmlstring.xml +++ peardoc/ja/package/xml/xml_sql2xml/xml-sql2xml/xml-sql2xml/addxmlstring.xml <!-- EN-Revision: 1.3 Maintainer: Yusuke Hata Status: partial --> <!-- $Revision: 1.1 $ --> <refentry id="package.xml.xml-sql2xml.xml-sql2xml.addxmlstring"> <refnamediv> <refname>XML_sql2xml::addXmlString</refname> <refpurpose>XML 文字列を追加する</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once "XML/sql2xml.php"; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>XML_sql2xml::addXmlString</function></funcdef> <paramdef> string <parameter>$string</parameter> </paramdef> <paramdef> mixed <parameter><optional>$xpath = &null;</optional></parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-sql2xml.xml-sql2xml.addxmlstring.desc"> &title.desc; <para> 正常なリザルトセットと同レベルの XML 文字列の内容を加える (それは &lt;root&gt; 直下になります) </para> </refsect1> <refsect1 id="package.xml.xml-sql2xml.xml-sql2xml.addxmlstring.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $string</parameter> - XML 文字列 </para> </listitem> <listitem> <para> <parameter>mixed $xpath</parameter> - either a string with the XPath expression or an array with the keys &quot;xpath&quot;=&gt;XPath expression and &quot;root&quot;=&gt;tag/subtag/etc, which are the tags to be inserted before the result. </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.xml.xml-sql2xml.xml-sql2xml.addxmlstring.note"> &title.note; &note.notstatic; <simpara></simpara> </refsect1> <refsect1 id="package.xml.xml-sql2xml.xml-sql2xml.addxmlstring.see"> &title.see; <!-- Additional links go here --> <para> <link linkend="package.xml.xml-sql2xml.xml-sql2xml.add"><function>XML_sql2xml::add</function></link> </para> </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 sgml-parent-document:nil sgml-default-dtd-file:"../../../../../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 --> http://cvs.php.net/co.php/peardoc/ja/package/xml/xml_sql2xml/xml-sql2xml/xml-sql2xml/getxml.xml?r=1.1&p=1 Index: peardoc/ja/package/xml/xml_sql2xml/xml-sql2xml/xml-sql2xml/getxml.xml +++ peardoc/ja/package/xml/xml_sql2xml/xml-sql2xml/xml-sql2xml/getxml.xml <!-- EN-Revision: 1.3 Maintainer: Yusuke Hata Status: partial --> <!-- $Revision: 1.1 $ --> <refentry id="package.xml.xml-sql2xml.xml-sql2xml.getxml"> <refnamediv> <refname>XML_sql2xml::getXML</refname> <refpurpose>リザルトセットを XML 表現で返す</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once "XML/sql2xml.php"; </funcsynopsisinfo> <funcprototype> <funcdef>string <function>XML_sql2xml::getXML</function></funcdef> <paramdef> mixed <parameter><optional>$result = &null;</optional></parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-sql2xml.xml-sql2xml.getxml.desc"> &title.desc; <para> リザルトセットを XML 表記にした XML 文字列を返します。 直接ここにリザルトセットを提供するか、または一つ以上の XML を必要とするならば、 <function>getXML</function> をコールする前にそれぞれ <link linkend="package.xml.xml-sql2xml.xml-sql2xml.add"><function>add</function></link> に提供しなければなりません、しかし最後に一つはまたここに提供することができます。 </para> </refsect1> <refsect1 id="package.xml.xml-sql2xml.xml-sql2xml.getxml.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>mixed $result</parameter> - &class.db; もしくは SQL クエリの &class.db-result; オブジェクト </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.xml.xml-sql2xml.xml-sql2xml.getxml.return"> &title.returns; <para> <parameter>string</parameter> - XML 文字列 </para> </refsect1> <refsect1 id="package.xml.xml-sql2xml.xml-sql2xml.getxml.note"> &title.note; &note.notstatic; <simpara></simpara> </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 sgml-parent-document:nil sgml-default-dtd-file:"../../../../../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 --> http://cvs.php.net/co.php/peardoc/ja/package/xml/xml_sql2xml/xml-sql2xml/xml-sql2xml/getxmlobject.xml?r=1.1&p=1 Index: peardoc/ja/package/xml/xml_sql2xml/xml-sql2xml/xml-sql2xml/getxmlobject.xml +++ peardoc/ja/package/xml/xml_sql2xml/xml-sql2xml/xml-sql2xml/getxmlobject.xml <!-- EN-Revision: 1.3 Maintainer: Yusuke Hata Status: partial --> <!-- $Revision: 1.1 $ --> <refentry id="package.xml.xml-sql2xml.xml-sql2xml.getxmlobject"> <refnamediv> <refname>XML_sql2xml::getXMLObject</refname> <refpurpose>XML DOM 文書オブジェクトを返す</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once "XML/sql2xml.php"; </funcsynopsisinfo> <funcprototype> <funcdef>Object <function>XML_sql2xml::getXMLObject</function></funcdef> <paramdef> mixed <parameter><optional>$result = &null;</optional></parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-sql2xml.xml-sql2xml.getxmlobject.desc"> &title.desc; <para> Returns an XML DomDocument object with a XML representation of the result sets. The result set can be directly provided here, or if you need more than one in your XML, then you have to provide each of them with <link linkend="package.xml.xml-sql2xml.xml-sql2xml.add"><function>add</function></link> before you call <function>getXMLObject</function>, but the last one can also be provided here. </para> </refsect1> <refsect1 id="package.xml.xml-sql2xml.xml-sql2xml.getxmlobject.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>mixed $result</parameter> - a &class.db-result; object from a &class.db; query </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.xml.xml-sql2xml.xml-sql2xml.getxmlobject.return"> &title.returns; <para> <parameter>Object</parameter> - DomDocument object </para> </refsect1> <refsect1 id="package.xml.xml-sql2xml.xml-sql2xml.getxmlobject.note"> &title.note; &note.notstatic; <simpara></simpara> </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 sgml-parent-document:nil sgml-default-dtd-file:"../../../../../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 --> http://cvs.php.net/co.php/peardoc/ja/package/xml/xml_sql2xml/xml-sql2xml/xml-sql2xml/getxpathchildvalues.xml?r=1.1&p=1 Index: peardoc/ja/package/xml/xml_sql2xml/xml-sql2xml/xml-sql2xml/getxpathchildvalues.xml +++ peardoc/ja/package/xml/xml_sql2xml/xml-sql2xml/xml-sql2xml/getxpathchildvalues.xml <!-- EN-Revision: 1.2 Maintainer: Yusuke Hata Status: partial --> <!-- $Revision: 1.1 $ --> <refentry id="package.xml.xml-sql2xml.xml-sql2xml.getxpathchildvalues"> <refnamediv> <refname>XML_sql2xml::getXpathChildValues</refname> <refpurpose>XPath 式にマッチした子タグを返す</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once "XML/sql2xml.php"; </funcsynopsisinfo> <funcprototype> <funcdef>array <function>XML_sql2xml::getXpathChildValues</function></funcdef> <paramdef> string <parameter>$expr</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-sql2xml.xml-sql2xml.getxpathchildvalues.desc"> &title.desc; <para> XPath で最初にマッチした子タグの値を返します。 </para> </refsect1> <refsect1 id="package.xml.xml-sql2xml.xml-sql2xml.getxpathchildvalues.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $expr</parameter> - XPath 式 </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.xml.xml-sql2xml.xml-sql2xml.getxpathchildvalues.return"> &title.returns; <para> <parameter>array</parameter> - 子タグの内容 子タグ名はキーとなり、内容は値に入ります。 </para> </refsect1> <refsect1 id="package.xml.xml-sql2xml.xml-sql2xml.getxpathchildvalues.note"> &title.note; &note.notstatic; <simpara></simpara> </refsect1> <refsect1 id="package.xml.xml-sql2xml.xml-sql2xml.getxpathchildvalues.see"> &title.see; <!-- Additional links go here --> <para> <link linkend="package.xml.xml-sql2xml.xml-sql2xml.getxpathvalue"> <function>XML_sql2xml::getXpathValue</function> </link> </para> </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 sgml-parent-document:nil sgml-default-dtd-file:"../../../../../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 --> http://cvs.php.net/co.php/peardoc/ja/package/xml/xml_sql2xml/xml-sql2xml/xml-sql2xml/getxpathvalue.xml?r=1.1&p=1 Index: peardoc/ja/package/xml/xml_sql2xml/xml-sql2xml/xml-sql2xml/getxpathvalue.xml +++ peardoc/ja/package/xml/xml_sql2xml/xml-sql2xml/xml-sql2xml/getxpathvalue.xml <!-- EN-Revision: 1.2 Maintainer: Yusuke Hata Status: partial --> <!-- $Revision: 1.1 $ --> <refentry id="package.xml.xml-sql2xml.xml-sql2xml.getxpathvalue"> <refnamediv> <refname>XML_sql2xml::getXpathValue</refname> <refpurpose>XPath 式にマッチしたものを返す</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once "XML/sql2xml.php"; </funcsynopsisinfo> <funcprototype> <funcdef>mixed <function>XML_sql2xml::getXpathValue</function></funcdef> <paramdef> string <parameter>$expr</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-sql2xml.xml-sql2xml.getxpathvalue.desc"> &title.desc; <para> XPath 式に最初にマッチした内容を返します。 </para> </refsect1> <refsect1 id="package.xml.xml-sql2xml.xml-sql2xml.getxpathvalue.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $expr</parameter> - XPath 式 </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.xml.xml-sql2xml.xml-sql2xml.getxpathvalue.return"> &title.returns; <para> <parameter>mixed</parameter> - 評価された XPath 式の内容 </para> </refsect1> <refsect1 id="package.xml.xml-sql2xml.xml-sql2xml.getxpathvalue.note"> &title.note; &note.notstatic; <simpara></simpara> </refsect1> <refsect1 id="package.xml.xml-sql2xml.xml-sql2xml.getxpathvalue.see"> &title.see; <!-- Additional links go here --> <para> <link linkend="package.xml.xml-sql2xml.xml-sql2xml.getxpathchildvalues"> <function>XML_sql2xml::getXpathChildValues</function> </link> </para> </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 sgml-parent-document:nil sgml-default-dtd-file:"../../../../../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 --> http://cvs.php.net/co.php/peardoc/ja/package/xml/xml_sql2xml/xml-sql2xml/xml-sql2xml/setencoding.xml?r=1.1&p=1 Index: peardoc/ja/package/xml/xml_sql2xml/xml-sql2xml/xml-sql2xml/setencoding.xml +++ peardoc/ja/package/xml/xml_sql2xml/xml-sql2xml/xml-sql2xml/setencoding.xml <!-- EN-Revision: 1.2 Maintainer: Yusuke Hata Status: partial --> <!-- $Revision: 1.1 $ --> <refentry id="package.xml.xml-sql2xml.xml-sql2xml.setencoding"> <refnamediv> <refname>XML_sql2xml::setEncoding</refname> <refpurpose>文字エンコードを設定する</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once "XML/sql2xml.php"; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>XML_sql2xml::setEncoding</function></funcdef> <paramdef> string <parameter><optional>$encoding_from="ISO-8859-1"</optional></parameter> </paramdef> <paramdef> string <parameter><optional>$encoding_to="UTF-8"</optional></parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-sql2xml.xml-sql2xml.setencoding.desc"> &title.desc; <para> db2xml 変換のためのエンコードを設定する。 <parameter>$encoding_from</parameter> の値はあなたの データベースシステムによります。 リザルトセットに伝えるためにあなたのシステムが使えるエンコードを DBMS のマニュアルでチェックしてください。 </para> <para> <parameter>$encoding_to</parameter> には生成される XML 文書の文字列を設定します </para> </refsect1> <refsect1 id="package.xml.xml-sql2xml.xml-sql2xml.setencoding.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $encoding_from</parameter> - 元となるエンコード </para> </listitem> <listitem> <para> <parameter>string $encoding_to</parameter> - 変換したいエンコード </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.xml.xml-sql2xml.xml-sql2xml.setencoding.note"> &title.note; &note.notstatic; <simpara></simpara> </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 sgml-parent-document:nil sgml-default-dtd-file:"../../../../../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 --> http://cvs.php.net/co.php/peardoc/ja/package/xml/xml_sql2xml/xml-sql2xml/xml-sql2xml/setoptions.xml?r=1.1&p=1 Index: peardoc/ja/package/xml/xml_sql2xml/xml-sql2xml/xml-sql2xml/setoptions.xml +++ peardoc/ja/package/xml/xml_sql2xml/xml-sql2xml/xml-sql2xml/setoptions.xml <!-- EN-Revision: 1.2 Maintainer: Yusuke Hata Status: partial --> <!-- $Revision: 1.1 $ --> <refentry id="package.xml.xml-sql2xml.xml-sql2xml.setoptions"> <refnamediv> <refname>XML_sql2xml::setOptions</refname> <refpurpose>インスタンスのオプションを設定する</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once "XML/sql2xml.php"; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>XML_sql2xml::setOptions</function></funcdef> <paramdef> array <parameter>$options</parameter> </paramdef> <paramdef> constant <parameter><optional>$delete=&false;</optional></parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-sql2xml.xml-sql2xml.setoptions.desc"> &title.desc; <para> クラスインスタンスのオプションを設定するメソッドです。 </para> </refsect1> <refsect1 id="package.xml.xml-sql2xml.xml-sql2xml.setoptions.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>array $options</parameter> - オプションの配列。 配列のキーは設定するオプションを定義します。 利用できるオプションは次の通りです。 <itemizedlist> <listitem> <para>boolean <parameter>$options['nested']</parameter> - &true; の時は結合クエリが入れ子状になって出力されます。 デフォルトの値は &false; です。 </para> </listitem> <listitem> <para>boolean <parameter>$options['tagNameRow']</parameter> - 列のタグ名。デフォルトは &gt;row&lt; </para> </listitem> <listitem> <para>boolean <parameter>$options['tagNameResult']</parameter> - リザルトセットのタグ名。デフォルトは &gt;result&lt; </para> </listitem> </itemizedlist> </para> </listitem> <listitem> <para> <parameter>constant $delete</parameter> - the old sub options should be deleted </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.xml.xml-sql2xml.xml-sql2xml.setoptions.note"> &title.note; &note.notstatic; <simpara></simpara> </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 sgml-parent-document:nil sgml-default-dtd-file:"../../../../../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 --> http://cvs.php.net/co.php/peardoc/ja/package/xml/xml_sql2xml/xml-sql2xml/xml-sql2xml/setparenttables.xml?r=1.1&p=1 Index: peardoc/ja/package/xml/xml_sql2xml/xml-sql2xml/xml-sql2xml/setparenttables.xml +++ peardoc/ja/package/xml/xml_sql2xml/xml-sql2xml/xml-sql2xml/setparenttables.xml <!-- EN-Revision: 1.2 Maintainer: Yusuke Hata Status: partial --> <!-- $Revision: 1.1 $ --> <refentry id="package.xml.xml-sql2xml.xml-sql2xml.setparenttables"> <refnamediv> <refname>XML_sql2xml::SetParentTables</refname> <refpurpose></refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once "XML/sql2xml.php"; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>XML_sql2xml::SetParentTables</function></funcdef> <paramdef> array <parameter>$parentTables</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-sql2xml.xml-sql2xml.setparenttables.desc"> &title.desc; <para> </para> </refsect1> <refsect1 id="package.xml.xml-sql2xml.xml-sql2xml.setparenttables.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>array $parentTables</parameter> - parent to child relation </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.xml.xml-sql2xml.xml-sql2xml.setparenttables.note"> &title.note; &note.notstatic; <simpara></simpara> </refsect1> <refsect1 id="package.xml.xml-sql2xml.xml-sql2xml.setparenttables.see"> &title.see; <!-- Additional links go here --> <para> </para> </refsect1> <refsect1 id="package.xml.xml-sql2xml.xml-sql2xml.setparenttables.example"> &title.example; <example> <title>Using <function>SetParentTables</function></title> <programlisting role="php"> <![CDATA[ ]]> </programlisting> </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 sgml-parent-document:nil sgml-default-dtd-file:"../../../../../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 --> http://cvs.php.net/co.php/peardoc/ja/package/xml/xml_sql2xml/xml-sql2xml/xml-sql2xml/xml-sql2xml.xml?r=1.1&p=1 Index: peardoc/ja/package/xml/xml_sql2xml/xml-sql2xml/xml-sql2xml/xml-sql2xml.xml +++ peardoc/ja/package/xml/xml_sql2xml/xml-sql2xml/xml-sql2xml/xml-sql2xml.xml <!-- EN-Revision: 1.3 Maintainer: Yusuke Hata Status: partial --> <!-- $Revision: 1.1 $ --> <refentry id="package.xml.xml-sql2xml.xml-sql2xml.xml-sql2xml"> <refnamediv> <refname>XML_sql2xml::XML_sql2xml</refname> <refpurpose>コンストラクタ</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once "XML/sql2xml.php"; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>XML_sql2xml::XML_sql2xml</function></funcdef> <paramdef> mixed <parameter><optional>$dsn = &null;</optional></parameter> </paramdef> <paramdef> string <parameter><optional>$root="root"</optional></parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-sql2xml.xml-sql2xml.xml-sql2xml.desc"> &title.desc; <para> コンストラクタは Pear::DB の <link linkend="package.database.db.intro-dsn">データソース名 (DSN)</link> から データベースに接続することができ、もしくは、もし以前既にデータベースに接続したのであれば Pear::DB オブジェクトハンドルを受け取ることができます。 SQL 文字列を提供するものは動きません。 </para> <para> もし DSN だけを提供するなら、あなたは後で &class.db-result; 、 SQL ステートメントまたは配列を <link linkend="package.xml.xml-sql2xml.xml-sql2xml.add">add</link> しなければなりません。 </para> <para> あなたがもし &lt;root&gt; 以外のルートタグ名を使いたいの時に、 <parameter>$root</parameter> パラメータを使用します。 もしあなたが空の文字列 (&quot;&quot;) を与え、リザルトセット、配列もしくは SQL ステートメントが 加えられているときだけ、ルートタグは生成されません。 そしてリザルトセットの最初のタグがルートタグとして使われます。 </para> </refsect1> <refsect1 id="package.xml.xml-sql2xml.xml-sql2xml.xml-sql2xml.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>mixed $dsn</parameter> - PEAR::DB &quot;データソース名&quot; または &class.db-common; オブジェクト </para> </listitem> <listitem> <para> <parameter>string $root</parameter> - XML root要素の名前 </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.xml.xml-sql2xml.xml-sql2xml.xml-sql2xml.note"> &title.note; &note.canstatic; <simpara></simpara> </refsect1> <refsect1 id="package.xml.xml-sql2xml.xml-sql2xml.xml-sql2xml.see"> &title.see; <!-- Additional links go here --> <para> <link linkend="package.xml.xml-sql2xml.xml-sql2xml.add"><function>XML_sql2xml::add</function></link> </para> </refsect1> <refsect1 id="package.xml.xml-sql2xml.xml-sql2xml.xml-sql2xml.example"> &title.example; <example> <title>Using <function>XML_sql2xml</function></title> <programlisting role="php"> <![CDATA[ $sql2xml = new xml_sql2xml("mysql://root@localhost/xmltest"); $sql2xml->Add("select * from bands"); ]]> </programlisting> </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 sgml-parent-document:nil sgml-default-dtd-file:"../../../../../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 -->
« previous php.pear.doc (#5993) next »