mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
Resolve doc bug #71279
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@338410 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
8a4b3b6a35
commit
102a7f2b5e
3 changed files with 96 additions and 1 deletions
94
reference/reflection/reflectionclass/isanonymous.xml
Normal file
94
reference/reflection/reflectionclass/isanonymous.xml
Normal file
|
@ -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
|
||||
-->
|
|
@ -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
|
||||
|
|
|
@ -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"/>
|
||||
|
|
Loading…
Reference in a new issue