cvs: phpdoc-de /language/oop5 constants.xml

From: Date: Sun, 25 Jan 2009 11:52:58 +0000
Subject: cvs: phpdoc-de /language/oop5 constants.xml
Groups: php.doc.de 
Request: Send a blank email to doc-de+get-3176@lists.php.net to get a copy of this message
hholzgra Sun Jan 25 11:52:58 2009 UTC Modified files: /phpdoc-de/language/oop5 constants.xml Log: translation update http://cvs.php.net/viewvc.cgi/phpdoc-de/language/oop5/constants.xml?r1=1.6&r2=1.7&diff_format=u Index: phpdoc-de/language/oop5/constants.xml diff -u phpdoc-de/language/oop5/constants.xml:1.6 phpdoc-de/language/oop5/constants.xml:1.7 --- phpdoc-de/language/oop5/constants.xml:1.6 Sat Aug 9 11:30:42 2008 +++ phpdoc-de/language/oop5/constants.xml Sun Jan 25 11:52:57 2009 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.8 Maintainer: hholzgra Status: ready --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.17 Maintainer: hholzgra Status: ready --> <!-- Credits: simp --> <sect1 xml:id="language.oop5.constants" xmlns="http://docbook.org/ns/docbook"> <title>Klassenkonstanten</title> @@ -15,7 +15,11 @@ Variablen, Klassenmamber, Ergebnisse einer mathematischen Operation oder Funktionsaufrufe. </para> - + <para> + Ein Interface kann ebenfalls <literal>constants</literal> enthalten. + Die <link linkend="language.oop5.interfaces">Interface-Dokumentation</link> + enthält Beispiele dazu. + </para> <para> Beginnend mit PHP 5.3.0 ist es möglich eine Variable als Klassenreferenz zu nutzen. Der Variablenwert kann kein Schlüsselwort (wie <literal>self</literal>, @@ -50,6 +54,30 @@ </programlisting> </example> + <example> + <title>Beispiel für statische Daten</title> + <programlisting role="php"> +<![CDATA[ +<?php +class foo { + // Ab PHP 5.3.0 + const bar = <<<'EOT' +bar +EOT; +} +?> +]]> + </programlisting> + <para> + Nowdocs können, anders als heredocs, in jedem statischen + Datenkontext verwendet werden. + </para> + </example> + <note> + <para> + Unterstützung von Nowdocs wurde in PHP 5.3.0 eingeführt. + </para> + </note> </sect1> <!-- Keep this comment at the end of the file

« previous php.doc.de (#3176) next »