cvs: peardoc /ja/package networking.xml /ja/package/networking uri-template.xml /ja/package/networking/uri-template intro.xml /ja/package/php
php-compatinfo.xml /ja/package/php/php-compatinfo cli.xml intro.xml whatsnew.xml

From: Date: Fri, 15 Feb 2008 21:56:44 +0000
Subject: cvs: peardoc /ja/package networking.xml /ja/package/networking uri-template.xml /ja/package/networking/uri-template intro.xml /ja/package/php
php-compatinfo.xml /ja/package/php/php-compatinfo cli.xml intro.xml whatsnew.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-10486@lists.php.net to get a copy of this message
takagi Fri Feb 15 21:56:44 2008 UTC Added files: /peardoc/ja/package/networking/uri-template intro.xml /peardoc/ja/package/networking uri-template.xml Removed files: /peardoc/ja/package/php/php-compatinfo intro.xml Modified files: /peardoc/ja/package/php/php-compatinfo whatsnew.xml cli.xml /peardoc/ja/package/php php-compatinfo.xml /peardoc/ja/package networking.xml Log: sync with en.

http://cvs.php.net/viewvc.cgi/peardoc/ja/package/php/php-compatinfo/whatsnew.xml?r1=1.2&r2=1.3&diff_format=u Index: peardoc/ja/package/php/php-compatinfo/whatsnew.xml diff -u peardoc/ja/package/php/php-compatinfo/whatsnew.xml:1.2 peardoc/ja/package/php/php-compatinfo/whatsnew.xml:1.3 --- peardoc/ja/package/php/php-compatinfo/whatsnew.xml:1.2 Thu Feb 14 03:52:22 2008 +++ peardoc/ja/package/php/php-compatinfo/whatsnew.xml Fri Feb 15 21:56:43 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.5 Maintainer: takagi Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.6 Maintainer: takagi Status: ready --> <refentry id="package.php.php-compatinfo.whatsnew"> <refnamediv> <refname>ニュース</refname> @@ -287,6 +287,13 @@ </para> </listitem> <listitem> + <para><emphasis role="bold">コマンドラインインターフェイス</emphasis> + の結果表示を &quot;xml&quot; あるいは &quot;cli&quot; (デフォルト) + で行えるようになりました。 + 新しいパラメータ -r あるいは --report を使用します。 + </para> + </listitem> + <listitem> <para><emphasis role="bold">loadVersion()</emphasis> が、関数あるいは関数+定数の一覧を返せるようになりました。 </para> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/php/php-compatinfo/cli.xml?r1=1.2&r2=1.3&diff_format=u Index: peardoc/ja/package/php/php-compatinfo/cli.xml diff -u peardoc/ja/package/php/php-compatinfo/cli.xml:1.2 peardoc/ja/package/php/php-compatinfo/cli.xml:1.3 --- peardoc/ja/package/php/php-compatinfo/cli.xml:1.2 Thu Feb 14 03:52:22 2008 +++ peardoc/ja/package/php/php-compatinfo/cli.xml Fri Feb 15 21:56:43 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.3 Maintainer: takagi Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.5 Maintainer: takagi Status: ready --> <refentry id="package.php.php-compatinfo.cli"> <refnamediv> <refname>CLI</refname> @@ -297,6 +297,90 @@ </para> </listitem> </varlistentry> + <varlistentry> + <term> + <parameter>-r</parameter> | <parameter>--report</parameter> + </term> + <listitem> + <para> + xml あるいは cli (デフォルト) のいずれかで結果を表示します。 + </para> + <para> + たとえば、 + <synopsis> +pci -r xml -f C:\wamp\php\PEAR\PHP\CodeSniffer.php + </synopsis> + の結果はこのようになります。 + <screen> + <![CDATA[ +<?xml version="1.0" encoding="UTF-8"?> +<file name="C:\wamp\php\PEAR\PHP\CodeSniffer.php"> +<version>5.1.2</version> +<extension count="5">spl, pcre, date, xml, tokenizer</extension> +<token count="3">throw, protected, public</token> +<constant count="3">__FILE__, PHP_EOL, DIRECTORY_SEPARATOR</constant> +</file> + ]]> + </screen> + また、さらにデバッグオプション ( -v4 ) を追加すると、 + <synopsis> +pci -r xml -v4 -f C:\wamp\php\PEAR\PHP\CodeSniffer.php + </synopsis> + 結果は次のようになります。 + <screen> + <![CDATA[ +<?xml version="1.0" encoding="UTF-8"?> +<file name="C:\wamp\php\PEAR\PHP\CodeSniffer.php"> +<version>5.1.2</version> +<extension count="5">spl, pcre, date, xml, tokenizer</extension> +<token count="3">throw, protected, public</token> +<constant count="3">__FILE__, PHP_EOL, DIRECTORY_SEPARATOR</constant> +<function extension="spl" pecl="false" version="5.1.2">spl_autoload_register</function> +<function version="5.0.2">interface_exists</function> +<function version="5.0.0">file_put_contents</function> +<function extension="tokenizer" pecl="false" version="4.2.0">token_name</function> +<function version="4.2.0">var_export</function> +<function version="4.0.4">constant</function> +<function version="4.0.2">wordwrap</function> +<function version="4.0.0">class_exists</function> +<function version="4.0.0">define</function> +<function version="4.0.0">chdir</function> +<function version="4.0.0">dirname</function> +<function version="4.0.0">substr</function> +<function version="4.0.0">str_replace</function> +<function version="4.0.0">is_file</function> +<function version="4.0.0">is_array</function> +<function version="4.0.0">is_string</function> +<function version="4.0.0">is_dir</function> +<function version="4.0.0">basename</function> +<function version="4.0.0">realpath</function> +<function version="4.0.0">count</function> +<function version="4.0.0">strtolower</function> +<function version="4.0.0">strrpos</function> +<function version="4.0.0">in_array</function> +<function version="4.0.0">explode</function> +<function version="4.0.0">array_pop</function> +<function version="4.0.0">array_merge</function> +<function version="4.0.0">file_exists</function> +<function version="4.0.0">strtr</function> +<function extension="pcre" pecl="false" version="4.0.0">preg_match</function> +<function extension="date" pecl="false" version="4.0.0">time</function> +<function version="4.0.0">ksort</function> +<function version="4.0.0">htmlspecialchars</function> +<function extension="xml" pecl="false" version="4.0.0">utf8_encode</function> +<function version="4.0.0">strlen</function> +<function version="4.0.0">str_repeat</function> +<function version="4.0.0">ord</function> +<function version="4.0.0">strtoupper</function> +<function version="4.0.0">strpos</function> +<function version="4.0.0">rtrim</function> +<function version="4.0.0">is_writable</function> +</file> + ]]> + </screen> + </para> + </listitem> + </varlistentry> </variablelist> </para> </refsect2> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/php/php-compatinfo.xml?r1=1.2&r2=1.3&diff_format=u Index: peardoc/ja/package/php/php-compatinfo.xml diff -u peardoc/ja/package/php/php-compatinfo.xml:1.2 peardoc/ja/package/php/php-compatinfo.xml:1.3 --- peardoc/ja/package/php/php-compatinfo.xml:1.2 Thu Jan 31 03:39:56 2008 +++ peardoc/ja/package/php/php-compatinfo.xml Fri Feb 15 21:56:44 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.6 Maintainer: takagi Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.7 Maintainer: takagi Status: ready --> <sect1 id="package.php.php-compatinfo"> <title>PHP_CompatInfo</title> <para> @@ -83,7 +83,7 @@ これらは必須です。 <itemizedlist> <listitem> - <para><ulink url="&url.php;">PHP</ulink> 4.3.0 以降</para> + <para><ulink url="&url.php;">PHP</ulink> 4.3.10 以降</para> </listitem> <listitem> <para><ulink url="&url.pear;">PEAR</ulink> 1.5.4 以降</para> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/networking.xml?r1=1.19&r2=1.20&diff_format=u Index: peardoc/ja/package/networking.xml diff -u peardoc/ja/package/networking.xml:1.19 peardoc/ja/package/networking.xml:1.20 --- peardoc/ja/package/networking.xml:1.19 Wed May 9 21:16:23 2007 +++ peardoc/ja/package/networking.xml Fri Feb 15 21:56:44 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8" ?> -<!-- $Revision: 1.19 $ --> -<!-- EN-Revision: 1.22 Maintainer: elf Status: ready --> +<!-- $Revision: 1.20 $ --> +<!-- EN-Revision: 1.23 Maintainer: elf Status: ready --> <chapter id="package.networking"> <title>ネットワーク処理</title> @@ -35,6 +35,7 @@ &package.networking.net-traceroute; &package.networking.net-whois; &package.networking.net-wifi; + &package.networking.uri-template; </chapter> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/peardoc/ja/package/networking/uri-template/intro.xml?view=markup&rev=1.1 Index: peardoc/ja/package/networking/uri-template/intro.xml +++ peardoc/ja/package/networking/uri-template/intro.xml <?xml version="1.0" encoding="utf-8" ?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> <refentry id="package.networking.uri-template.intro"> <refnamediv> <refname>導入</refname> <refpurpose> <classname>URI_Template</classname> について </refpurpose> </refnamediv> <refsect1 id="package.networking.uri-template.intro.overview"> <title>概要</title> <para> URI テンプレートは、変数が埋め込まれた文字列です。 この変数を置換することで、文字列が URI に変換されます。 </para> <para> URI テンプレートについての詳細な情報は、以下の場所で得られます。 </para> <itemizedlist> <listitem> <para> <ulink url="http://bitworking.org/projects/URI-Templates/"> URI テンプレートプロジェクトのページ </ulink> </para> </listitem> <listitem> <para> XML.com の記事 <ulink url="http://www.xml.com/pub/a/2005/04/06/restful.html">Constructing or Traversing URIs?</ulink> </para> </listitem> <listitem> <para> <ulink url="http://blog.unto.net/work/uri-templates-draft/">DeWitt Clinton</ulink> </para> </listitem> <listitem> <para> <ulink url="http://www.mnot.net/blog/2006/10/04/uri_templating">Mark Nottingham</ulink> </para> </listitem> <listitem> <para> <ulink url="http://www.snellspace.com/wp/?p=467">James Snell</ulink> </para> </listitem> </itemizedlist> <para> 簡単に言うと、誰かが URI の構造を表す URI テンプレートを作成しておけば 後から別の人が具体的な情報を埋め込んで URI を作成できるようになるということです。 Joe Gregorio が、考えうる <ulink url="http://bitworking.org/news/296/How-To-Do-RESTful-Partial-Updates"> 使用例</ulink> を書いています。 </para> </refsect1> <refsect1 id="package.networking.uri-template.intro.setup"> <title>準備</title> <refsect2> <title>要件</title> <para> <classname>URI_Template</classname> を使うには <ulink url="&url.php;">PHP 5</ulink> が必要です。 </para> </refsect2> <refsect2> <title>インストール</title> <para> <classname>URI_Template</classname> パッケージのインストールは、 PEAR インストーラのコマンド <command>pear install URI_Template</command> を用いて行います。 </para> <para> 別のインストール方法もあります。<command>pear</command> インストーラコマンドが使用できない場合のインストール方法については <link linkend="installation">インストールの章</link> を参照ください。 </para> </refsect2> <refsect2> <title>アンインストール</title> <para> パッケージをアンインストールするには <command>pear uninstall URI_Template</command> とします。 </para> </refsect2> </refsect1> <refsect1 id="package.networking.uri-templates.intro.examples"> <title>例</title> <example> <title></title> <programlisting role="php"> require_once "URI/Template.php"; $values = array("a" => "foo", "b" => "bar", "data" => "10,20,30", "points" => array(10, 20, 30), "list0" => array(), "str0" => "", "reserved" => ":/?#[]@!$&amp;'()*+,;=", "a_b" => "baz"); $t = new URI_Template("/{-append|/|a}{-opt|data|points}{-neg|@|a}{-prefix|#|b}"); echo $t->substitute($values); /* /foo/data#bar */ $t = new URI_Template("relative/{reserved}/"); echo $t->substitute($values); /* relative/%3A%2F%3F%23%5B%5D%40%21%24%26%27%28%29%2A%2B%2C%3B%3D/ */ $t = new URI_Template("http://example.org/{foo=%25}/"); echo $t->substitute($values); /* http://example.org/%25/ */ $t = new URI_Template("http://example.org/?{-join|&amp;|a,data}"); echo $t->substitute($values); /* http://example.org/?a=foo&amp;data=10%2C20%2C30 */ $t = new URI_Template("http://example.org/?d={-listjoin|,|points}&amp;{-join|&amp;|a,b}"); echo $t->substitute($values); /* http://example.org/?d=10,20,30&amp;a=foo&amp;b=bar */ $t = new URI_Template("http://example.org/?d={-listjoin|,|list0}&amp;{-join|&amp;|foo}"); echo $t->substitute(array()); /* http://example.org/?d=&amp; */ $t = new URI_Template("http://example.org/?d={-listjoin|&amp;d=|points}"); echo $t->substitute($values); /* http://example.org/?d=10&amp;d=20&amp;d=30 */ $t = new URI_Template("http://example.org/{a}{b}/{a_b}"); echo $t->substitute($values); /* http://example.org/foobar/baz */ $t = new URI_Template("http://example.org/{a}{-prefix|/-/|a}/"); echo $t->substitute($values); /* http://example.org/foo/-/foo/ */ </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/viewvc.cgi/peardoc/ja/package/networking/uri-template.xml?view=markup&rev=1.1 Index: peardoc/ja/package/networking/uri-template.xml +++ peardoc/ja/package/networking/uri-template.xml <?xml version="1.0" encoding="utf-8" ?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> <sect1 id="package.networking.uri-template"> <title>URI_Template</title> <para> このパッケージは、URI テンプレートのパーサです。 これは <ulink url="http://bitworking.org/projects/URI-Templates/">URI Template draft</ulink> で定義されているもので、 現在 IETF に提案中です。 </para> <warning> <para> URI テンプレートの標準化作業はまだ完了していないことに注意しましょう。 したがって、API やこのパッケージの内部動作は 今後大きく変わる可能性があります。 </para> </warning> &package.networking.uri-template.intro; </sect1> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->
« previous php.pear.doc (#10486) next »