svn: /phpdoc/ja/trunk/reference/classobj/functions/ get-class.xml
| From: | Yoshinari Takaoka | Date: | Sat, 04 Jan 2020 10:42:37 +0000 |
| Subject: | svn: /phpdoc/ja/trunk/reference/classobj/functions/ get-class.xml | ||
| Groups: | php.doc.ja | ||
| Request: | Send a blank email to doc-ja+get-5313@lists.php.net to get a copy of this message | ||
mumumu Sat, 04 Jan 2020 10:42:37 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=348796
Log:
updated translation (status: ready)
Changed paths:
U phpdoc/ja/trunk/reference/classobj/functions/get-class.xml
Modified: phpdoc/ja/trunk/reference/classobj/functions/get-class.xml
===================================================================
--- phpdoc/ja/trunk/reference/classobj/functions/get-class.xml 2020-01-04 10:32:56 UTC (rev 348795)
+++ phpdoc/ja/trunk/reference/classobj/functions/get-class.xml 2020-01-04 10:42:37 UTC (rev 348796)
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 342130 Maintainer: hirokawa Status: working -->
-<!-- CREDITS: shimooka -->
+<!-- EN-Revision: 342130 Maintainer: hirokawa Status: ready -->
+<!-- CREDITS: shimooka,mumumu -->
<refentry xml:id="function.get-class" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>get_class</refname>
@@ -29,13 +29,15 @@
</para>
<note>
<simpara>
- Explicitly passing &null; as the <parameter>object</parameter> is no
- longer allowed as of PHP 7.2.0.
+ <parameter>object</parameter> に明示的に &null; を渡すことは、
+ PHP 7.2.0 以降許されなくなりました。
</simpara>
<simpara>
- The parameter is still optional and calling <function>get_class</function>
- without a parameter from inside a class will work, but passing &null; now
- emits an <constant>E_WARNING</constant> notice.<!-- to be translated -->
+ このパラメータは未だオプションです。
+ <function>get_class</function> 関数を
+ クラスの内部からパラメータなしに呼び出しても動作します。
+ しかし、&null; を渡してしまうと
+ <constant>E_WARNING</constant> レベルの警告が発生します。
</simpara>
</note>
</listitem>
@@ -55,8 +57,9 @@
そのクラスの名前を返します。
</para>
<para>
- If the <parameter>object</parameter> is an instance of a class which exists
- in a namespace, the qualified namespaced name of that class is returned.<!-- to be translated
-->
+ <parameter>object</parameter> が
+ 名前空間の中に存在しているクラスのインスタンスだった場合、
+ 名前空間で修飾されたクラス名が返されます。
</para>
</refsect1>
<refsect1 role="errors">
@@ -81,8 +84,9 @@
<row>
<entry>7.2.0</entry>
<entry>
- &null; was removed as the default value for <parameter>object</parameter>,
- and is no longer a valid input.<!-- to be translated -->
+ &null; は、<parameter>object</parameter>
のデフォルトのパラメータとして
+ 扱われなくなり、
+ 正しい入力ではなくなりました。
</entry>
</row>
<row>
@@ -165,7 +169,7 @@
</screen>
</example>
<example>
- <title>Using <function>get_class</function> with namespaced
classes</title><!-- to be translated -->
+ <title>名前空間の中にあるクラスを <function>get_class</function>
で使う</title>
<programlisting role="php">
<![CDATA[
<?php