|
1 | 1 | <?xml version="1.0" encoding="utf-8"?>
|
2 | 2 | <!-- $Revision$ -->
|
3 |
| -<!-- EN-Revision: ca840c9a6d665e60a7de48b57a5b6440c0d3b0c1 Maintainer: takagi Status: ready --> |
| 3 | +<!-- EN-Revision: 348789addeedc32858ec0e29ec44fada391aecb3 Maintainer: takagi Status: ready --> |
4 | 4 |
|
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"> |
6 | 6 | <refnamediv>
|
7 | 7 | <refname>ReflectionFunctionAbstract::getClosureScopeClass</refname>
|
8 |
| - <refpurpose>クロージャに関連づけられたスコープクラスを返す</refpurpose> |
| 8 | + <refpurpose>クロージャ内部のスコープに関連づけられたクラスを返す</refpurpose> |
9 | 9 | </refnamediv>
|
10 | 10 |
|
11 | 11 | <refsect1 role="description">
|
|
14 | 14 | <modifier>public</modifier> <type class="union"><type>ReflectionClass</type><type>null</type></type><methodname>ReflectionFunctionAbstract::getClosureScopeClass</methodname>
|
15 | 15 | <void/>
|
16 | 16 | </methodsynopsis>
|
17 |
| - <para> |
18 |
| - クロージャの宣言を囲んだクラスを取得します。 |
19 |
| - </para> |
20 |
| - |
| 17 | + <simpara> |
| 18 | + <classname>Closure</classname> 内部のスコープに関連付けられたクラスを |
| 19 | + <classname>ReflectionClass</classname> として返します。 |
| 20 | + </simpara> |
21 | 21 | </refsect1>
|
22 | 22 |
|
23 | 23 | <refsect1 role="parameters">
|
|
27 | 27 |
|
28 | 28 | <refsect1 role="returnvalues">
|
29 | 29 | &reftitle.returnvalues;
|
30 |
| - <para> |
31 |
| - 成功した場合にクラスを返します。 |
32 |
| - 関数がクロージャでなかったり、クラスで囲まれていない場合は &null; を返します。 |
33 |
| - </para> |
| 30 | + <simpara> |
| 31 | + スコープが <classname>Closure</classname> 内部で使われている |
| 32 | + クラスに関連付けられた、<classname>ReflectionClass</classname> を返します。 |
| 33 | + 関数がクロージャでなかったり、グローバルスコープだった場合は |
| 34 | + &null; を代わりに返します。 |
| 35 | + </simpara> |
34 | 36 | </refsect1>
|
35 | 37 |
|
| 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> |
36 | 50 |
|
37 | 51 | </refentry>
|
38 | 52 | <!-- Keep this comment at the end of the file
|
|
0 commit comments