mirror of
https://github.com/php/doc-ja.git
synced 2026-03-24 07:02:08 +01:00
- 参照下さい - 参照して下さい - 参照してください を「参照ください」に置き換えた。 個人的には「参照ください」は違和感のある日本語だが、既存の訳で圧倒的な優勢だったそれを採用した。 closes: #23
126 lines
3.4 KiB
XML
126 lines
3.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: 6846ebb4e33d51faee4a1e99c241a7a24861e0e4 Maintainer: hirokawa Status: ready -->
|
|
<!-- CREDITS: shimooka,mumumu -->
|
|
<refentry xml:id="function.get-declared-classes" xmlns="http://docbook.org/ns/docbook">
|
|
<refnamediv>
|
|
<refname>get_declared_classes</refname>
|
|
<refpurpose>定義済のクラスの名前を配列として返す</refpurpose>
|
|
</refnamediv>
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type>array</type><methodname>get_declared_classes</methodname>
|
|
<void/>
|
|
</methodsynopsis>
|
|
<para>
|
|
定義済のクラスの名前を配列として返します。
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
&no.function.parameters;
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
この関数は、現在のスクリプトで宣言されたクラスの名前の配列を返します。
|
|
</para>
|
|
<note>
|
|
<para>
|
|
PHP にコンパイル時に組み込んだり読み込んだりしている拡張モジュールの種類に依存して、
|
|
他のクラスも存在する可能性があることに注意しましょう。
|
|
これは、自作のクラスをそれらと同じ名前で作成できないことを意味します。
|
|
定義済みのクラスについては付録の<link
|
|
linkend="reserved.classes">定義済みクラス</link>のセクションを
|
|
参照ください。
|
|
</para>
|
|
</note>
|
|
</refsect1>
|
|
|
|
<refsect1 role="changelog">
|
|
&reftitle.changelog;
|
|
<informaltable>
|
|
<tgroup cols="2">
|
|
<thead>
|
|
<row>
|
|
<entry>&Version;</entry>
|
|
<entry>&Description;</entry>
|
|
</row>
|
|
</thead>
|
|
<tbody>
|
|
<row>
|
|
<entry>7.4.0</entry>
|
|
<entry>
|
|
以前のバージョンでは、<function>get_declared_classes</function> 関数は
|
|
子クラスの前に親クラスを常に返していました。
|
|
このバージョンからは、そうした動きはなくなりました。
|
|
この関数の戻り値について、特定の順序は保証されません。
|
|
</entry>
|
|
</row>
|
|
</tbody>
|
|
</tgroup>
|
|
</informaltable>
|
|
</refsect1>
|
|
|
|
<refsect1 role="examples">
|
|
&reftitle.examples;
|
|
<para>
|
|
<example>
|
|
<title><function>get_declared_classes</function> の例</title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
print_r(get_declared_classes());
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
&example.outputs.similar;
|
|
<screen>
|
|
<![CDATA[
|
|
Array
|
|
(
|
|
[0] => stdClass
|
|
[1] => __PHP_Incomplete_Class
|
|
[2] => Directory
|
|
)
|
|
]]>
|
|
</screen>
|
|
</example>
|
|
</para>
|
|
</refsect1>
|
|
<refsect1 role="seealso">
|
|
&reftitle.seealso;
|
|
<para>
|
|
<simplelist>
|
|
<member><function>class_exists</function></member>
|
|
<member><function>get_declared_interfaces</function></member>
|
|
<member><function>get_defined_functions</function></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
|
|
-->
|