1
0
mirror of https://github.com/php/doc-de.git synced 2026-03-23 23:02:13 +01:00
Files
archived-doc-de/language/predefined/closure.xml
2026-02-04 15:07:16 +00:00

112 lines
3.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: d74f3573b3831b2db8f31f774cff32eb8560ba6e Maintainer: samesch 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>Die Klasse Closure</title>
<titleabbrev>Closure</titleabbrev>
<partintro>
<!-- {{{ Closure intro -->
<section xml:id="closure.intro">
&reftitle.intro;
<para>
Klasse zur Darstellung von
<link linkend="functions.anonymous">anonymen Funktionen</link>.
</para>
<para>
Eine anonyme Funktion erzeugt ein Objekt dieses Typs. Diese Klasse enthält
Methoden, mit denen eine anonyme Funktion nach ihrer Erstellung weiterhin
kontrolliert werden kann.
</para>
<para>
Neben den hier aufgeführten Methoden hat diese Klasse auch eine
<literal>__invoke</literal>-Methode. Dies dient der Konsistenz mit anderen
Klassen, die die
<link linkend="language.oop5.magic.invoke">magische Methode __invoke()</link>
implementieren, da diese nicht für den Aufruf von Funktionen verwendet wird.
</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>
<section role="changelog">
&reftitle.changelog;
<informaltable>
<tgroup cols="2">
<thead>
<row>
<entry>&Version;</entry>
<entry>&Description;</entry>
</row>
</thead>
<tbody>
<row>
<entry>8.4.0</entry>
<entry>
Die Ausgabe von <methodname>Closure::__debugInfo</methodname> enthält
nun den Namen, die Zeile und die Datei der Closure.
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</section>
</partintro>
&language.predefined.closure.construct;
&language.predefined.closure.bind;
&language.predefined.closure.bindto;
&language.predefined.closure.call;
&language.predefined.closure.fromcallable;
&language.predefined.closure.getcurrent;
</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
-->