svn: /phpdoc/en/trunk/reference/reflection/ reflectionclass/isanonymous.xml reflectionclass/isfinal.xml versions.xml
| From: | Thomas Punt | Date: | Wed, 06 Jan 2016 19:01:14 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/reflection/ reflectionclass/isanonymous.xml reflectionclass/isfinal.xml versions.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-13949@lists.php.net to get a copy of this message | ||
tpunt Wed, 06 Jan 2016 19:01:14 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=338410
Log:
Resolve doc bug #71279
Bug: https://bugs.php.net/71279 (Open) ReflectionClass
documentation missing isAnonymous method
Changed paths:
A phpdoc/en/trunk/reference/reflection/reflectionclass/isanonymous.xml
U phpdoc/en/trunk/reference/reflection/reflectionclass/isfinal.xml
U phpdoc/en/trunk/reference/reflection/versions.xml
Added: phpdoc/en/trunk/reference/reflection/reflectionclass/isanonymous.xml
===================================================================
--- phpdoc/en/trunk/reference/reflection/reflectionclass/isanonymous.xml
(rev 0)
+++ phpdoc/en/trunk/reference/reflection/reflectionclass/isanonymous.xml 2016-01-06 19:01:14 UTC
(rev 338410)
@@ -0,0 +1,94 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision$ -->
+
+<refentry xml:id="reflectionclass.isanonymous" xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink">
+ <refnamediv>
+ <refname>ReflectionClass::isAnonymous</refname>
+ <refpurpose>Checks if class is anonymous</refpurpose>
+ </refnamediv>
+
+ <refsect1 role="description">
+ &reftitle.description;
+ <methodsynopsis>
+ <modifier>public</modifier>
<type>bool</type><methodname>ReflectionClass::isAnonymous</methodname>
+ <void />
+ </methodsynopsis>
+ <para>
+ Checks if a class is an anonymous class.
+ </para>
+ </refsect1>
+
+ <refsect1 role="parameters">
+ &reftitle.parameters;
+ &no.function.parameters;
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+ &reftitle.returnvalues;
+ <para>
+ &return.success;
+ </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+ &reftitle.examples;
+ <para>
+ <example>
+ <title><methodname>ReflectionClass::isAnonymous</methodname>
example</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+class TestClass {}
+$anonClass = new class {};
+
+$normalClass = new ReflectionClass('TestClass');
+$anonClass = new ReflectionClass($anonClass);
+
+var_dump($normalClass->isAnonymous());
+var_dump($anonClass->isAnonymous());
+
+?>
+]]>
+ </programlisting>
+ &example.outputs;
+ <screen>
+<![CDATA[
+bool(false)
+bool(true)
+]]>
+ </screen>
+ </example>
+ </para>
+ </refsect1>
+
+ <refsect1 role="seealso">
+ &reftitle.seealso;
+ <para>
+ <simplelist>
+ <member><methodname>ReflectionClass::isFinal</methodname></member>
+ </simplelist>
+ </para>
+ </refsect1>
+
+</refentry>
+
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:1
+sgml-indent-data:t
+indent-tabs-mode:nil
+sgml-parent-document:nil
+sgml-default-dtd-file:"~/.phpdoc/manual.ced"
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+vim600: syn=xml fen fdm=syntax fdl=2 si
+vim: et tw=78 syn=sgml
+vi: ts=1 sw=1
+-->
Modified: phpdoc/en/trunk/reference/reflection/reflectionclass/isfinal.xml
===================================================================
--- phpdoc/en/trunk/reference/reflection/reflectionclass/isfinal.xml 2016-01-06 18:47:14 UTC (rev
338409)
+++ phpdoc/en/trunk/reference/reflection/reflectionclass/isfinal.xml 2016-01-06 19:01:14 UTC (rev
338410)
@@ -34,7 +34,7 @@
&reftitle.examples;
<para>
<example>
- <title><methodname>ReflectionClass::isAbstract</methodname>
example</title>
+ <title><methodname>ReflectionClass::isFinal</methodname>
example</title>
<programlisting role="php">
<![CDATA[
<?php
Modified: phpdoc/en/trunk/reference/reflection/versions.xml
===================================================================
--- phpdoc/en/trunk/reference/reflection/versions.xml 2016-01-06 18:47:14 UTC (rev 338409)
+++ phpdoc/en/trunk/reference/reflection/versions.xml 2016-01-06 19:01:14 UTC (rev 338410)
@@ -176,6 +176,7 @@
<function name="reflectionclass::isinterface" from="PHP 5, PHP 7"/>
<function name="reflectionclass::isabstract" from="PHP 5, PHP 7"/>
<function name="reflectionclass::isfinal" from="PHP 5, PHP 7"/>
+ <function name="reflectionclass::isanonymous" from="PHP 5, PHP 7"/>
<function name="reflectionclass::getmodifiers" from="PHP 5, PHP 7"/>
<function name="reflectionclass::isinstance" from="PHP 5, PHP 7"/>
<function name="reflectionclass::newinstance" from="PHP 5, PHP 7"/>