svn: /phpdoc/de/trunk/language/oop5/ changelog.xml interfaces.xml iterations.xml paamayim-nekudotayim.xml properties.xml
[email protected] (Christoph Michael Becker)
| Newsgroups | php.doc.de |
|---|---|
| Message-ID | <[email protected]> |
cmb Wed, 25 Oct 2017 13:35:52 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=343298
Log:
Sync with EN
Changed paths:
U phpdoc/de/trunk/language/oop5/changelog.xml
U phpdoc/de/trunk/language/oop5/interfaces.xml
U phpdoc/de/trunk/language/oop5/iterations.xml
U phpdoc/de/trunk/language/oop5/paamayim-nekudotayim.xml
U phpdoc/de/trunk/language/oop5/properties.xml
Modified: phpdoc/de/trunk/language/oop5/changelog.xml
===================================================================
--- phpdoc/de/trunk/language/oop5/changelog.xml 2017-10-25 13:12:12 UTC (rev 343297)
+++ phpdoc/de/trunk/language/oop5/changelog.xml 2017-10-25 13:35:52 UTC (rev 343298)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 333618 Maintainer: simp Status: ready -->
+<!-- EN-Revision: 342129 Maintainer: simp Status: ready -->
<sect1 xml:id="language.oop5.changelog" xmlns="http://docbook.org/ns/docbook">
<title>OOP-Changelog</title>
<para>
@@ -19,8 +19,27 @@
</thead>
<tbody>
<row>
+ <entry>7.0.0</entry>
+ <entry>
+ Definieren (kompatibler) Eigenschaften in zwei verwendeten Traits erzeugt
+ keinen Fehler mehr.
+ </entry>
+ </row>
+ <row>
+ <entry>5.6.0</entry>
+ <entry>
+ Hinzugefügt: die <link linkend="object.debuginfo">__debugInfo()</link> Methode.
+ </entry>
+ </row>
+ <row>
<entry>5.5.0</entry>
<entry>
+ Hinzugefügt: die magische <link linkend="language.oop5.basic.class.class">::class</link> Konstante.
+ </entry>
+ </row>
+ <row>
+ <entry>5.5.0</entry>
+ <entry>
<link linkend="language.exceptions">finally</link> zur Behandlung von
Exceptions hinzugefügt.
</entry>
Modified: phpdoc/de/trunk/language/oop5/interfaces.xml
===================================================================
--- phpdoc/de/trunk/language/oop5/interfaces.xml 2017-10-25 13:12:12 UTC (rev 343297)
+++ phpdoc/de/trunk/language/oop5/interfaces.xml 2017-10-25 13:35:52 UTC (rev 343298)
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 334698 Maintainer: hholzgra Status: ready -->
- <sect1 xml:id="language.oop5.interfaces" xmlns="http://docbook.org/ns/docbook">
+<!-- EN-Revision: 343082 Maintainer: hholzgra Status: ready -->
+ <sect1 xml:id="language.oop5.interfaces" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>Interfaces</title>
<para>
Interfaces erlauben die Erzeugung von Code, der spezifiziert, welche
@@ -9,8 +9,9 @@
wie diese Methoden behandelt werden.
</para>
<para>
- Interfaces werden mit dem <literal>interface</literal> Schlüsselwort auf dieselbe Weise wie
- eine Standardklasse definiert, ohne dass eine der Methoden ihren
+ Interfaces werden auf die selbe Weise wie eine Klasse definiert, aber mit
+ dem <literal>interface</literal> Schlüsselwort anstatt des <literal>class</literal>
+ Schlüsselworts, und ohne dass eine der Methoden ihren
Inhalt definiert.
</para>
<para>
@@ -17,6 +18,12 @@
Alle in einem Interface deklarierten Methoden müssen public sein; dies liegt
in der Natur eines Interfaces.
</para>
+ <para>
+ Es ist zu beachten, dass es möglich ist einen <link
+ linkend="language.oop5.decon.constructor">Konstructor</link> in einem
+ Interface zu deklarieren, was in einigen Fällen nützlich sein kann, z.B. für
+ die Verwendung durch Factories.
+ </para>
<sect2 xml:id="language.oop5.interfaces.implements">
<title><literal>implements</literal></title>
<para>
Modified: phpdoc/de/trunk/language/oop5/iterations.xml
===================================================================
--- phpdoc/de/trunk/language/oop5/iterations.xml 2017-10-25 13:12:12 UTC (rev 343297)
+++ phpdoc/de/trunk/language/oop5/iterations.xml 2017-10-25 13:35:52 UTC (rev 343298)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 328430 Maintainer: simp Status: ready -->
+<!-- EN-Revision: 338507 Maintainer: simp Status: ready -->
<sect1 xml:id="language.oop5.iterations" xmlns="http://docbook.org/ns/docbook">
<title>Objektiteration</title>
<para>
@@ -26,7 +26,7 @@
function iterateVisible() {
echo "MyClass::iterateVisible:\n";
- foreach($this as $key => $value) {
+ foreach ($this as $key => $value) {
print "$key => $value\n";
}
}
Modified: phpdoc/de/trunk/language/oop5/paamayim-nekudotayim.xml
===================================================================
--- phpdoc/de/trunk/language/oop5/paamayim-nekudotayim.xml 2017-10-25 13:12:12 UTC (rev 343297)
+++ phpdoc/de/trunk/language/oop5/paamayim-nekudotayim.xml 2017-10-25 13:35:52 UTC (rev 343298)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 339962 Maintainer: hholzgra Status: ready -->
+<!-- EN-Revision: 340236 Maintainer: hholzgra Status: ready -->
<!-- Credits: simp -->
<sect1 xml:id="language.oop5.paamayim-nekudotayim" xmlns="http://docbook.org/ns/docbook">
<title>Gültigkeitsbereichsoperator (::)</title>
Modified: phpdoc/de/trunk/language/oop5/properties.xml
===================================================================
--- phpdoc/de/trunk/language/oop5/properties.xml 2017-10-25 13:12:12 UTC (rev 343297)
+++ phpdoc/de/trunk/language/oop5/properties.xml 2017-10-25 13:35:52 UTC (rev 343298)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 328167 Maintainer: simp Status: ready -->
+<!-- EN-Revision: 339448 Maintainer: simp Status: ready -->
<sect1 xml:id="language.oop5.properties" xmlns="http://docbook.org/ns/docbook">
<title>Eigenschaften</title>
@@ -77,12 +77,15 @@
<?php
class SimpleClass
{
- // Ungültige Deklarationen von Eigenschaften:
+ // gültig ab PHP 5.6.0:
public $var1 = 'Hallo ' . 'Welt';
+ // gültig ab PHP 5.3.0:
public $var2 = <<<EOD
Hallo Welt
EOD;
+ // gültig ab PHP 5.6.0:
public $var3 = 1+2;
+ // Ungültige Deklarationen von Eigenschaften:
public $var4 = self::myStaticMethod();
public $var5 = $myVar;
@@ -90,7 +93,7 @@
public $var6 = myConstant;
public $var7 = array(true, false);
- // Dies ist nur in PHP 5.3.0 oder später gültig.
+ // gültig ab PHP 5.3.0:
public $var8 = <<<'EOD'
Hallo Welt
EOD;
@@ -110,9 +113,8 @@
</note>
<para>
- Im Gegensatz zur
- <link linkend="language.types.string.syntax.heredoc">Heredoc-Syntax</link>
- kann die
+ Von PHP 5.3.0 an kann die
+ <link linkend="language.types.string.syntax.heredoc">Heredoc-Syntax</link> und die
<link linkend="language.types.string.syntax.nowdoc">Nowdoc-Syntax</link>
in jedem Kontext für statische Daten verwendet werden, einschließlich
der Deklaration von Eigenschaften.
@@ -126,6 +128,9 @@
public $bar = <<<'EOT'
bar
EOT;
+ public $baz = <<<EOT
+baz
+EOT;
}
?>
]]>
@@ -134,7 +139,7 @@
</para>
<note>
<para>
- Unterstützung für Nowdoc wurde in PHP 5.3.0 hinzugefügt.
+ Unterstützung für Nowdoc und Heredoc wurde in PHP 5.3.0 hinzugefügt.
</para>
</note>
</sect1>