cvs: peardoc /ja/package/xml/xml-sql2xml example.xml intro-passing.xml intro-simple.xml intro-xpath.xml /ja/package/xml/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: | Tadashi Jokagi | Date: | Sun, 08 May 2005 03:57:40 +0000 |
| Subject: | cvs: peardoc /ja/package/xml/xml-sql2xml example.xml intro-passing.xml intro-simple.xml intro-xpath.xml /ja/package/xml/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-5994@lists.php.net to get a copy of this message | ||
elf Sat May 7 23:57:40 2005 EDT
Added files:
/peardoc/ja/package/xml/xml-sql2xml example.xml intro-passing.xml
intro-simple.xml
intro-xpath.xml
/peardoc/ja/package/xml/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, again (thanks shimooka)
http://cvs.php.net/co.php/peardoc/ja/package/xml/xml-sql2xml/example.xml?r=1.1&p=1 Index: peardoc/ja/package/xml/xml-sql2xml/example.xml +++ peardoc/ja/package/xml/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/intro-passing.xml?r=1.1&p=1 Index: peardoc/ja/package/xml/xml-sql2xml/intro-passing.xml +++ peardoc/ja/package/xml/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/intro-simple.xml?r=1.1&p=1 Index: peardoc/ja/package/xml/xml-sql2xml/intro-simple.xml +++ peardoc/ja/package/xml/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/intro-xpath.xml?r=1.1&p=1 Index: peardoc/ja/package/xml/xml-sql2xml/intro-xpath.xml +++ peardoc/ja/package/xml/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/add.xml?r=1.1&p=1 Index: peardoc/ja/package/xml/xml-sql2xml/xml-sql2xml/add.xml +++ peardoc/ja/package/xml/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; ¬e.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/addarray.xml?r=1.1&p=1 Index: peardoc/ja/package/xml/xml-sql2xml/xml-sql2xml/addarray.xml +++ peardoc/ja/package/xml/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; ¬e.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/addresult.xml?r=1.1&p=1 Index: peardoc/ja/package/xml/xml-sql2xml/xml-sql2xml/addresult.xml +++ peardoc/ja/package/xml/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; ¬e.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/addsql.xml?r=1.1&p=1 Index: peardoc/ja/package/xml/xml-sql2xml/xml-sql2xml/addsql.xml +++ peardoc/ja/package/xml/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; ¬e.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/addxmlfile.xml?r=1.1&p=1 Index: peardoc/ja/package/xml/xml-sql2xml/xml-sql2xml/addxmlfile.xml +++ peardoc/ja/package/xml/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 ãã¡ã¤ã«ã®å 容ãå ãã (ãã㯠<root> ç´ä¸ã«ãªãã¾ã) </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 "xpath"=>XPath expression and "root"=>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; ¬e.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/addxmlstring.xml?r=1.1&p=1 Index: peardoc/ja/package/xml/xml-sql2xml/xml-sql2xml/addxmlstring.xml +++ peardoc/ja/package/xml/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 æååã®å 容ãå ãã (ãã㯠<root> ç´ä¸ã«ãªãã¾ã) </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 "xpath"=>XPath expression and "root"=>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; ¬e.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/getxml.xml?r=1.1&p=1 Index: peardoc/ja/package/xml/xml-sql2xml/xml-sql2xml/getxml.xml +++ peardoc/ja/package/xml/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; ¬e.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/getxmlobject.xml?r=1.1&p=1 Index: peardoc/ja/package/xml/xml-sql2xml/xml-sql2xml/getxmlobject.xml +++ peardoc/ja/package/xml/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; ¬e.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/getxpathchildvalues.xml?r=1.1&p=1 Index: peardoc/ja/package/xml/xml-sql2xml/xml-sql2xml/getxpathchildvalues.xml +++ peardoc/ja/package/xml/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; ¬e.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/getxpathvalue.xml?r=1.1&p=1 Index: peardoc/ja/package/xml/xml-sql2xml/xml-sql2xml/getxpathvalue.xml +++ peardoc/ja/package/xml/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; ¬e.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/setencoding.xml?r=1.1&p=1 Index: peardoc/ja/package/xml/xml-sql2xml/xml-sql2xml/setencoding.xml +++ peardoc/ja/package/xml/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; ¬e.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/setoptions.xml?r=1.1&p=1 Index: peardoc/ja/package/xml/xml-sql2xml/xml-sql2xml/setoptions.xml +++ peardoc/ja/package/xml/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> - åã®ã¿ã°åãããã©ã«ã㯠>row< </para> </listitem> <listitem> <para>boolean <parameter>$options['tagNameResult']</parameter> - ãªã¶ã«ãã»ããã®ã¿ã°åãããã©ã«ã㯠>result< </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; ¬e.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/setparenttables.xml?r=1.1&p=1 Index: peardoc/ja/package/xml/xml-sql2xml/xml-sql2xml/setparenttables.xml +++ peardoc/ja/package/xml/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; ¬e.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?r=1.1&p=1 Index: peardoc/ja/package/xml/xml-sql2xml/xml-sql2xml/xml-sql2xml.xml +++ peardoc/ja/package/xml/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> ããªãããã <root> 以å¤ã®ã«ã¼ãã¿ã°åã使ãããã®æã«ã <parameter>$root</parameter> ãã©ã¡ã¼ã¿ã使ç¨ãã¾ãã ããããªããç©ºã®æåå ("") ãä¸ãããªã¶ã«ãã»ãããé åããã㯠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 "ãã¼ã¿ã½ã¼ã¹å" ã¾ã㯠&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; ¬e.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 -->
http://cvs.php.net/co.php/peardoc/ja/package/xml/xml-sql2xml/example.xml?r=1.1&p=1 Index: peardoc/ja/package/xml/xml-sql2xml/example.xml +++ peardoc/ja/package/xml/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/intro-passing.xml?r=1.1&p=1 Index: peardoc/ja/package/xml/xml-sql2xml/intro-passing.xml +++ peardoc/ja/package/xml/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/intro-simple.xml?r=1.1&p=1 Index: peardoc/ja/package/xml/xml-sql2xml/intro-simple.xml +++ peardoc/ja/package/xml/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/intro-xpath.xml?r=1.1&p=1 Index: peardoc/ja/package/xml/xml-sql2xml/intro-xpath.xml +++ peardoc/ja/package/xml/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/add.xml?r=1.1&p=1 Index: peardoc/ja/package/xml/xml-sql2xml/xml-sql2xml/add.xml +++ peardoc/ja/package/xml/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; ¬e.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/addarray.xml?r=1.1&p=1 Index: peardoc/ja/package/xml/xml-sql2xml/xml-sql2xml/addarray.xml +++ peardoc/ja/package/xml/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; ¬e.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/addresult.xml?r=1.1&p=1 Index: peardoc/ja/package/xml/xml-sql2xml/xml-sql2xml/addresult.xml +++ peardoc/ja/package/xml/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; ¬e.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/addsql.xml?r=1.1&p=1 Index: peardoc/ja/package/xml/xml-sql2xml/xml-sql2xml/addsql.xml +++ peardoc/ja/package/xml/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; ¬e.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/addxmlfile.xml?r=1.1&p=1 Index: peardoc/ja/package/xml/xml-sql2xml/xml-sql2xml/addxmlfile.xml +++ peardoc/ja/package/xml/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 ãã¡ã¤ã«ã®å 容ãå ãã (ãã㯠<root> ç´ä¸ã«ãªãã¾ã) </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 "xpath"=>XPath expression and "root"=>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; ¬e.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/addxmlstring.xml?r=1.1&p=1 Index: peardoc/ja/package/xml/xml-sql2xml/xml-sql2xml/addxmlstring.xml +++ peardoc/ja/package/xml/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 æååã®å 容ãå ãã (ãã㯠<root> ç´ä¸ã«ãªãã¾ã) </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 "xpath"=>XPath expression and "root"=>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; ¬e.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/getxml.xml?r=1.1&p=1 Index: peardoc/ja/package/xml/xml-sql2xml/xml-sql2xml/getxml.xml +++ peardoc/ja/package/xml/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; ¬e.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/getxmlobject.xml?r=1.1&p=1 Index: peardoc/ja/package/xml/xml-sql2xml/xml-sql2xml/getxmlobject.xml +++ peardoc/ja/package/xml/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; ¬e.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/getxpathchildvalues.xml?r=1.1&p=1 Index: peardoc/ja/package/xml/xml-sql2xml/xml-sql2xml/getxpathchildvalues.xml +++ peardoc/ja/package/xml/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; ¬e.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/getxpathvalue.xml?r=1.1&p=1 Index: peardoc/ja/package/xml/xml-sql2xml/xml-sql2xml/getxpathvalue.xml +++ peardoc/ja/package/xml/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; ¬e.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/setencoding.xml?r=1.1&p=1 Index: peardoc/ja/package/xml/xml-sql2xml/xml-sql2xml/setencoding.xml +++ peardoc/ja/package/xml/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; ¬e.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/setoptions.xml?r=1.1&p=1 Index: peardoc/ja/package/xml/xml-sql2xml/xml-sql2xml/setoptions.xml +++ peardoc/ja/package/xml/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> - åã®ã¿ã°åãããã©ã«ã㯠>row< </para> </listitem> <listitem> <para>boolean <parameter>$options['tagNameResult']</parameter> - ãªã¶ã«ãã»ããã®ã¿ã°åãããã©ã«ã㯠>result< </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; ¬e.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/setparenttables.xml?r=1.1&p=1 Index: peardoc/ja/package/xml/xml-sql2xml/xml-sql2xml/setparenttables.xml +++ peardoc/ja/package/xml/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; ¬e.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?r=1.1&p=1 Index: peardoc/ja/package/xml/xml-sql2xml/xml-sql2xml/xml-sql2xml.xml +++ peardoc/ja/package/xml/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> ããªãããã <root> 以å¤ã®ã«ã¼ãã¿ã°åã使ãããã®æã«ã <parameter>$root</parameter> ãã©ã¡ã¼ã¿ã使ç¨ãã¾ãã ããããªããç©ºã®æåå ("") ãä¸ãããªã¶ã«ãã»ãããé åããã㯠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 "ãã¼ã¿ã½ã¼ã¹å" ã¾ã㯠&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; ¬e.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 -->