Skip to content

Commit f7d26aa

Browse files
committed
[ext/reflection] sync with en.
1 parent ee0062c commit f7d26aa

File tree

21 files changed

+348
-66
lines changed

21 files changed

+348
-66
lines changed

reference/reflection/book.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: c477749c82111cbbdd657a0e98eeaeeec0d90c91 Maintainer: takagi Status: ready -->
2+
<!-- $Revision$ -->
3+
<!-- EN-Revision: 1bcc40f8134305cbebf6c8378ee7e5fc8c569674 Maintainer: takagi Status: ready -->
34
<!-- Credits: mumumu -->
45

5-
<book xml:id="book.reflection" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
6+
<book xml:id="book.reflection" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" annotations="interactive">
67
<?phpdoc extension-membership="core" ?>
78
<title>リフレクション</title>
89
<titleabbrev>リフレクション</titleabbrev>
@@ -51,6 +52,7 @@
5152
&reference.reflection.reflectionattribute;
5253
&reference.reflection.reflector;
5354
&reference.reflection.reflectionexception;
55+
&reference.reflection.propertyhooktype;
5456

5557
</book>
5658

reference/reflection/reflectionattribute/gettarget.xml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: ec2fe9a592f794978114ef5021db9f1d00c2e05d Maintainer: mumumu Status: ready -->
3+
<!-- EN-Revision: 983b98c1a60e7c7eabb42323a3c4b52cc29e2c75 Maintainer: mumumu Status: ready -->
44

55
<refentry xml:id="reflectionattribute.gettarget" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
66
<refnamediv>
@@ -17,9 +17,6 @@
1717
<para>
1818
アトリビュートのターゲットをビットマスクとして取得します。
1919
</para>
20-
21-
&warn.undocumented.func;
22-
2320
</refsect1>
2421

2522
<refsect1 role="parameters">
@@ -30,8 +27,7 @@
3027
<refsect1 role="returnvalues">
3128
&reftitle.returnvalues;
3229
<para>
33-
<!-- TODO: we should add target constant Attribute::TARGET_METHOD, and so on... -->
34-
アトリビュートのターゲットをビットマスクとして返します。
30+
アトリビュートのターゲットを <link linkend="attribute.constants"><constant>Attribute::TARGET_*</constant> 定数</link> のビットマスクとして返します。
3531
</para>
3632
</refsect1>
3733

reference/reflection/reflectionclass/newlazyghost.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: c0fa5077c8862405942d8aac7360c5169558b59b Maintainer: KentarouTakeda Status: ready -->
3+
<!-- EN-Revision: 2d8559c6c0c10f677080b636bd67e54efdc2cf0a Maintainer: KentarouTakeda Status: ready -->
44
<!-- Credits: KentarouTakeda -->
55
<refentry xml:id="reflectionclass.newlazyghost" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
66
<refnamediv>

reference/reflection/reflectionclass/newlazyproxy.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: c0fa5077c8862405942d8aac7360c5169558b59b Maintainer: KentarouTakeda Status: ready -->
3+
<!-- EN-Revision: 2d8559c6c0c10f677080b636bd67e54efdc2cf0a Maintainer: KentarouTakeda Status: ready -->
44
<!-- Credits: KentarouTakeda -->
55
<refentry xml:id="reflectionclass.newlazyproxy" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude">
66
<refnamediv>

reference/reflection/reflectionclass/setstaticpropertyvalue.xml

Lines changed: 38 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: ec2fe9a592f794978114ef5021db9f1d00c2e05d Maintainer: takagi Status: ready -->
3+
<!-- EN-Revision: c4aabaa0b97ef1ecc00cf2cd539ea186c6a855ae Maintainer: takagi Status: ready -->
44
<!-- Credits: mumumu -->
55

66
<refentry xml:id="reflectionclass.setstaticpropertyvalue" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
77
<refnamediv>
88
<refname>ReflectionClass::setStaticPropertyValue</refname>
9-
<refpurpose>staticプロパティの値を設定する</refpurpose>
9+
<refpurpose>publicなstaticプロパティの値を設定する</refpurpose>
1010
</refnamediv>
1111

1212
<refsect1 role="description">
@@ -16,9 +16,15 @@
1616
<methodparam><type>string</type><parameter>name</parameter></methodparam>
1717
<methodparam><type>mixed</type><parameter>value</parameter></methodparam>
1818
</methodsynopsis>
19-
<para>
20-
staticプロパティの値を設定します。
21-
</para>
19+
<simpara>
20+
publicなstaticプロパティの値を設定します。
21+
プロパティがprivateやprotectedだった場合は、
22+
このメソッドは失敗します。
23+
</simpara>
24+
<simpara>
25+
<methodname>ReflectionProperty::setValue</methodname> を使うと、
26+
public, private, protected なプロパティの値を設定できます。
27+
</simpara>
2228
</refsect1>
2329

