Files
php-doc-ru/reference/classobj/functions/get-declared-classes.xml
Andrey Gromov 73d3024fec --
Provided by anonymous 81924 (lex61rus@gmail.com)

git-svn-id: https://svn.php.net/repository/phpdoc/ru/trunk@343387 c90b9560-bf6c-de11-be94-00142212c4b1
2017-11-10 12:47:31 +00:00

94 lines
2.8 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 96c9d88bad9a7d7d44bfb7f26c226df7ee9ddf26 Maintainer: shein Status: ready -->
<!-- Reviewed: yes -->
<!-- $Revision$ -->
<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="returnvalues">
&reftitle.returnvalues;
<para>
Возвращает массив имен объявленных классов текущего скрипта.
</para>
<note>
<para>
Учтите также, что в зависимости от расширений, собранных или
загруженных в PHP, может варьироваться число дополнительных классов.
Это означает, что вы не сможете использовать собственные классы
с данными именами. Список предопределенных классов находится в
разделе дополнения "<link
linkend="reserved.classes">Предопределенные классы</link>".
</para>
</note>
</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
-->