1
0
mirror of https://github.com/php/doc-ru.git synced 2026-03-26 00:32:15 +01:00
Files
archived-doc-ru/reference/componere/book.xml
2024-04-21 18:51:04 +03:00

74 lines
3.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: bbfa9738785f054752e6cb565cd0a58e71015bc6 Maintainer: sergey Status: ready -->
<!-- Reviewed: no -->
<book xml:id="book.componere" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude">
<?phpdoc extension-membership="pecl" ?>
<title>Componere</title>
<titleabbrev>Componere</titleabbrev>
<preface xml:id="intro.componere">
&reftitle.intro;
<para>
Componere <subscript>(латинский, английский: compose)</subscript> предназначен для производственных окружений и предоставляет API для
составления классов, обезьяньих патчей и приведения.
</para>
<formalpara>
<title>Структура:</title>
<para>
<classname>Componere\Definition</classname> используется для определения (или переопределения) класса во время выполнения;
Затем класс может быть зарегистрирован и в случае переопределения он заменяет исходный класс
до тех пор, пока существует <classname>Componere\Definition</classname>.
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.componere-definition')/db:refentry/db:refsect1[@role='description']/descendant::db:constructorsynopsis[not(@role='procedural')])" />
</para>
</formalpara>
<formalpara>
<title>Патчинг:</title>
<para>
<classname>Componere\Patch</classname> используется для изменения класса конкретного экземпляра объекта во время выполнения;
После применения исправление будет применяться до тех пор, пока существует <classname>Componere\Patch</classname> и его можно явно отменить.
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.componere-patch')/db:refentry/db:refsect1[@role='description']/descendant::db:constructorsynopsis[not(@role='procedural')])" />
</para>
</formalpara>
<formalpara>
<title>Приведение:</title>
<para>
<classname>Componere\</classname> функции приведения могут приводить среди определённых пользователем совместимых типов;
В случае совместимости означает, что <classname>Type</classname> является подчинённым или супер типом <parameter>object</parameter>.
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('componere.cast')/db:refsect1[@role='description']/descendant::db:methodsynopsis)" />
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('componere.cast_by_ref')/db:refsect1[@role='description']/descendant::db:methodsynopsis)" />
</para>
</formalpara>
</preface>
&reference.componere.setup;
&reference.componere.componere.abstract.definition;
&reference.componere.componere.definition;
&reference.componere.componere.patch;
&reference.componere.componere.method;
&reference.componere.componere.value;
&reference.componere.reference;
</book>
<!-- 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
-->