2430
<refsect1 role="parameters">
@@ -52,11 +58,38 @@
5258
</para>
5359
</refsect1>
5460

61+
<refsect1 role="changelog">
62+
&reftitle.changelog;
63+
<informaltable>
64+
<tgroup cols="2">
65+
<thead>
66+
<row>
67+
<entry>&Version;</entry>
68+
<entry>&Description;</entry>
69+
</row>
70+
</thead>
71+
<tbody>
72+
<row>
73+
<entry>7.4.0</entry>
74+
<entry>
75+
<methodname>ReflectionClass::setStaticPropertyValue</methodname>
76+
を private や protected なプロパティに対して使うと、
77+
致命的なエラーが発生するようになりました。
78+
これより前のバージョンでは、
79+
<classname>ReflectionException</classname> がスローされていました。
80+
</entry>
81+
</row>
82+
</tbody>
83+
</tgroup>
84+
</informaltable>
85+
</refsect1>
86+
5587
<refsect1 role="seealso">
5688
&reftitle.seealso;
5789
<para>
5890
<simplelist>
5991
<member><methodname>ReflectionClass::getStaticPropertyValue</methodname></member>
92+
<member><methodname>ReflectionProperty::setValue</methodname></member>
6093
</simplelist>
6194
</para>
6295
</refsect1>

reference/reflection/reflectionclassconstant/tostring.xml

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: ec2fe9a592f794978114ef5021db9f1d00c2e05d Maintainer: mumumu Status: ready -->
3+
<!-- EN-Revision: 6d25b8ee6654db8e9eb551e3d6fc77be65eeccd5 Maintainer: mumumu Status: ready -->
44

55
<refentry xml:id="reflectionclassconstant.tostring" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
66
<refnamediv>
@@ -32,14 +32,33 @@
3232
</para>
3333
</refsect1>
3434

35+
<refsect1 role="changelog">
36+
&reftitle.changelog;
37+
<informaltable>
38+
<tgroup cols="2">
39+
<thead>
40+
<row>
41+
<entry>&Version;</entry>
42+
<entry>&Description;</entry>
43+
</row>
44+
</thead>
45+
<tbody>
46+
<row>
47+
<entry>8.4.0</entry>
48+
<entry>
49+
付加された doc comment が含まれるようになりました。
50+
</entry>
51+
</row>
52+
</tbody>
53+
</tgroup>
54+
</informaltable>
55+
</refsect1>
56+
3557
<refsect1 role="seealso">
3658
&reftitle.seealso;
37-
<para>
38-
<simplelist>
39-
<member><methodname>ReflectionClassConstant::export</methodname></member>
40-
<member><link linkend="object.tostring">__toString()</link></member>
41-
</simplelist>
42-
</para>
59+
<simplelist>
60+
<member><link linkend="object.tostring">__toString()</link></member>
61+
</simplelist>
4362
</refsect1>
4463

4564
</refentry>

reference/reflection/reflectionextension/construct.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: ca840c9a6d665e60a7de48b57a5b6440c0d3b0c1 Maintainer: takagi Status: ready -->
3+
<!-- EN-Revision: e62098163abde8c0b6b4d5c1b889b7312b5de3da Maintainer: takagi Status: ready -->
44

55
<refentry xml:id="reflectionextension.construct" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
66
<refnamediv>
@@ -60,7 +60,7 @@ printf('Extension: %s (version: %s)', $ext->getName(), $ext->getVersion());
6060
&example.outputs.similar;
6161
<screen>
6262
<![CDATA[
63-
Extension: Reflection (version: $Revision$)
63+
Extension: Reflection (version: 8.3.17)
6464
]]>
6565
</screen>
6666
</example>

reference/reflection/reflectionextension/info.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: ec2fe9a592f794978114ef5021db9f1d00c2e05d Maintainer: takagi Status: ready -->
3+
<!-- EN-Revision: e62098163abde8c0b6b4d5c1b889b7312b5de3da Maintainer: takagi Status: ready -->
44

55
<refentry xml:id="reflectionextension.info" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
66
<refnamediv>
@@ -51,7 +51,7 @@ $ext->info();
5151
mysqli
5252
5353
MysqlI Support => enabled
54-
Client API library version => mysqlnd 5.0.5-dev - 081106 - $Revision$
54+
Client API library version => mysqlnd 8.3.17
5555
Active Persistent Links => 0
5656
Inactive Persistent Links => 0
5757
Active Links => 0

