mirror of
https://github.com/php/doc-ja.git
synced 2026-03-24 07:02:08 +01:00
96 lines
2.5 KiB
XML
96 lines
2.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: 84f25609071c1da9110a54776d0eda3d3709cacb Maintainer: takagi Status: ready -->
|
|
|
|
<refentry xml:id="reflectionclass.isinternal" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
<refnamediv>
|
|
<refname>ReflectionClass::isInternal</refname>
|
|
<refpurpose>拡張モジュールあるいはコアで定義された内部クラスであるかどうかを調べる</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis role="ReflectionClass">
|
|
<modifier>public</modifier> <type>bool</type><methodname>ReflectionClass::isInternal</methodname>
|
|
<void/>
|
|
</methodsynopsis>
|
|
<para>
|
|
そのクラスが拡張モジュールやコアで定義された内部クラスである (ユーザーが定義したものではない) かどうかを調べます。
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
&no.function.parameters;
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
クラスが拡張モジュールやPHPコアの内部で定義されている場合は、
|
|
&true; を返します。
|
|
そうでない場合は、&false; を返します。
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="examples">
|
|
&reftitle.examples;
|
|
<para>
|
|
<example>
|
|
<title><methodname>ReflectionClass::isInternal</methodname> の基本的な使用例</title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
$internalclass = new ReflectionClass('ReflectionClass');
|
|
|
|
class Apple {}
|
|
$userclass = new ReflectionClass('Apple');
|
|
|
|
var_dump($internalclass->isInternal());
|
|
var_dump($userclass->isInternal());
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
&example.outputs;
|
|
<screen>
|
|
<![CDATA[
|
|
bool(true)
|
|
bool(false)
|
|
]]>
|
|
</screen>
|
|
</example>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="seealso">
|
|
&reftitle.seealso;
|
|
<para>
|
|
<simplelist>
|
|
<member><methodname>ReflectionClass::isUserDefined</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
|
|
-->
|