Files
php-doc-ru/language/predefined/attributes/attribute.xml
2023-01-03 12:07:53 +03:00

76 lines
2.6 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: 681fd84dbdef6c0f8fe92848677d95a993b66143 Maintainer: sergey Status: ready -->
<!-- Reviewed: no -->
<phpdoc:classref xml:id="class.attribute" xmlns:phpdoc="http://php.net/ns/phpdoc" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude">
<title>Класс Attribute</title>
<titleabbrev>Attribute</titleabbrev>
<partintro>
<section xml:id="attribute.intro">
&reftitle.intro;
<para>
Атрибуты дают возможность добавлять структурированную, машиночитаемую информацию
метаданных о декларациях в коде: целью атрибута могут быть классы, методы, функции, параметры, свойства
и константы класса.
Метаданные, определённые атрибутами, могут быть проверены во время выполнения
с помощью <link linkend="book.reflection">Reflection API</link>.
Поэтому атрибуты можно рассматривать как язык конфигурации, встроенный непосредственно в код.
</para>
</section>
<section xml:id="attribute.synopsis">
&reftitle.classsynopsis;
<classsynopsis>
<ooclass>
<classname>Attribute</classname>
</ooclass>
<classsynopsisinfo>
<ooclass>
<modifier>final</modifier>
<classname>Attribute</classname>
</ooclass>
</classsynopsisinfo>
<classsynopsisinfo role="comment">&Methods;</classsynopsisinfo>
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.attribute')/db:refentry/db:refsect1[@role='description']/descendant::db:constructorsynopsis[@role='Attribute'])">
<xi:fallback/>
</xi:include>
</classsynopsis>
</section>
<section xml:id="attribute.seealso">
&reftitle.seealso;
<para><link linkend="language.attributes">Введение в атрибуты</link></para>
</section>
</partintro>
&language.predefined.attribute.construct;
</phpdoc:classref>
<!-- 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
-->