reference/reflection/reflectionfunction/isdisabled.xml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: ec2fe9a592f794978114ef5021db9f1d00c2e05d Maintainer: takagi Status: ready -->
3+
<!-- EN-Revision: 9b1673cf114a1e10c4563ab9223cb56aed552b89 Maintainer: takagi Status: ready -->
44

55
<refentry xml:id="reflectionfunction.isdisabled" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
66
<refnamediv>
@@ -15,6 +15,7 @@
1515
<refsect1 role="description">
1616
&reftitle.description;
1717
<methodsynopsis role="ReflectionFunction">
18+
<modifier role="attribute">#[\Deprecated]</modifier>
1819
<modifier>public</modifier> <type>bool</type><methodname>ReflectionFunction::isDisabled</methodname>
1920
<void/>
2021
</methodsynopsis>
@@ -36,6 +37,30 @@
3637
</para>
3738
</refsect1>
3839

40+
<refsect1 role="changelog">
41+
&reftitle.changelog;
42+
<informaltable>
43+
<tgroup cols="2">
44+
<thead>
45+
<row>
46+
<entry>&Version;</entry>
47+
<entry>&Description;</entry>
48+
</row>
49+
</thead>
50+
<tbody>
51+
<row>
52+
<entry>8.0.0</entry>
53+
<entry>
54+
この関数は推奨されなくなりました。
55+
<classname>ReflectionFunction</classname>
56+
は無効な関数を作成しなくなったためです。
57+
</entry>
58+
</row>
59+
</tbody>
60+
</tgroup>
61+
</informaltable>
62+
</refsect1>
63+
3964
<refsect1 role="seealso">
4065
&reftitle.seealso;
4166
<para>

reference/reflection/reflectionfunctionabstract/getclosurescopeclass.xml

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: ca840c9a6d665e60a7de48b57a5b6440c0d3b0c1 Maintainer: takagi Status: ready -->
3+
<!-- EN-Revision: 348789addeedc32858ec0e29ec44fada391aecb3 Maintainer: takagi Status: ready -->
44

5-
<refentry xml:id="reflectionfunctionabstract.getclosurescopeclass" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
5+
<refentry xml:id="reflectionfunctionabstract.getclosurescopeclass" xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude">
66
<refnamediv>
77
<refname>ReflectionFunctionAbstract::getClosureScopeClass</refname>
8-
<refpurpose>クロージャに関連づけられたスコープクラスを返す</refpurpose>
8+
<refpurpose>クロージャ内部のスコープに関連づけられたクラスを返す</refpurpose>
99
</refnamediv>
1010

1111
<refsect1 role="description">
@@ -14,10 +14,10 @@
1414
<modifier>public</modifier> <type class="union"><type>ReflectionClass</type><type>null</type></type><methodname>ReflectionFunctionAbstract::getClosureScopeClass</methodname>
1515
<void/>
1616
</methodsynopsis>
17-
<para>
18-
クロージャの宣言を囲んだクラスを取得します。
19-
</para>
20-
17+
<simpara>
18+
<classname>Closure</classname> 内部のスコープに関連付けられたクラスを
19+
<classname>ReflectionClass</classname> として返します。
20+
</simpara>
2121
</refsect1>
2222

2323
<refsect1 role="parameters">
@@ -27,12 +27,26 @@
2727

2828
<refsect1 role="returnvalues">
2929
&reftitle.returnvalues;
30-
<para>
31-
成功した場合にクラスを返します。
32-
関数がクロージャでなかったり、クラスで囲まれていない場合は &null; を返します。
33-
</para>
30+
<simpara>
31+
スコープが <classname>Closure</classname> 内部で使われている
32+
クラスに関連付けられた、<classname>ReflectionClass</classname> を返します。
33+
関数がクロージャでなかったり、グローバルスコープだった場合は
34+
&null; を代わりに返します。
35+
</simpara>
3436
</refsect1>
3537

38+
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('reflectionfunctionabstract.getclosurecalledclass')/db:refsect1[@role='examples']/.)">
39+
<xi:fallback/>
40+
</xi:include>
41+
42+
<refsect1 role="seealso">
43+
&reftitle.seealso;
44+
<simplelist>
45+
<member><methodname>ReflectionFunctionAbstract::getClosureCalledClass</methodname></member>
46+
<member><methodname>ReflectionFunctionAbstract::getClosureThis</methodname></member>
47+
<member><xref linkend="language.oop5.late-static-bindings" /></member>
48+
</simplelist>
49+
</refsect1>
3650

3751
</refentry>
3852
<!-- Keep this comment at the end of the file

0 commit comments

Comments
 (0)