com doc/ru: Обновлен ие до англи йской верси и: reference/reflection/reflectionclassconstant/constr uct.xml reference/reflection/reflectionclassconstant/getdoc comment.xml reference/reflection/reflectionclassconstant/ge tname.xml reference/reflection/reflectionextension/construc t.xml reference/reflection/reflectionextension/getclassname s.xml reference/reflection/reflectionextension/getname.xm l reference/reflection/reflectionextension/getversion.xml ref
[email protected] (Sergey Panteleev) Thu, 14 Jan 2021 10:10:57 +0000
| Newsgroups | php.doc.ru |
|---|---|
| Message-ID | <[email protected]> |
Commit: f702a1ec16efce47849312f6871fef5c6af5ea6f Author: Sergey Panteleev <[email protected]> Thu, 14 Jan 2021 13:10:57 +0300 Parents: 4a70863ba52e5d228ede4eaf90ddc16c461a5b12 Branches: master Link: http://git.php.net/?p=doc/ru.git;a=commitdiff;h=f702a1ec16efce47849312f6871fef5c6af5ea6f Log: Обновление до английской версии Changed paths: M reference/reflection/reflectionclassconstant/construct.xml M reference/reflection/reflectionclassconstant/getdoccomment.xml M reference/reflection/reflectionclassconstant/getname.xml M reference/reflection/reflectionextension/construct.xml M reference/reflection/reflectionextension/getclassnames.xml M reference/reflection/reflectionextension/getname.xml M reference/reflection/reflectionextension/getversion.xml M reference/reflection/reflectionextension/ispersistent.xml M reference/reflection/reflectionextension/istemporary.xml M reference/reflection/reflectionfunction/construct.xml M reference/reflection/reflectionfunction/getclosure.xml M reference/reflection/reflectionfunction/isdisabled.xml M reference/reflection/reflectionmethod/construct.xml M reference/reflection/reflectionmethod/getclosure.xml M reference/reflection/reflectionmethod/invoke.xml M reference/reflection/reflectionmethod/invokeargs.xml M reference/reflection/reflectionmethod/isabstract.xml M reference/reflection/reflectionmethod/isconstructor.xml M reference/reflection/reflectionmethod/isfinal.xml M reference/reflection/reflectionmethod/isprivate.xml M reference/reflection/reflectionmethod/isprotected.xml M reference/reflection/reflectionmethod/ispublic.xml M reference/reflection/reflectionmethod/isstatic.xml M reference/reflection/reflectionmethod/setaccessible.xml M reference/reflection/reflectionobject/construct.xml M reference/reflection/reflectionobject/export.xml M reference/reflection/reflectionproperty/construct.xml M reference/reflection/reflectionproperty/getdoccomment.xml M reference/reflection/reflectionproperty/getvalue.xml M reference/reflection/reflectionproperty/isinitialized.xml M reference/reflection/reflectionproperty/setaccessible.xml M reference/reflection/reflectionreference/fromarrayelement.xml M reference/reflection/reflectionreference/getid.xml M reference/solr/solrillegalargumentexception/getinternalinfo.xml M reference/solr/solrillegaloperationexception/getinternalinfo.xml M reference/spl/splfixedarray.xml
diff_f702a1ec16efce47849312f6871fef5c6af5ea6f.txt
(text/plain, 51 KB)
diff --git a/reference/reflection/reflectionclassconstant/construct.xml b/reference/reflection/reflectionclassconstant/construct.xml
index a1f84efef..65813c485 100644
--- a/reference/reflection/reflectionclassconstant/construct.xml
+++ b/reference/reflection/reflectionclassconstant/construct.xml
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: cf616ef1f0bd14778a591210de8a231fa564e863 Maintainer: lex Status: ready -->
+<!-- EN-Revision: 98df2cf9a939729d73adee1484ec05929c74c98b Maintainer: lex Status: ready -->
<!-- Reviewed: yes Maintainer: sergey -->
-
<refentry xml:id="reflectionclassconstant.construct" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>ReflectionClassConstant::__construct</refname>
@@ -11,11 +10,11 @@
<refsect1 role="description">
&reftitle.description;
- <methodsynopsis>
+ <constructorsynopsis>
<modifier>public</modifier> <methodname>ReflectionClassConstant::__construct</methodname>
- <methodparam><type>mixed</type><parameter>class</parameter></methodparam>
- <methodparam><type>string</type><parameter>name</parameter></methodparam>
- </methodsynopsis>
+ <methodparam><type class="union"><type>object</type><type>string</type></type><parameter>class</parameter></methodparam>
+ <methodparam><type>string</type><parameter>constant</parameter></methodparam>
+ </constructorsynopsis>
<para>
Создаёт новый объект <classname>ReflectionClassConstant</classname>.
</para>
@@ -35,7 +34,7 @@
</listitem>
</varlistentry>
<varlistentry>
- <term><parameter>name</parameter></term>
+ <term><parameter>constant</parameter></term>
<listitem>
<para>
Имя константы класса.
@@ -70,7 +69,6 @@
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
diff --git a/reference/reflection/reflectionclassconstant/getdoccomment.xml b/reference/reflection/reflectionclassconstant/getdoccomment.xml
index 9aaf93db5..5db48e260 100644
--- a/reference/reflection/reflectionclassconstant/getdoccomment.xml
+++ b/reference/reflection/reflectionclassconstant/getdoccomment.xml
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 481c11df80492f5e6784e2e84b9a6357ad58c765 Maintainer: lex Status: ready -->
+<!-- EN-Revision: 98df2cf9a939729d73adee1484ec05929c74c98b Maintainer: lex Status: ready -->
<!-- Reviewed: yes Maintainer: sergey -->
-
<refentry xml:id="reflectionclassconstant.getdoccomment" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>ReflectionClassConstant::getDocComment</refname>
@@ -12,8 +11,8 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
- <modifier>public</modifier> <type>string</type><methodname>ReflectionClassConstant::getDocComment</methodname>
- <void />
+ <modifier>public</modifier> <type class="union"><type>string</type><type>false</type></type><methodname>ReflectionClassConstant::getDocComment</methodname>
+ <void/>
</methodsynopsis>
<para>
Получает doc-комментарии из константы класса.
@@ -33,7 +32,6 @@
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
diff --git a/reference/reflection/reflectionclassconstant/getname.xml b/reference/reflection/reflectionclassconstant/getname.xml
index 5f0710c06..9febc1867 100644
--- a/reference/reflection/reflectionclassconstant/getname.xml
+++ b/reference/reflection/reflectionclassconstant/getname.xml
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 0dad2268d5adb19f77270aa2a9515a4bfbca9b22 Maintainer: lex Status: ready -->
+<!-- EN-Revision: 98df2cf9a939729d73adee1484ec05929c74c98b Maintainer: lex Status: ready -->
<!-- Reviewed: yes Maintainer: sergey -->
-
<refentry xml:id="reflectionclassconstant.getname" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>ReflectionClassConstant::getName</refname>
@@ -12,8 +11,8 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
- <modifier>public</modifier> <type>string</type><methodname>ReflectionClassConstant::getName</methodname>
- <void />
+ <modifier>public</modifier> <type class="union"><type>string</type><type>false</type></type><methodname>ReflectionClassConstant::getName</methodname>
+ <void/>
</methodsynopsis>
</refsect1>
@@ -25,13 +24,12 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
- Возвращает имя константы.
+ Возвращает имя константы, &return.falseforfailure;.
</para>
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
diff --git a/reference/reflection/reflectionextension/construct.xml b/reference/reflection/reflectionextension/construct.xml
index 20f99489b..a69c34e4a 100644
--- a/reference/reflection/reflectionextension/construct.xml
+++ b/reference/reflection/reflectionextension/construct.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 656d1610af1a960d87c8b7056e54d0d4c75fb123 Maintainer: aur Status: ready -->
+<!-- EN-Revision: 98df2cf9a939729d73adee1484ec05929c74c98b Maintainer: aur Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
<refentry xml:id="reflectionextension.construct" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
@@ -10,10 +10,10 @@
<refsect1 role="description">
&reftitle.description;
- <methodsynopsis>
+ <constructorsynopsis>
<modifier>public</modifier> <methodname>ReflectionExtension::__construct</methodname>
<methodparam><type>string</type><parameter>name</parameter></methodparam>
- </methodsynopsis>
+ </constructorsynopsis>
<para>
Создаёт объект (<type>object</type>) класса <classname>ReflectionExtension</classname>.
</para>
@@ -77,7 +77,6 @@ printf('Модуль: %s (версия: %s)', $ext->getName(), $ext->getVersion(
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
diff --git a/reference/reflection/reflectionextension/getclassnames.xml b/reference/reflection/reflectionextension/getclassnames.xml
index 088b340b0..5e27fca98 100644
--- a/reference/reflection/reflectionextension/getclassnames.xml
+++ b/reference/reflection/reflectionextension/getclassnames.xml
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: b71e8b802f19ebed1067898d628e8a03b0550a11 Maintainer: tmn Status: ready -->
+<!-- EN-Revision: af4410a7e15898c3dbe83d6ea38246745ed9c6fb Maintainer: tmn Status: ready -->
<!-- Reviewed: yes Maintainer: lex -->
<!-- $Revision$ -->
-
<refentry xml:id="reflectionextension.getclassnames" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>ReflectionExtension::getClassNames</refname>
diff --git a/reference/reflection/reflectionextension/getname.xml b/reference/reflection/reflectionextension/getname.xml
index 47e66f74e..25a097456 100644
--- a/reference/reflection/reflectionextension/getname.xml
+++ b/reference/reflection/reflectionextension/getname.xml
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: b71e8b802f19ebed1067898d628e8a03b0550a11 Maintainer: tmn Status: ready -->
+<!-- EN-Revision: af4410a7e15898c3dbe83d6ea38246745ed9c6fb Maintainer: tmn Status: ready -->
<!-- Reviewed: yes Maintainer: lex -->
<!-- $Revision$ -->
-
<refentry xml:id="reflectionextension.getname" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>ReflectionExtension::getName</refname>
diff --git a/reference/reflection/reflectionextension/getversion.xml b/reference/reflection/reflectionextension/getversion.xml
index 498cc167f..21d7ae48b 100644
--- a/reference/reflection/reflectionextension/getversion.xml
+++ b/reference/reflection/reflectionextension/getversion.xml
@@ -1,22 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: b71e8b802f19ebed1067898d628e8a03b0550a11 Maintainer: tmn Status: ready -->
+<!-- EN-Revision: 98df2cf9a939729d73adee1484ec05929c74c98b Maintainer: tmn Status: ready -->
<!-- Reviewed: yes Maintainer: lex -->
<!-- $Revision$ -->
-
<refentry xml:id="reflectionextension.getversion" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>ReflectionExtension::getVersion</refname>
- <refpurpose>Получение версии расширения</refpurpose>
+ <refpurpose>Получение версии модуля</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
- <modifier>public</modifier> <type>string</type><methodname>ReflectionExtension::getVersion</methodname>
- <void />
+ <modifier>public</modifier> <type class="union"><type>string</type><type>null</type></type><methodname>ReflectionExtension::getVersion</methodname>
+ <void/>
</methodsynopsis>
<para>
- Получает версию расширения.
+ Получает версию модуля.
</para>
</refsect1>
@@ -28,7 +27,7 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
- Версия расширения.
+ Версия модуля, или &null; если у модуля нет версии.
</para>
</refsect1>
@@ -65,7 +64,6 @@ string(3) "0.1"
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
diff --git a/reference/reflection/reflectionextension/ispersistent.xml b/reference/reflection/reflectionextension/ispersistent.xml
index 83c21cdc8..53c009cd6 100644
--- a/reference/reflection/reflectionextension/ispersistent.xml
+++ b/reference/reflection/reflectionextension/ispersistent.xml
@@ -1,19 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 8b6d169424ff189bb563ef4c3f35f8adff3f42c5 Maintainer: tmn Status: ready -->
+<!-- EN-Revision: 98df2cf9a939729d73adee1484ec05929c74c98b Maintainer: tmn Status: ready -->
<!-- Reviewed: yes Maintainer: lex -->
<!-- $Revision$ -->
-
<refentry xml:id="reflectionextension.ispersistent" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>ReflectionExtension::isPersistent</refname>
- <refpurpose>Определяет, является ли расширение постоянным</refpurpose>
+ <refpurpose>Определяет, является ли модуль постоянным</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
- <modifier>public</modifier> <type>void</type><methodname>ReflectionExtension::isPersistent</methodname>
- <void />
+ <modifier>public</modifier> <type>bool</type><methodname>ReflectionExtension::isPersistent</methodname>
+ <void/>
</methodsynopsis>
<para>
@@ -31,7 +30,7 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
- Возвращает &true; для расширений, загружаемых через ini-настройку <link
+ Возвращает &true; для модулей, загружаемых через ini-настройку <link
linkend="ini.extension"><literal>extension</literal></link>, &false;
в противном случае.
</para>
@@ -47,7 +46,6 @@
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
diff --git a/reference/reflection/reflectionextension/istemporary.xml b/reference/reflection/reflectionextension/istemporary.xml
index c340c4b46..cefa7131c 100644
--- a/reference/reflection/reflectionextension/istemporary.xml
+++ b/reference/reflection/reflectionextension/istemporary.xml
@@ -1,19 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 8b6d169424ff189bb563ef4c3f35f8adff3f42c5 Maintainer: tmn Status: ready -->
+<!-- EN-Revision: 98df2cf9a939729d73adee1484ec05929c74c98b Maintainer: tmn Status: ready -->
<!-- Reviewed: yes Maintainer: lex -->
<!-- $Revision$ -->
-
<refentry xml:id="reflectionextension.istemporary" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>ReflectionExtension::isTemporary</refname>
- <refpurpose>Определяет, является ли расширение временным</refpurpose>
+ <refpurpose>Определяет, является ли модуль временным</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
- <modifier>public</modifier> <type>void</type><methodname>ReflectionExtension::isTemporary</methodname>
- <void />
+ <modifier>public</modifier> <type>bool</type><methodname>ReflectionExtension::isTemporary</methodname>
+ <void/>
</methodsynopsis>
<para>
@@ -31,7 +30,7 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
- Возвращает &true; для расширений, загруженных функцией <function>dl</function>,
+ Возвращает &true; для модулей, загруженных функцией <function>dl</function>,
&false; в противном случае.
</para>
</refsect1>
@@ -46,7 +45,6 @@
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
diff --git a/reference/reflection/reflectionfunction/construct.xml b/reference/reflection/reflectionfunction/construct.xml
index ace43edcb..136f326ac 100644
--- a/reference/reflection/reflectionfunction/construct.xml
+++ b/reference/reflection/reflectionfunction/construct.xml
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 7f569e1f175adf1fbd0e462eba8d6bc82214c939 Maintainer: tmn Status: ready -->
+<!-- EN-Revision: 98df2cf9a939729d73adee1484ec05929c74c98b Maintainer: tmn Status: ready -->
<!-- Reviewed: yes Maintainer: lex -->
<!-- $Revision$ -->
-
<refentry xml:id="reflectionfunction.construct" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>ReflectionFunction::__construct</refname>
@@ -11,10 +10,10 @@
<refsect1 role="description">
&reftitle.description;
- <methodsynopsis>
+ <constructorsynopsis>
<modifier>public</modifier> <methodname>ReflectionFunction::__construct</methodname>
- <methodparam><type>mixed</type><parameter>name</parameter></methodparam>
- </methodsynopsis>
+ <methodparam><type class="union"><type>Closure</type><type>string</type></type><parameter>function</parameter></methodparam>
+ </constructorsynopsis>
<para>
Создаёт объект класса <classname>ReflectionFunction</classname>.
</para>
@@ -25,7 +24,7 @@
<para>
<variablelist>
<varlistentry>
- <term><parameter>name</parameter></term>
+ <term><parameter>function</parameter></term>
<listitem>
<para>
Имя функции для отражения или <link linkend="functions.anonymous">замыкание</link>.
@@ -47,7 +46,7 @@
&reftitle.errors;
<para>
Объект класса <classname>ReflectionException</classname>, если аргумент
- <parameter>name</parameter> не содержит допустимой функции.
+ <parameter>function</parameter> не содержит допустимой функции.
</para>
</refsect1>
@@ -158,7 +157,6 @@ dumpReflectionFunction(new ReflectionFunction($counter2));
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
diff --git a/reference/reflection/reflectionfunction/getclosure.xml b/reference/reflection/reflectionfunction/getclosure.xml
index 7e84728f3..10a5a3d95 100644
--- a/reference/reflection/reflectionfunction/getclosure.xml
+++ b/reference/reflection/reflectionfunction/getclosure.xml
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 8b6d169424ff189bb563ef4c3f35f8adff3f42c5 Maintainer: tmn Status: ready -->
+<!-- EN-Revision: 4754397753fd79f1c846868b66a2448babab1c54 Maintainer: tmn Status: ready -->
<!-- Reviewed: yes Maintainer: lex -->
<!-- $Revision$ -->
-
<refentry xml:id="reflectionfunction.getclosure" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>ReflectionFunction::getClosure</refname>
diff --git a/reference/reflection/reflectionfunction/isdisabled.xml b/reference/reflection/reflectionfunction/isdisabled.xml
index 8583aa065..bfa22c873 100644
--- a/reference/reflection/reflectionfunction/isdisabled.xml
+++ b/reference/reflection/reflectionfunction/isdisabled.xml
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: b71e8b802f19ebed1067898d628e8a03b0550a11 Maintainer: tmn Status: ready -->
+<!-- EN-Revision: 4754397753fd79f1c846868b66a2448babab1c54 Maintainer: tmn Status: ready -->
<!-- Reviewed: yes Maintainer: lex -->
<!-- $Revision$ -->
-
<refentry xml:id="reflectionfunction.isdisabled" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>ReflectionFunction::isDisabled</refname>
diff --git a/reference/reflection/reflectionmethod/construct.xml b/reference/reflection/reflectionmethod/construct.xml
index e325382c9..126bd24c5 100644
--- a/reference/reflection/reflectionmethod/construct.xml
+++ b/reference/reflection/reflectionmethod/construct.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 72502df5f5ad7d2f4fbf8dba58d9b882a2a79f11 Maintainer: tmn Status: ready -->
+<!-- EN-Revision: 8217228b33b68819e6670c27e223edac282bfd2b Maintainer: tmn Status: ready -->
<!-- Reviewed: yes Maintainer: lex -->
<!-- $Revision$ -->
<refentry xml:id="reflectionmethod.construct" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
@@ -10,15 +10,16 @@
<refsect1 role="description">
&reftitle.description;
- <methodsynopsis>
+ <constructorsynopsis>
<modifier>public</modifier> <methodname>ReflectionMethod::__construct</methodname>
- <methodparam><type class="union"><type>string</type><type>object</type></type><parameter>class</parameter></methodparam>
- <methodparam><type>string</type><parameter>name</parameter></methodparam>
- </methodsynopsis>
- <methodsynopsis>
+ <methodparam><type class="union"><type>object</type><type>string</type></type><parameter>objectOrMethod</parameter></methodparam>
+ <methodparam><type>string</type><parameter>method</parameter></methodparam>
+ </constructorsynopsis>
+ <simpara>Alternative signature (not supported with named arguments):</simpara>
+ <constructorsynopsis>
<modifier>public</modifier> <methodname>ReflectionMethod::__construct</methodname>
- <methodparam><type>string</type><parameter>class_method</parameter></methodparam>
- </methodsynopsis>
+ <methodparam><type>string</type><parameter>classMethod</parameter></methodparam>
+ </constructorsynopsis>
<para>
Создаёт новый объект класса <classname>ReflectionMethod</classname>.
</para>
@@ -30,7 +31,7 @@
<para>
<variablelist>
<varlistentry>
- <term><parameter>class</parameter></term>
+ <term><parameter>objectOrMethod</parameter></term>
<listitem>
<para>
Имя класса или объект (экземпляр класса), содержащего метод.
@@ -38,7 +39,7 @@
</listitem>
</varlistentry>
<varlistentry>
- <term><parameter>name</parameter></term>
+ <term><parameter>method</parameter></term>
<listitem>
<para>
Имя метода.
@@ -46,7 +47,7 @@
</listitem>
</varlistentry>
<varlistentry>
- <term><parameter>class_method</parameter></term>
+ <term><parameter>classMethod</parameter></term>
<listitem>
<para>
Имена класса и метода, разделённые <literal>::</literal>.
@@ -173,7 +174,6 @@ var_dump($method->invoke(NULL));
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
diff --git a/reference/reflection/reflectionmethod/getclosure.xml b/reference/reflection/reflectionmethod/getclosure.xml
index 5721d24c3..51d1ccfa9 100644
--- a/reference/reflection/reflectionmethod/getclosure.xml
+++ b/reference/reflection/reflectionmethod/getclosure.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 68908757049be877e7b7d3cf73eaff2a31e574b0 Maintainer: tmn Status: ready -->
+<!-- EN-Revision: 98df2cf9a939729d73adee1484ec05929c74c98b Maintainer: tmn Status: ready -->
<!-- Reviewed: yes Maintainer: lex -->
<!-- $Revision$ -->
<refentry xml:id="reflectionmethod.getclosure" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
@@ -12,11 +12,7 @@
&reftitle.description;
<methodsynopsis>
<modifier>public</modifier> <type>Closure</type><methodname>ReflectionMethod::getClosure</methodname>
- <methodparam><type>object</type><parameter>object</parameter></methodparam>
- </methodsynopsis>
- <methodsynopsis>
- <modifier>public</modifier> <type>Closure</type><methodname>ReflectionMethod::getClosure</methodname>
- <void />
+ <methodparam choice="opt"><type class="union"><type>object</type><type>null</type></type><parameter>object</parameter><initializer>&null;</initializer></methodparam>
</methodsynopsis>
<para>
@@ -48,9 +44,29 @@
</para>
</refsect1>
+ <refsect1 role="changelog">
+ &reftitle.changelog;
+ <informaltable>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>&Version;</entry>
+ <entry>&Description;</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>8.0.0</entry>
+ <entry>
+ <parameter>object</parameter> теперь допускает значение null.
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </informaltable>
+ </refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
diff --git a/reference/reflection/reflectionmethod/invoke.xml b/reference/reflection/reflectionmethod/invoke.xml
index d5a067f22..3a5ff2656 100644
--- a/reference/reflection/reflectionmethod/invoke.xml
+++ b/reference/reflection/reflectionmethod/invoke.xml
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 9e0f03ac354d797d1d16c0fcc1663e5e170f2727 Maintainer: tmn Status: ready -->
+<!-- EN-Revision: 98df2cf9a939729d73adee1484ec05929c74c98b Maintainer: tmn Status: ready -->
<!-- Reviewed: yes Maintainer: lex -->
<!-- $Revision$ -->
-
<refentry xml:id="reflectionmethod.invoke" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>ReflectionMethod::invoke</refname>
@@ -13,7 +12,7 @@
&reftitle.description;
<methodsynopsis>
<modifier>public</modifier> <type>mixed</type><methodname>ReflectionMethod::invoke</methodname>
- <methodparam><type>object</type><parameter>object</parameter></methodparam>
+ <methodparam><type class="union"><type>object</type><type>null</type></type><parameter>object</parameter></methodparam>
<methodparam rep="repeat"><type>mixed</type><parameter>args</parameter></methodparam>
</methodsynopsis>
<para>
@@ -121,7 +120,6 @@ echo $reflectionMethod->invoke(new HelloWorld(), 'Майк');
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
diff --git a/reference/reflection/reflectionmethod/invokeargs.xml b/reference/reflection/reflectionmethod/invokeargs.xml
index 08f5def61..e8d0d3228 100644
--- a/reference/reflection/reflectionmethod/invokeargs.xml
+++ b/reference/reflection/reflectionmethod/invokeargs.xml
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: fcddfb2551140fba9a14a4c44dc9fa60004440c8 Maintainer: tmn Status: ready -->
+<!-- EN-Revision: 98df2cf9a939729d73adee1484ec05929c74c98b Maintainer: tmn Status: ready -->
<!-- Reviewed: yes Maintainer: lex -->
<!-- $Revision$ -->
-
<refentry xml:id="reflectionmethod.invokeargs" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>ReflectionMethod::invokeArgs</refname>
@@ -13,7 +12,7 @@
&reftitle.description;
<methodsynopsis>
<modifier>public</modifier> <type>mixed</type><methodname>ReflectionMethod::invokeArgs</methodname>
- <methodparam><type>object</type><parameter>object</parameter></methodparam>
+ <methodparam><type class="union"><type>object</type><type>null</type></type><parameter>object</parameter></methodparam>
<methodparam><type>array</type><parameter>args</parameter></methodparam>
</methodsynopsis>
<para>
@@ -120,7 +119,6 @@ echo $reflectionMethod->invokeArgs(new HelloWorld(), array('Майк'));
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
diff --git a/reference/reflection/reflectionmethod/isabstract.xml b/reference/reflection/reflectionmethod/isabstract.xml
index acb33f120..c99507678 100644
--- a/reference/reflection/reflectionmethod/isabstract.xml
+++ b/reference/reflection/reflectionmethod/isabstract.xml
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: b71e8b802f19ebed1067898d628e8a03b0550a11 Maintainer: tmn Status: ready -->
+<!-- EN-Revision: af4410a7e15898c3dbe83d6ea38246745ed9c6fb Maintainer: tmn Status: ready -->
<!-- Reviewed: yes Maintainer: lex -->
<!-- $Revision$ -->
-
<refentry xml:id="reflectionmethod.isabstract" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>ReflectionMethod::isAbstract</refname>
diff --git a/reference/reflection/reflectionmethod/isconstructor.xml b/reference/reflection/reflectionmethod/isconstructor.xml
index 0ddd1b5f5..998187840 100644
--- a/reference/reflection/reflectionmethod/isconstructor.xml
+++ b/reference/reflection/reflectionmethod/isconstructor.xml
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: b71e8b802f19ebed1067898d628e8a03b0550a11 Maintainer: tmn Status: ready -->
+<!-- EN-Revision: af4410a7e15898c3dbe83d6ea38246745ed9c6fb Maintainer: tmn Status: ready -->
<!-- Reviewed: yes Maintainer: lex -->
<!-- $Revision$ -->
-
<refentry xml:id="reflectionmethod.isconstructor" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>ReflectionMethod::isConstructor</refname>
diff --git a/reference/reflection/reflectionmethod/isfinal.xml b/reference/reflection/reflectionmethod/isfinal.xml
index c0a2e6d14..4afeb0378 100644
--- a/reference/reflection/reflectionmethod/isfinal.xml
+++ b/reference/reflection/reflectionmethod/isfinal.xml
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: b71e8b802f19ebed1067898d628e8a03b0550a11 Maintainer: tmn Status: ready -->
+<!-- EN-Revision: af4410a7e15898c3dbe83d6ea38246745ed9c6fb Maintainer: tmn Status: ready -->
<!-- Reviewed: yes Maintainer: lex -->
<!-- $Revision$ -->
-
<refentry xml:id="reflectionmethod.isfinal" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>ReflectionMethod::isFinal</refname>
diff --git a/reference/reflection/reflectionmethod/isprivate.xml b/reference/reflection/reflectionmethod/isprivate.xml
index 4bd7d5bd9..f63f78641 100644
--- a/reference/reflection/reflectionmethod/isprivate.xml
+++ b/reference/reflection/reflectionmethod/isprivate.xml
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: b71e8b802f19ebed1067898d628e8a03b0550a11 Maintainer: tmn Status: ready -->
+<!-- EN-Revision: af4410a7e15898c3dbe83d6ea38246745ed9c6fb Maintainer: tmn Status: ready -->
<!-- Reviewed: yes Maintainer: lex -->
<!-- $Revision$ -->
-
<refentry xml:id="reflectionmethod.isprivate" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>ReflectionMethod::isPrivate</refname>
diff --git a/reference/reflection/reflectionmethod/isprotected.xml b/reference/reflection/reflectionmethod/isprotected.xml
index 65aacfe83..0148149b6 100644
--- a/reference/reflection/reflectionmethod/isprotected.xml
+++ b/reference/reflection/reflectionmethod/isprotected.xml
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: b71e8b802f19ebed1067898d628e8a03b0550a11 Maintainer: tmn Status: ready -->
+<!-- EN-Revision: af4410a7e15898c3dbe83d6ea38246745ed9c6fb Maintainer: tmn Status: ready -->
<!-- Reviewed: yes Maintainer: lex -->
<!-- $Revision$ -->
-
<refentry xml:id="reflectionmethod.isprotected" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>ReflectionMethod::isProtected</refname>
diff --git a/reference/reflection/reflectionmethod/ispublic.xml b/reference/reflection/reflectionmethod/ispublic.xml
index 3fe2355d9..b03c6fd30 100644
--- a/reference/reflection/reflectionmethod/ispublic.xml
+++ b/reference/reflection/reflectionmethod/ispublic.xml
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: b71e8b802f19ebed1067898d628e8a03b0550a11 Maintainer: tmn Status: ready -->
+<!-- EN-Revision: af4410a7e15898c3dbe83d6ea38246745ed9c6fb Maintainer: tmn Status: ready -->
<!-- Reviewed: yes Maintainer: lex -->
<!-- $Revision$ -->
-
<refentry xml:id="reflectionmethod.ispublic" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>ReflectionMethod::isPublic</refname>
diff --git a/reference/reflection/reflectionmethod/isstatic.xml b/reference/reflection/reflectionmethod/isstatic.xml
index 049e6caab..33110b864 100644
--- a/reference/reflection/reflectionmethod/isstatic.xml
+++ b/reference/reflection/reflectionmethod/isstatic.xml
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: b71e8b802f19ebed1067898d628e8a03b0550a11 Maintainer: tmn Status: ready -->
+<!-- EN-Revision: af4410a7e15898c3dbe83d6ea38246745ed9c6fb Maintainer: tmn Status: ready -->
<!-- Reviewed: yes Maintainer: lex -->
<!-- $Revision$ -->
-
<refentry xml:id="reflectionmethod.isstatic" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>ReflectionMethod::isStatic</refname>
diff --git a/reference/reflection/reflectionmethod/setaccessible.xml b/reference/reflection/reflectionmethod/setaccessible.xml
index f48858a58..e90aff540 100644
--- a/reference/reflection/reflectionmethod/setaccessible.xml
+++ b/reference/reflection/reflectionmethod/setaccessible.xml
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: b71e8b802f19ebed1067898d628e8a03b0550a11 Maintainer: tmn Status: ready -->
+<!-- EN-Revision: cc422ba8c722072aeaeaf36b03eb660e05e11d02 Maintainer: tmn Status: ready -->
<!-- Reviewed: yes Maintainer: lex -->
<!-- $Revision$ -->
-
<refentry xml:id="reflectionmethod.setaccessible" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>ReflectionMethod::setAccessible</refname>
@@ -16,8 +15,7 @@
<methodparam><type>bool</type><parameter>accessible</parameter></methodparam>
</methodsynopsis>
<para>
- Делает метод доступным. Например, позволяет вызывать защищённые и закрытые
- методы.
+ Обеспечивает доступ к защищённому или закрытому свойству с помощью метода <methodname>ReflectionMethod::invoke</methodname>.
</para>
</refsect1>
@@ -44,6 +42,40 @@
</para>
</refsect1>
+ <refsect1 role="examples">
+ &reftitle.examples;
+ <example>
+ <title>Определение простого класса</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+class MyClass
+{
+ private function foo()
+ {
+ return 'bar';
+ }
+}
+
+$method = new ReflectionMethod("MyClass", "foo");
+$method->setAccessible(true);
+
+$obj = new MyClass();
+echo $method->invoke($obj);
+echo $obj->foo();
+?>
+]]>
+ </programlisting>
+ &example.outputs.similar;
+ <screen>
+<![CDATA[
+bar
+Fatal error: Uncaught Error: Call to private method MyClass::foo() from global scope in /in/qdaZS:16
+]]>
+ </screen>
+ </example>
+ </refsect1>
+
<refsect1 role="seealso">
&reftitle.seealso;
<para>
@@ -54,7 +86,6 @@
</para>
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
diff --git a/reference/reflection/reflectionobject/construct.xml b/reference/reflection/reflectionobject/construct.xml
index fb4f251ed..1b0483ffe 100644
--- a/reference/reflection/reflectionobject/construct.xml
+++ b/reference/reflection/reflectionobject/construct.xml
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: d8b968e63cba67a082e6e37aee1ebe7821b41258 Maintainer: tmn Status: ready -->
+<!-- EN-Revision: 98df2cf9a939729d73adee1484ec05929c74c98b Maintainer: tmn Status: ready -->
<!-- Reviewed: yes Maintainer: lex -->
<!-- $Revision$ -->
-
<refentry xml:id="reflectionobject.construct" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>ReflectionObject::__construct</refname>
@@ -11,10 +10,10 @@
<refsect1 role="description">
&reftitle.description;
- <methodsynopsis>
+ <constructorsynopsis>
<modifier>public</modifier> <methodname>ReflectionObject::__construct</methodname>
- <methodparam><type>object</type><parameter>argument</parameter></methodparam>
- </methodsynopsis>
+ <methodparam><type>object</type><parameter>object</parameter></methodparam>
+ </constructorsynopsis>
<para>
Создаёт новый объект класса <classname>ReflectionObject</classname>.
</para>
@@ -28,7 +27,7 @@
<para>
<variablelist>
<varlistentry>
- <term><parameter>argument</parameter></term>
+ <term><parameter>object</parameter></term>
<listitem>
<para>
Экземпляр объекта.
@@ -57,7 +56,6 @@
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
diff --git a/reference/reflection/reflectionobject/export.xml b/reference/reflection/reflectionobject/export.xml
index e8d679c7d..ab0b09af3 100644
--- a/reference/reflection/reflectionobject/export.xml
+++ b/reference/reflection/reflectionobject/export.xml
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: b71e8b802f19ebed1067898d628e8a03b0550a11 Maintainer: tmn Status: ready -->
+<!-- EN-Revision: af4410a7e15898c3dbe83d6ea38246745ed9c6fb Maintainer: tmn Status: ready -->
<!-- Reviewed: yes Maintainer: lex -->
<!-- $Revision$ -->
-
<refentry xml:id="reflectionobject.export" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>ReflectionObject::export</refname>
diff --git a/reference/reflection/reflectionproperty/construct.xml b/reference/reflection/reflectionproperty/construct.xml
index 4f861dd90..e8d6c1b99 100644
--- a/reference/reflection/reflectionproperty/construct.xml
+++ b/reference/reflection/reflectionproperty/construct.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: d640c0f5e153f5d43a71eec4fff29111e539bfa3 Maintainer: tmn Status: ready -->
+<!-- EN-Revision: 98df2cf9a939729d73adee1484ec05929c74c98b Maintainer: tmn Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
<refentry xml:id="reflectionproperty.construct" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
@@ -10,11 +10,11 @@
<refsect1 role="description">
&reftitle.description;
- <methodsynopsis>
+ <constructorsynopsis>
<modifier>public</modifier> <methodname>ReflectionProperty::__construct</methodname>
- <methodparam><type>mixed</type><parameter>class</parameter></methodparam>
- <methodparam><type>string</type><parameter>name</parameter></methodparam>
- </methodsynopsis>
+ <methodparam><type class="union"><type>object</type><type>string</type></type><parameter>class</parameter></methodparam>
+ <methodparam><type>string</type><parameter>property</parameter></methodparam>
+ </constructorsynopsis>
<para>
</para>
@@ -31,12 +31,12 @@
<term><parameter>class</parameter></term>
<listitem>
<para>
- Имя класса, содержащего свойство.
+ Либо строка, содержащая имя отражаемого класса, либо объект.
</para>
</listitem>
</varlistentry>
<varlistentry>
- <term><parameter>name</parameter></term>
+ <term><parameter>property</parameter></term>
<listitem>
<para>
Имя свойства, которое требуется отобразить.
@@ -176,7 +176,6 @@ int(3)
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
diff --git a/reference/reflection/reflectionproperty/getdoccomment.xml b/reference/reflection/reflectionproperty/getdoccomment.xml
index f5f05ba49..542d30860 100644
--- a/reference/reflection/reflectionproperty/getdoccomment.xml
+++ b/reference/reflection/reflectionproperty/getdoccomment.xml
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 1c1b29f597bd56dcd072736f5ca601a4b6f54a72 Maintainer: rjhdby Status: ready -->
+<!-- EN-Revision: 98df2cf9a939729d73adee1484ec05929c74c98b Maintainer: rjhdby Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
-
<refentry xml:id="reflectionproperty.getdoccomment" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>ReflectionProperty::getDocComment</refname>
@@ -12,8 +11,8 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
- <modifier>public</modifier> <type>string</type><methodname>ReflectionProperty::getDocComment</methodname>
- <void />
+ <modifier>public</modifier> <type class="union"><type>string</type><type>false</type></type><methodname>ReflectionProperty::getDocComment</methodname>
+ <void/>
</methodsynopsis>
<para>
Получает doc-комментарий для свойства.
@@ -28,7 +27,7 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
- Doc-комментарий к свойству.
+ Doc-комментарий, если он существует, в противном случае &false;.
</para>
</refsect1>
@@ -111,7 +110,6 @@ b: false
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
diff --git a/reference/reflection/reflectionproperty/getvalue.xml b/reference/reflection/reflectionproperty/getvalue.xml
index 1fe242ecc..66b4ddd02 100644
--- a/reference/reflection/reflectionproperty/getvalue.xml
+++ b/reference/reflection/reflectionproperty/getvalue.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 68b5b97731c78d84dc89381ae52e7b3832f93593 Maintainer: tmn Status: ready -->
+<!-- EN-Revision: 98df2cf9a939729d73adee1484ec05929c74c98b Maintainer: tmn Status: ready -->
<!-- Reviewed: yes Maintainer: lex -->
<!-- $Revision$ -->
<refentry xml:id="reflectionproperty.getvalue" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
@@ -12,7 +12,7 @@
&reftitle.description;
<methodsynopsis>
<modifier>public</modifier> <type>mixed</type><methodname>ReflectionProperty::getValue</methodname>
- <methodparam choice="opt"><type>object</type><parameter>object</parameter></methodparam>
+ <methodparam choice="opt"><type class="union"><type>object</type><type>null</type></type><parameter>object</parameter><initializer>&null;</initializer></methodparam>
</methodsynopsis>
<para>
Получает значение свойства.
@@ -54,6 +54,28 @@
</para>
</refsect1>
+ <refsect1 role="changelog">
+ &reftitle.changelog;
+ <informaltable>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>&Version;</entry>
+ <entry>&Description;</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>8.0.0</entry>
+ <entry>
+ <parameter>object</parameter> теперь допускает значение null.
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </informaltable>
+ </refsect1>
+
<refsect1 role="examples">
&reftitle.examples;
<para>
@@ -107,7 +129,6 @@ string(6) "foofoo"
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
diff --git a/reference/reflection/reflectionproperty/isinitialized.xml b/reference/reflection/reflectionproperty/isinitialized.xml
index a710f2a6c..735405995 100644
--- a/reference/reflection/reflectionproperty/isinitialized.xml
+++ b/reference/reflection/reflectionproperty/isinitialized.xml
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: c4c885db2f2c503824a21ce64901b6a98833d2a8 Maintainer: rjhdby Status: ready -->
+<!-- EN-Revision: 98df2cf9a939729d73adee1484ec05929c74c98b Maintainer: rjhdby Status: ready -->
<!-- Reviewed: no -->
-
<refentry xml:id="reflectionproperty.isinitialized" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>ReflectionProperty::isInitialized</refname>
@@ -13,7 +12,7 @@
&reftitle.description;
<methodsynopsis>
<modifier>public</modifier> <type>bool</type><methodname>ReflectionProperty::isInitialized</methodname>
- <methodparam choice="opt"><type>object</type><parameter>object</parameter></methodparam>
+ <methodparam choice="opt"><type class="union"><type>object</type><type>null</type></type><parameter>object</parameter><initializer>&null;</initializer></methodparam>
</methodsynopsis>
<para>
Проверяет, инициализировано ли свойство.
@@ -55,6 +54,28 @@
</para>
</refsect1>
+ <refsect1 role="changelog">
+ &reftitle.changelog;
+ <informaltable>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>&Version;</entry>
+ <entry>&Description;</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>8.0.0</entry>
+ <entry>
+ <parameter>object</parameter> теперь допускает значение null.
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </informaltable>
+ </refsect1>
+
<refsect1 role="examples">
&reftitle.examples;
<example xml:id="reflectionproperty.isinitialized.example.basic">
@@ -93,7 +114,6 @@ bool(true)
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
diff --git a/reference/reflection/reflectionproperty/setaccessible.xml b/reference/reflection/reflectionproperty/setaccessible.xml
index 56f5eeb41..751831bb2 100644
--- a/reference/reflection/reflectionproperty/setaccessible.xml
+++ b/reference/reflection/reflectionproperty/setaccessible.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: af4410a7e15898c3dbe83d6ea38246745ed9c6fb Maintainer: tmn Status: ready -->
+<!-- EN-Revision: cc422ba8c722072aeaeaf36b03eb660e05e11d02 Maintainer: tmn Status: ready -->
<!-- Reviewed: yes Maintainer: lex -->
<!-- $Revision$ -->
<refentry xml:id="reflectionproperty.setaccessible" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
@@ -15,8 +15,8 @@
<methodparam><type>bool</type><parameter>accessible</parameter></methodparam>
</methodsynopsis>
<para>
- Делает свойство доступным. Например, может сделать доступным защищённое и
- закрытое свойство.
+ Обеспечивает доступ к защищённому или закрытому свойству с помощью методов <methodname>ReflectionProperty::getValue</methodname> и
+ <methodname>ReflectionProperty::setValue</methodname>
</para>
</refsect1>
@@ -43,6 +43,37 @@
</para>
</refsect1>
+ <refsect1 role="examples">
+ &reftitle.examples;
+ <example>
+ <title>Определение простого класса</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+class MyClass
+{
+ private $foo = 'bar';
+}
+
+$property = new ReflectionProperty("MyClass", "foo");
+$property->setAccessible(true);
+
+$obj = new MyClass();
+echo $property->getValue($obj);
+echo $obj->foo;
+?>
+]]>
+ </programlisting>
+ &example.outputs.similar;
+ <screen>
+<![CDATA[
+bar
+Fatal error: Uncaught Error: Cannot access private property MyClass::$foo in /in/WJqTv:12
+]]>
+ </screen>
+ </example>
+ </refsect1>
+
<refsect1 role="seealso">
&reftitle.seealso;
<para>
diff --git a/reference/reflection/reflectionreference/fromarrayelement.xml b/reference/reflection/reflectionreference/fromarrayelement.xml
index bc893dc31..8019b2d87 100644
--- a/reference/reflection/reflectionreference/fromarrayelement.xml
+++ b/reference/reflection/reflectionreference/fromarrayelement.xml
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 3a3b3279ef971ea38eb12e743b19f68e2f21584d Maintainer: rjhdby Status: ready -->
+<!-- EN-Revision: 98df2cf9a939729d73adee1484ec05929c74c98b Maintainer: rjhdby Status: ready -->
<!-- Reviewed: no -->
-
<refentry xml:id="reflectionreference.fromarrayelement" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>ReflectionReference::fromArrayElement</refname>
@@ -12,9 +11,9 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
- <modifier>public</modifier> <modifier>static</modifier> <type>ReflectionReference</type><methodname>ReflectionReference::fromArrayElement</methodname>
+ <modifier>public</modifier> <modifier>static</modifier> <type class="union"><type>ReflectionReference</type><type>null</type></type><methodname>ReflectionReference::fromArrayElement</methodname>
<methodparam><type>array</type><parameter>array</parameter></methodparam>
- <methodparam><type>mixed</type><parameter>key</parameter></methodparam>
+ <methodparam><type class="union"><type>int</type><type>string</type></type><parameter>key</parameter></methodparam>
</methodsynopsis>
<para>
Создаёт <classname>ReflectionReference</classname> из элемента массива.
@@ -63,7 +62,6 @@
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
diff --git a/reference/reflection/reflectionreference/getid.xml b/reference/reflection/reflectionreference/getid.xml
index c263250d2..9c43a20f4 100644
--- a/reference/reflection/reflectionreference/getid.xml
+++ b/reference/reflection/reflectionreference/getid.xml
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 3a3b3279ef971ea38eb12e743b19f68e2f21584d Maintainer: rjhdby Status: ready -->
+<!-- EN-Revision: 98df2cf9a939729d73adee1484ec05929c74c98b Maintainer: rjhdby Status: ready -->
<!-- Reviewed: no -->
-
<refentry xml:id="reflectionreference.getid" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>ReflectionReference::getId</refname>
@@ -12,8 +11,8 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
- <modifier>public</modifier> <type>mixed</type><methodname>ReflectionReference::getId</methodname>
- <void />
+ <modifier>public</modifier> <type>string</type><methodname>ReflectionReference::getId</methodname>
+ <void/>
</methodsynopsis>
<para>
Возвращает идентификатор, являющийся уникальным для ссылки на всём протяжении её жизни.
@@ -30,7 +29,7 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
- Возвращает &integer; или &string; неопределённого формата.
+ Возвращает &string; неопределённого формата.
</para>
</refsect1>
@@ -65,7 +64,6 @@ bool(true)
</refsect1>
</refentry>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
diff --git a/reference/solr/solrillegalargumentexception/getinternalinfo.xml b/reference/solr/solrillegalargumentexception/getinternalinfo.xml
index 2b190308f..3366e7352 100644
--- a/reference/solr/solrillegalargumentexception/getinternalinfo.xml
+++ b/reference/solr/solrillegalargumentexception/getinternalinfo.xml
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 8b6d169424ff189bb563ef4c3f35f8adff3f42c5 Maintainer: northcat Status: ready -->
+<!-- EN-Revision: 734ddd27ada5fdc8fbd2724e4c9e08881649dec1 Maintainer: northcat Status: ready -->
<!-- Reviewed: yes Maintainer: sergey -->
-
<refentry xml:id="solrillegalargumentexception.getinternalinfo" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>SolrIllegalArgumentException::getInternalInfo</refname>
diff --git a/reference/solr/solrillegaloperationexception/getinternalinfo.xml b/reference/solr/solrillegaloperationexception/getinternalinfo.xml
index 22f681533..b6397cf84 100644
--- a/reference/solr/solrillegaloperationexception/getinternalinfo.xml
+++ b/reference/solr/solrillegaloperationexception/getinternalinfo.xml
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 8b6d169424ff189bb563ef4c3f35f8adff3f42c5 Maintainer: northcat Status: ready -->
+<!-- EN-Revision: 734ddd27ada5fdc8fbd2724e4c9e08881649dec1 Maintainer: northcat Status: ready -->
<!-- Reviewed: yes Maintainer: sergey -->
-
<refentry xml:id="solrillegaloperationexception.getinternalinfo" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>SolrIllegalOperationException::getInternalInfo</refname>
diff --git a/reference/spl/splfixedarray.xml b/reference/spl/splfixedarray.xml
index 88ba01d51..dc7fb5634 100644
--- a/reference/spl/splfixedarray.xml
+++ b/reference/spl/splfixedarray.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 4491cca51d892ac1dd7ef42309ad34e26e149b42 Maintainer: shein Status: ready -->
+<!-- EN-Revision: ed1c33aa04584424bbded4ec1573a395c3e8fb71 Maintainer: shein Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
<phpdoc:classref xmlns:phpdoc="http://php.net/ns/phpdoc" xml:id="class.splfixedarray" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude">
@@ -15,9 +15,9 @@
Класс SplFixedArray обеспечивает базовую функциональность,
предоставляемую массивами.
Главное различие между SplFixedArray и обычным массивом PHP в том,
- что SplFixedArray имеет фиксированную длину, а в
+ что размер SplFixedArray необходимо изменять вручную, а в
качестве индексов могут выступать только целочисленные значения.
- Преимущество данных ограничений заключается в меньшем использовании памяти, чем стандартный <type>array</type>.
+ Преимущество данных ограничений заключается в меньшем использовании памяти, чем стандартный массив (<type>array</type>).
</para>
</section>
<!-- }}} -->