svn: /phpdoc/ja/trunk/reference/ expect/functions/expect-popen.xml filter/examples.xml sqlite3/constants.xml

From: Date: Tue, 11 Aug 2009 21:08:30 +0000
Subject: svn: /phpdoc/ja/trunk/reference/ expect/functions/expect-popen.xml filter/examples.xml sqlite3/constants.xml
Groups: php.doc.ja 
Request: Send a blank email to doc-ja+get-2582@lists.php.net to get a copy of this message
takagi Tue, 11 Aug 2009 21:08:30 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=287116 Log: sync with en. Changed paths: U phpdoc/ja/trunk/reference/expect/functions/expect-popen.xml A phpdoc/ja/trunk/reference/filter/examples.xml U phpdoc/ja/trunk/reference/sqlite3/constants.xml Modified: phpdoc/ja/trunk/reference/expect/functions/expect-popen.xml =================================================================== --- phpdoc/ja/trunk/reference/expect/functions/expect-popen.xml 2009-08-11 21:06:10 UTC (rev 287115) +++ phpdoc/ja/trunk/reference/expect/functions/expect-popen.xml 2009-08-11 21:08:30 UTC (rev 287116) @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<!-- EN-Revision: 287059 Maintainer: takagi Status: ready --> +<!-- EN-Revision: 287078 Maintainer: takagi Status: ready --> <refentry xml:id="function.expect-popen" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>expect_popen</refname> Added: phpdoc/ja/trunk/reference/filter/examples.xml =================================================================== --- phpdoc/ja/trunk/reference/filter/examples.xml (rev 0) +++ phpdoc/ja/trunk/reference/filter/examples.xml 2009-08-11 21:08:30 UTC (rev 287116) @@ -0,0 +1,134 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision$ --> +<!-- EN-Revision: 283810 Maintainer: takagi Status: ready --> + +<chapter xml:id="filter.examples" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + &reftitle.examples; + + <section xml:id='filter.examples.validation'> + <title>検証</title> + <para> + <example> + <title><function>filter_var</function> でのメールアドレスの検証</title> + <programlisting role="php" xml:id="filter.examples.validation.email"> +<![CDATA[ +<?php +$email_a = 'joe@example.com'; +$email_b = 'bogus'; + +if (filter_var($email_a, FILTER_VALIDATE_EMAIL)) { + echo "(email_a) はメールアドレスとして有効です。"; +} +if (filter_var($email_b, FILTER_VALIDATE_EMAIL)) { + echo "(email_b) はメールアドレスとして有効です。"; +} +?> +]]> + </programlisting> + &example.outputs; + <screen> +<![CDATA[ +(email_a) はメールアドレスとして有効です。 +]]> + </screen> + </example> + </para> + + <para> + <example> + <title><function>filter_var</function> での IP アドレスの検証</title> + <programlisting role="php" xml:id="filter.examples.validation.ip"> +<![CDATA[ +<?php +$ip_a = '127.0.0.1'; +$ip_b = '42.42'; + +if (filter_var($ip_a, FILTER_VALIDATE_IP)) { + echo "(ip_a) は IP アドレスとして有効です。"; +} +if (filter_var($ip_b, FILTER_VALIDATE_IP)) { + echo "(ip_b) は IP アドレスとして有効です。"; +} +?> +]]> + </programlisting> + &example.outputs; + <screen> +<![CDATA[ +(ip_a) は IP アドレスとして有効です。 +]]> + </screen> + </example> + </para> + </section> + + <section xml:id='filter.examples.sanitization'> + <title>除去</title> + <para> + <example> + <title>メールアドレスの検証、および不正な部分の除去</title> + <programlisting role="php" xml:id="filter.examples.sanitization.email"> +<![CDATA[ +<?php +$a = 'joe@example.org'; +$b = 'bogus - at - example dot org'; +$c = '(bogus@example.org)'; + +$sanitized_a = filter_var($a, FILTER_SANITIZE_EMAIL); +if (filter_var($sanitized_a, FILTER_VALIDATE_EMAIL)) { + echo "処理済の (a) はメールアドレスとして有効です。\n"; +} + +$sanitized_b = filter_var($b, FILTER_SANITIZE_EMAIL); +if (filter_var($sanitized_b, FILTER_VALIDATE_EMAIL)) { + echo "処理済のメールアドレスは有効です。"; +} else { + echo "処理済の (b) はメールアドレスとして無効です。\n"; +} + +$sanitized_c = filter_var($c, FILTER_SANITIZE_EMAIL); +if (filter_var($sanitized_c, FILTER_VALIDATE_EMAIL)) { + echo "処理済の (c) はメールアドレスとして有効です。\n"; + echo "処理前: $c\n"; + echo "処理後: $sanitized_c\n"; +} +?> +]]> + </programlisting> + &example.outputs; + <screen> +<![CDATA[ +処理済の (a) はメールアドレスとして有効です。 +処理済の (b) はメールアドレスとして無効です。 +処理済の (c) はメールアドレスとして有効です。 +処理前: (bogus@example.org) +処理後: bogus@example.org +]]> + </screen> + </example> + </para> + </section> + +</chapter> + +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-quote-attributes:t +sgml-indent-step:1 +sgml-indent-data:t +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"../../../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 +--> + Property changes on: phpdoc/ja/trunk/reference/filter/examples.xml ___________________________________________________________________ Added: svn:keywords + Id Rev Revision Added: svn:eol-style + native Modified: phpdoc/ja/trunk/reference/sqlite3/constants.xml =================================================================== --- phpdoc/ja/trunk/reference/sqlite3/constants.xml 2009-08-11 21:06:10 UTC (rev 287115) +++ phpdoc/ja/trunk/reference/sqlite3/constants.xml 2009-08-11 21:08:30 UTC (rev 287116) @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<!-- EN-Revision: 283838 Maintainer: takagi Status: ready --> +<!-- EN-Revision: 287088 Maintainer: takagi Status: ready --> <appendix xml:id="sqlite3.constants" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> &reftitle.constants; @@ -14,7 +14,7 @@ </term> <listitem> <simpara> - SQLite3_result::fetchArray が返す結果セットが、 + <methodname>SQLite3_result::fetchArray</methodname> が返す結果セットが、 カラム名をインデックスとする配列であることを指定します。 </simpara> </listitem> @@ -26,7 +26,7 @@ </term> <listitem> <simpara> - SQLite3_result::fetchArray が返す結果セットが、 + <methodname>SQLite3_result::fetchArray</methodname> が返す結果セットが、 カラム番号をインデックスとする配列であることを指定します。 カラム番号は 0 からはじまります。 </simpara> @@ -39,7 +39,7 @@ </term> <listitem> <simpara> - SQLite3_result::fetchArray が返す結果セットが、 + <methodname>SQLite3_result::fetchArray</methodname> が返す結果セットが、 カラム名とカラム番号の両方をインデックスとする配列であることを指定します。 カラム番号は 0 からはじまります。 </simpara>

« previous php.doc.ja (#2582) next »