1
0
mirror of https://github.com/php/doc-ru.git synced 2026-03-26 16:52:12 +01:00
Files
archived-doc-ru/language/predefined/closure.xml
2024-06-14 17:02:33 +01:00

86 lines
2.9 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: 14767af0f05dffa6fdb9b49e1a1f4e9ca7022a60 Maintainer: irker Status: ready -->
<!-- Reviewed: no -->
<reference xml:id="class.closure" role="class" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude">
<title>Класс Closure</title>
<titleabbrev>Closure</titleabbrev>
<partintro>
<!-- {{{ Closure intro -->
<section xml:id="closure.intro">
&reftitle.intro;
<para>
Класс, используемый для создания <link linkend="functions.anonymous">анонимных
функций</link>.
</para>
<para>
Анонимные функции выдают объекты этого типа.
Класс получил
методы, позволяющие контролировать анонимную функцию после её создания.
</para>
<para>
Кроме методов, описанных здесь, этот класс также имеет метод <literal>__invoke</literal>.
Данный метод необходим только для совместимости с другими классами, в которых
реализован <link linkend="language.oop5.magic.invoke">магический вызов</link>, так как
этот метод не используется при вызове функции.
</para>
</section>
<!-- }}} -->
<section xml:id="closure.synopsis">
&reftitle.classsynopsis;
<!-- {{{ Synopsis -->
<classsynopsis class="class">
<ooclass>
<modifier>final</modifier>
<classname>Closure</classname>
</ooclass>
<classsynopsisinfo role="comment">&Methods;</classsynopsisinfo>
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.closure')/db:refentry/db:refsect1[@role='description']/descendant::db:constructorsynopsis[@role='Closure'])">
<xi:fallback/>
</xi:include>
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.closure')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[@role='Closure'])">
<xi:fallback/>
</xi:include>
</classsynopsis>
<!-- }}} -->
</section>
</partintro>
&language.predefined.closure.construct;
&language.predefined.closure.bind;
&language.predefined.closure.bindto;
&language.predefined.closure.call;
&language.predefined.closure.fromcallable;
</reference>
<!-- 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
-->