cvs: peardoc /ja/package/console console-color.xml /ja/package/console/console-color colorcodes.xml intro.xml /ja/package/fileformats/file-passwd
constants.xml intro.xml /ja/package/html/html-template-it getglobalvariables.xml setoption.xml

From: Date: Sat, 02 Dec 2006 06:33:48 +0000
Subject: cvs: peardoc /ja/package/console console-color.xml /ja/package/console/console-color colorcodes.xml intro.xml /ja/package/fileformats/file-passwd
constants.xml intro.xml /ja/package/html/html-template-it getglobalvariables.xml setoption.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-8971@lists.php.net to get a copy of this message
takagi Sat Dec 2 06:33:48 2006 UTC Added files: /peardoc/ja/package/html/html-template-it setoption.xml getglobalvariables.xml /peardoc/ja/package/fileformats/file-passwd intro.xml constants.xml /peardoc/ja/package/console/console-color intro.xml colorcodes.xml /peardoc/ja/package/console console-color.xml Log: initial translation.

http://cvs.php.net/viewvc.cgi/peardoc/ja/package/html/html-template-it/setoption.xml?view=markup&rev=1.1 Index: peardoc/ja/package/html/html-template-it/setoption.xml +++ peardoc/ja/package/html/html-template-it/setoption.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> <refentry id="package.html.html-template-it.setoption"> <refnamediv> <refname>HTML_Template_IT::setOption()</refname> <refpurpose>オプションを設定する</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'HTML/Template/IT.php'; </funcsynopsisinfo> <funcprototype> <funcdef>int <function>HTML_Template_IT::setOption</function></funcdef> <paramdef>string <parameter>$option</parameter></paramdef> <paramdef>mixed <parameter>$value</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.html.html-template-it.setoption.desc"> &title.desc; <para> オプションを設定します。変更するオプションによっては、HTML_Template_IT が予期せぬ振る舞いをする可能性があることに注意しましょう。 </para> </refsect1> <refsect1 id="package.html.html-template-it.setoption.return"> &title.returns; <para> <parameter>int</parameter> - 成功した場合に 1、 それ以外の場合に IT_Error オブジェクトを返します。 </para> </refsect1> <refsect1 id="package.html.html-template-it.setoption.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>mixed $option</parameter> - オプションの ID。 </para> </listitem> <listitem> <para> <parameter>mixed $value</parameter> - オプションの新しい値。 </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.html.html-template-it.setoption.options"> <title>オプション</title> <table> <title>使用できるオプション</title> <tgroup cols="2"> <thead> <row> <entry>オプション</entry> <entry>デフォルト値</entry> <entry>説明</entry> </row> </thead> <tbody> <row> <entry> <literal>removeUnknownVariables</literal> </entry> <entry> <literal>&true;</literal> </entry> <entry> &true; の場合、値が代入されていないテンプレート変数はパース時に削除されます。 このオプションは、通常は <function>HTML_Template_IT::loadTemplatefile</function> あるいは <function>HTML_Template_IT::setTemplate</function> をコールして設定します。 </entry> </row> <row> <entry> <literal>removeEmptyBlocks</literal> </entry> <entry> <literal>&true;</literal> </entry> <entry> &true; の場合、テンプレート変数が代入されていないブロックは削除されます。 このオプションは、通常は <function>HTML_Template_IT::loadTemplatefile</function> あるいは <function>HTML_Template_IT::setTemplate</function> をコールして設定します。 </entry> </row> <row> <entry> <literal>clearCache</literal> </entry> <entry> <literal>&false;</literal> </entry> <entry> &true; の場合、パースされたブロックをキャッシュしません。 <emphasis>意味がわからない場合は、デフォルトのままにしておいてください</emphasis>。 </entry> </row> <row> <entry> <literal>clearCacheOnParse</literal> </entry> <entry> <literal>&false;</literal> </entry> <entry> &true; の場合は、パース後に変数キャッシュが消去されます。 <emphasis>意味がわからない場合は、デフォルトのままにしておいてください</emphasis>。 </entry> </row> <row> <entry> <literal>openingDelimiter</literal> </entry> <entry> <literal>'{'</literal> </entry> <entry> テンプレート変数の開始文字を指定します。この値を変更したら、 <function>init</function> をコールしてテンプレートを再度初期化する必要があります。 <emphasis>意味がわからない場合は、デフォルトのままにしておいてください</emphasis>。 </entry> </row> <row> <entry> <literal>closingDelimiter</literal> </entry> <entry> <literal>'}'</literal> </entry> <entry> テンプレート変数の終了文字を指定します。この値を変更したら、 <function>init</function> をコールしてテンプレートを再度初期化する必要があります。 <emphasis>意味がわからない場合は、デフォルトのままにしておいてください</emphasis>。 </entry> </row> <row> <entry> <literal>blocknameRegExp</literal> </entry> <entry> <literal>'[\.0-9A-Za-z_-]+'</literal> </entry> <entry> ブロック名のパースに使用する正規表現です。この値を変更したら、 <function>init</function> をコールしてテンプレートを再度初期化する必要があります。 <emphasis>意味がわからない場合は、デフォルトのままにしておいてください</emphasis>。 </entry> </row> <row> <entry> <literal>variablenameRegExp</literal> </entry> <entry> <literal>'[\.0-9A-Za-z_-]+'</literal> </entry> <entry> テンプレート変数名のパースに使用する正規表現です。この値を変更したら、 <function>init</function> をコールしてテンプレートを再度初期化する必要があります。 <emphasis>意味がわからない場合は、デフォルトのままにしておいてください</emphasis>。 </entry> </row> </tbody> </tgroup> </table> </refsect1> <refsect1 id="package.html.html-template-it.setoption.note"> &title.note; &note.notstatic; </refsect1> <refsect1 id="package.html.html-template-it.setoption.see"> &title.see; <para> <link linkend="package.html.html-template-it.loadtemplatefile"> <function>HTML_Template_IT::loadTemplatefile</function></link> </para> <para> <link linkend="package.html.html-template-it.settemplate"> <function>HTML_Template_IT::setTemplate</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/viewvc.cgi/peardoc/ja/package/html/html-template-it/getglobalvariables.xml?view=markup&rev=1.1 Index: peardoc/ja/package/html/html-template-it/getglobalvariables.xml +++ peardoc/ja/package/html/html-template-it/getglobalvariables.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> <refentry id="package.html.html-template-it.getglobalvariables"> <refnamediv> <refname>HTML_Template_IT::getGlobalvariables()</refname> <refpurpose>全グローバル変数の配列を変数キャッシュから返す</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'HTML/Template/IT.php'; </funcsynopsisinfo> <funcprototype> <funcdef>array <function>HTML_Template_IT::getGlobalvariables</function></funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.html.html-template-it.getglobalvariables.desc"> &title.desc; <para> 全グローバル変数の配列を変数キャッシュから取得します。 <function>HTML_Template_IT::setVariable</function> を使用して代入した変数のみが返されます。返される値は二つで、 最初の値はグローバル変数の名前の配列です。 二番目の値がすべての変数の配列となります。 </para> </refsect1> <refsect1 id="package.html.html-template-it.getglobalvariables.return"> &title.returns; <para> <parameter>array</parameter> - 配列を返します。 キー 0 には代入された変数の名前が配列で格納され、キー 1 には対応する値が配列で格納されます。 </para> </refsect1> <refsect1 id="package.html.html-template-it.getglobalvariables.example"> &title.example; <example> <title>スクリプト</title> <programlisting role="php"> <![CDATA[ <?php require_once("HTML/Template/IT.php"); $template = <<<EOF <!-- BEGIN a --> Hello {username} <!-- END a --> Welcome to {page}, You are visitor number {visitorcount}. EOF; $tpl = new HTML_Template_IT('.'); $tpl->setTemplate($template); // 変数 {page} を設定します。これが getGlobalvariables で返されます。 $tpl->setVariable("page", "http://example.com"); $tpl->setVariable("username", "foo"); // getGlobalvariables は {username} を返しません。グローバル変数ではないからです。 // また {visitorcount} も返しません。設定されていないからです。 print_r($tpl->getGlobalvariables()); ?> ]]> </programlisting> </example> <example> <title>出力</title> <programlisting> <![CDATA[ Array ( [0] => Array ( [0] => @{page}@ ) [1] => Array ( [0] => http://example.com ) ) ]]> </programlisting> </example> </refsect1> <refsect1 id="package.html.html-template-it.getglobalvariables.note"> &title.note; &note.notstatic; </refsect1> <refsect1 id="package.html.html-template-it.getglobalvariables.see"> &title.see; <para> <link linkend="package.html.html-template-it.setvariable"> <function>HTML_Template_IT::setVariable</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/viewvc.cgi/peardoc/ja/package/fileformats/file-passwd/intro.xml?view=markup&rev=1.1 Index: peardoc/ja/package/fileformats/file-passwd/intro.xml +++ peardoc/ja/package/fileformats/file-passwd/intro.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> <sect2 id="package.fileformats.file-passwd.intro"> <title>導入</title> <refentry id="package.fileformats.file-passwd.intro.introduction"> <refnamediv> <refname>導入</refname> <refpurpose /> </refnamediv> <refsect1 id="package.fileformats.file-passwd.intro.facilities"> <title>File_Passwd の新機能</title> <para> 新しい File_Passwd パッケージには、 さまざまな種類のパスワードファイルを扱う機能があります。 </para> <formalpara> <title>現在サポートしているパスワードファイル形式</title> <para> Unix、CVS、SMB、AuthUserFile、AuthDigestFile および独自フォーマットのパスワードファイルをサポートします。 </para> </formalpara> </refsect1> <refsect1 id="package.fileformats.file-passwd.intro.fileformat"> <title>ファイルフォーマット</title> <para> <command>passwd</command> スタイルとは、次のような形式のファイルです。 <programlisting> ユーザ&lt;区切り文字&gt;パスワード </programlisting> </para> <para> 区切り文字は、通常はコロンです。 </para> <para> 新しい <classname>File_Passwd_Custom</classname> クラスを使用すると、 区切り文字を変更することができます。しかしその際は、 パスワードファイルのカラムにその区切り文字が含まれてはいけないことに注意しましょう。 </para> </refsect1> </refentry> </sect2> <!-- 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/fileformats/file-passwd/constants.xml?view=markup&rev=1.1 Index: peardoc/ja/package/fileformats/file-passwd/constants.xml +++ peardoc/ja/package/fileformats/file-passwd/constants.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> <refentry id="package.fileformats.file-passwd.constants"> <refnamediv> <refname>File_Passwd 定数</refname> <refpurpose>File_Passwd で使用している定数</refpurpose> </refnamediv> <refsect1 id="package.fileformats.file-passwd.constants.details"> <title>&title.constants;</title> <table> <title>暗号化定数</title> <tgroup cols="3"> <thead> <row> <entry>名前</entry> <entry>値</entry> <entry>説明</entry> </row> </thead> <tbody> <row> <entry>FILE_PASSWD_DES</entry> <entry>&quot;des&quot;</entry> <entry>DES encryption</entry> </row> <row> <entry>FILE_PASSWD_MD5</entry> <entry>&quot;md5&quot;</entry> <entry>MD5 encryption</entry> </row> <row> <entry>FILE_PASSWD_SHA</entry> <entry>&quot;sha&quot;</entry> <entry>SHA encryption</entry> </row> <row> <entry>FILE_PASSWD_NT</entry> <entry>&quot;nt&quot;</entry> <entry>NT hash</entry> </row> <row> <entry>FILE_PASSWD_LM</entry> <entry>&quot;lm&quot;</entry> <entry>LM hash</entry> </row> <row> <entry>FILE_PASSWD_PLAIN</entry> <entry>&quot;plain&quot;</entry> <entry>no encryption</entry> </row> </tbody> </tgroup> </table> <table> <title>Error Constants</title> <tgroup cols="3"> <thead> <row> <entry>Name</entry> <entry>Value</entry> <entry>Description</entry> </row> </thead> <tbody> <row> <entry>FILE_PASSWD_E_UNDEFINED</entry> <entry>0</entry> <entry>undefined - some seldom occuring errors</entry> </row> <row> <entry>FILE_PASSWD_E_INVALID_FORMAT</entry> <entry>1</entry> <entry>passwd file has invalid format</entry> </row> <row> <entry>FILE_PASSWD_E_INVALID_PROPERTY</entry> <entry>2</entry> <entry>an invalid (additional) property was supplied</entry> </row> <row> <entry>FILE_PASSWD_E_INVALID_CHARS</entry> <entry>3</entry> <entry>parameter contains illegal chracters (usually only alphanumerics, the dash and underline are allowed)</entry> </row> <row> <entry>FILE_PASSWD_E_INVALID_ENC_MODE</entry> <entry>4</entry> <entry>an invalid encryption mode was supplied (depending on the class actually used)</entry> </row> <row> <entry>FILE_PASSWD_E_EXISTS_ALREADY</entry> <entry>5</entry> <entry>an entry (user, group, etc) to add exists already</entry> </row> <row> <entry>FILE_PASSWD_E_EXISTS_NOT</entry> <entry>6</entry> <entry>an entry (user, group, etc) to delete/change doesn't exist</entry> </row> <row> <entry>FILE_PASSWD_E_USER_NOT_IN_GROUP</entry> <entry>7</entry> <entry>the specified user is not in this certain group</entry> </row> <row> <entry>FILE_PASSWD_E_USER_NOT_IN_REALM</entry> <entry>8</entry> <entry>the specified user is not in this certain realm</entry> </row> <row> <entry>FILE_PASSWD_E_PARAM_MUST_BE_ARRAY</entry> <entry>9</entry> <entry>the supplied param must be of type array</entry> </row> <row> <entry>FILE_PASSWD_E_METHOD_NOT_IMPLEMENTED</entry> <entry>10</entry> <entry>requested method was not implemented yet</entry> </row> <row> <entry>FILE_PASSWD_E_DIR_NOT_CREATED</entry> <entry>11</entry> <entry>a certain directory couldn't be created</entry> </row> <row> <entry>FILE_PASSWD_E_FILE_NOT_OPENED</entry> <entry>12</entry> <entry>passwd file couldn't be opened</entry> </row> <row> <entry>FILE_PASSWD_E_FILE_NOT_LOCKED</entry> <entry>13</entry> <entry>passwd file couldn't be locked</entry> </row> <row> <entry>FILE_PASSWD_E_FILE_NOT_UNLOCKED</entry> <entry>14</entry> <entry>passwd file couldn't be unlocked</entry> </row> <row> <entry>FILE_PASSWD_E_FILE_NOT_CLOSED</entry> <entry>15</entry> <entry>passwd file couldn't be closed</entry> </row> </tbody> </tgroup> </table> </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/console/console-color/intro.xml?view=markup&rev=1.1 Index: peardoc/ja/package/console/console-color/intro.xml +++ peardoc/ja/package/console/console-color/intro.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> <refentry id="package.console.console-color.intro"> <refnamediv> <refname>導入</refname> <refpurpose>Console_Color の使用法</refpurpose> </refnamediv> <refsect1 id="package.console.console-color.intro.basics"> <title>基本</title> <para> <classname>Console_Color</classname> が提供するメソッドには、 特殊なマーカーでタグ付けされた文字列を ANSI 互換の色コード表現に変換するものがあります。 また、指定した色に対応するコードを直接返すメソッドもあります。 </para> <para> 最も頻繁に使用するメソッドは <function>convert</function> です。 これは <screen><![CDATA[%bHello World!%n\n]]></screen> あるいは <screen><![CDATA[3 out of 4 people make up about %r75%% %n]]></screen> のような文字列を受け取り、それを ANSI 表現で返します。 パーセント記号 (%) の後に続く文字には特別な意味があります。その概要については <link linkend="package.console.console-color.colorcodes">色コード</link> を参照ください。 </para> <para> 色を通常の状態に戻すには、<literal>%n</literal> を使用します。 </para> <para> さらに、<function>escape</function> メソッドを使用すると、 特殊文字がマークとして扱われないようにできます。 </para> <para> メソッド <function>bgcolor</function>、 <function>color</function>、<function>fgcolor</function> および <function>style</function> は、 指定した色やスタイルに対応する ANSI 制御コードを直接返します。 </para> </refsect1> <refsect1 id="package.console.console-color.intro.example"> <title>例</title> <programlisting role="php"><![CDATA[ <?php require 'Console/Color.php'; // 青にします print Console_Color::convert("%bHello World!%n\n"); // もっとカラフルにします print Console_Color::convert("%rred%n, %ggreen%n, %yyellow%n\n"); ?> ]]></programlisting> </refsect1> </refentry> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/console/console-color/colorcodes.xml?view=markup&rev=1.1 Index: peardoc/ja/package/console/console-color/colorcodes.xml +++ peardoc/ja/package/console/console-color/colorcodes.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> <refentry id="package.console.console-color.colorcodes"> <refnamediv> <refname>色コード</refname> <refpurpose>表形式のリファレンス</refpurpose> </refnamediv> <refsect1 id="package.console.console-color.colorcodes.description"> <title>説明</title> <table> <title>色コード</title> <tgroup cols="4"> <thead> <row> <entry>色</entry> <entry>通常テキスト</entry> <entry>強調テキスト</entry> <entry>背景</entry> </row> </thead> <tbody> <row> <entry>黒</entry> <entry><literal>%k</literal></entry> <entry><literal>%K</literal></entry> <entry><literal>%0</literal></entry> </row> <row> <entry>赤</entry> <entry><literal>%r</literal></entry> <entry><literal>%R</literal></entry> <entry><literal>%1</literal></entry> </row> <row> <entry>緑</entry> <entry><literal>%g</literal></entry> <entry><literal>%G</literal></entry> <entry><literal>%2</literal></entry> </row> <row> <entry>黄色</entry> <entry><literal>%y</literal></entry> <entry><literal>%Y</literal></entry> <entry><literal>%3</literal></entry> </row> <row> <entry>青</entry> <entry><literal>%b</literal></entry> <entry><literal>%B</literal></entry> <entry><literal>%4</literal></entry> </row> <row> <entry>マゼンタ</entry> <entry><literal>%m</literal></entry> <entry><literal>%m</literal></entry> <entry><literal>%5</literal></entry> </row> <row> <entry>紫</entry> <entry><literal>%p</literal></entry> <entry><literal>%P</literal></entry> <entry></entry> </row> <row> <entry>シアン</entry> <entry><literal>%c</literal></entry> <entry><literal>%C</literal></entry> <entry><literal>%6</literal></entry> </row> <row> <entry>白</entry> <entry><literal>%w</literal></entry> <entry><literal>%W</literal></entry> <entry><literal>%7</literal></entry> </row> </tbody> </tgroup> </table> <table> <title>スタイルコード</title> <tgroup cols="2"> <thead> <row> <entry>スタイル</entry> <entry>コード</entry> </row> </thead> <tbody> <row> <entry>点滅、フラッシュ</entry> <entry><literal>%F</literal></entry> </row> <row> <entry>アンダーライン</entry> <entry><literal>%U</literal></entry> </row> <row> <entry>反転</entry> <entry><literal>%8</literal></entry> </row> <row> <entry>強調</entry> <entry><literal>%_</literal>, <literal>%9</literal></entry> </row> <row> <entry>リセット</entry> <entry><literal>%n</literal></entry> </row> <row> <entry>文字としての %</entry> <entry><literal>%%</literal></entry> </row> </tbody> </tgroup> </table> </refsect1> </refentry> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/console/console-color.xml?view=markup&rev=1.1 Index: peardoc/ja/package/console/console-color.xml +++ peardoc/ja/package/console/console-color.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> <sect1 id="package.console.console-color"> <title>Console_Color</title> <para> <classname>Console_Color</classname> を使用すると、 作成したアプリケーションの出力に、 ANSI コンソールカラーを用いて簡単に色をつけることができます。 </para> &package.console.console-color.intro; &package.console.console-color.colorcodes; </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 (#8971) next »