cvs: peardoc /ja/package/logging/log init.xml log.xml

From: Date: Sun, 22 Feb 2004 08:53:08 +0000
Subject: cvs: peardoc /ja/package/logging/log init.xml log.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-2679@lists.php.net to get a copy of this message
elf Sun Feb 22 03:53:08 2004 EDT Modified files: /peardoc/ja/package/logging/log init.xml log.xml Log: o translation updated. http://cvs.php.net/diff.php/peardoc/ja/package/logging/log/init.xml?r1=1.1&r2=1.2&ty=u Index: peardoc/ja/package/logging/log/init.xml diff -u peardoc/ja/package/logging/log/init.xml:1.1 peardoc/ja/package/logging/log/init.xml:1.2 --- peardoc/ja/package/logging/log/init.xml:1.1 Sun Oct 19 22:01:00 2003 +++ peardoc/ja/package/logging/log/init.xml Sun Feb 22 03:53:08 2004 @@ -1,5 +1,5 @@ -<!-- $Revision: 1.1 $ --> -<!-- Sync: 1.2 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.2 --> <refentry id="package.logging.log.init"> <refnamediv> <refname>初期化</refname> @@ -32,26 +32,30 @@ </programlisting> </example> <para> - Directly initializing an instance of the <classname>Log</classname> is - probably the easiest method to understand. + 直接<classname>Log</classname>のインスタンスを初期化することは、 + 恐らく理解する最も容易な方法です。 </para> <para> - The second two approaches make use of software engineering design - patterns (the "factory" and "singleton" metaphors). - </para> - <para> - Specifically, calling the <function>factory</function> method will - create a new instance of one of the <classname>Log_</classname> - subclasses. The type of subclass that is returned is specified by the - first parameter (<parameter>log_type</parameter>) passed to the - <function>factory</function> method. This approach effectively hides + 次の2つのアプローチはソフトウェア工学デザインパターン + ("factory"と"singleton"メタファー) + です。 + </para> + <para> + 特に<function>factory</function>メソッドを呼ぶことは、 + <classname>Log_</classname> + サブクラスのうち一つの新しいインスタンスを作成します。 + 返されるサブクラスのタイプは、 + <function>factory</function>に渡される最初のパラメーター + (<parameter>log_type</parameter>)によって指定されます。 + This approach effectively hides the subclasses while still allowing the programmer to request a - concrete instance of a certain subclass. This is useful in cases where - the subclass type needs to be chosen at runtime. + concrete instance of a certain subclass. + これは、ランタイムでサブクラスタイプを選ぶ必要のある時に役立ちます。 </para> <para> - The <function>factory</function> method must always be called using - PHP's static method notation - <literal>Log::factory</literal>. + <function>factory</function>は、 + 常にPHPの静止メソッド表記法を使用して呼びます。 + - <literal>Log::factory</literal>. </para> <para> The <function>singleton</function> method is identical to the @@ -65,9 +69,9 @@ simply return a reference to the existing instance. </para> <para> - The <function>singleton</function> method must also be called - statically. In addition, it requires PHP's reference notation - - <literal>&amp;Log::singleton</literal>. + <function>singleton</function>メソッドも必ず静的に呼ばれます。 + そしてそれはPHPの参照表記法を要求します。 + - <literal>&amp;Log::singleton</literal> </para> </refsect1> </refentry> http://cvs.php.net/diff.php/peardoc/ja/package/logging/log/log.xml?r1=1.1&r2=1.2&ty=u Index: peardoc/ja/package/logging/log/log.xml diff -u peardoc/ja/package/logging/log/log.xml:1.1 peardoc/ja/package/logging/log/log.xml:1.2 --- peardoc/ja/package/logging/log/log.xml:1.1 Sun Oct 19 22:01:00 2003 +++ peardoc/ja/package/logging/log/log.xml Sun Feb 22 03:53:08 2004 @@ -1,5 +1,5 @@ -<!-- $Revision: 1.1 $ --> -<!-- Sync: 1.1 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.1 --> <refentry id="package.logging.log.log"> <refnamediv> <refname>Log</refname> @@ -9,7 +9,7 @@ <synopsis>require_once "Log.php";</synopsis> </refsynopsisdiv> <refsect1> - <title>Description</title> + <title>説明</title> <simpara> ロギングインターフェース関数。 </simpara>

« previous php.pear.doc (#2679) next »