cvs: phpdoc /de/language references.xml
| From: | Sebastian Bergmann | Date: | Wed, 20 Dec 2000 07:31:34 +0000 |
| Subject: | cvs: phpdoc /de/language references.xml | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969333335@lists.php.net to get a copy of this message | ||
sbergmann Tue Dec 19 23:31:34 2000 EDT
Modified files:
/phpdoc/de/language references.xml
Log:
Worked a little more on the translation of references.xml.
Index: phpdoc/de/language/references.xml
diff -u phpdoc/de/language/references.xml:1.5 phpdoc/de/language/references.xml:1.6
--- phpdoc/de/language/references.xml:1.5 Sun Nov 12 22:32:35 2000
+++ phpdoc/de/language/references.xml Tue Dec 19 23:31:34 2000
@@ -84,15 +84,16 @@
</informalexample>
</para>
<simpara>
- What will happen that <varname>$var</varname> in foo will be bound
- with <varname>$bar</varname> in caller, but then it will be
- re-bound with <varname>$GLOBALS["baz"]</varname>. There's no way
- to bind <varname>$bar</varname> in the caller to something else
- using reference mechanism, since <varname>$bar</varname> is not
- available in the function foo (it is represented by
- <varname>$var</varname>, but <varname>$var</varname> has only
- variable contents and not name-to-value binding in the calling
- symbol table).
+ Folgendes wird passieren: <varname>$var</varname> in foo wird zunächst
+ an <varname>$bar</varname> aus der aufrufenden Instanz, dann
+ aber an <varname>$GLOBALS["baz"]</varname>, gebunden.
+ Es gibt keine Möglichkeit, <varname>$bar</varname> aus der aufrufenden
+ Instanz mittels Referenz-Mechanismen an etwas anderes zu binden, da
+ <varname>$bar</varname> in der Funktion foo nicht zur Verfügung steht
+ (<varname>$bar</varname> wird durch <varname>$var</varname>
repräsentiert;
+ <varname>$var</varname> verfügt nur über Variableninhalt, besitzt
+ aber keinen name-to-value Eintrag in der Symboltabelle der aufrufenden
+ Instanz).
</simpara>
</sect1>
@@ -152,19 +153,17 @@
<sect1 id="language.references.spot">
<title>Referenzen entdecken</title>
<simpara>
- Many syntax constructs in PHP are implemented via referencing
- mechanisms, so everything told above about reference binding also
- apply to these constructs. Some constructs, like passing and
- returning by-reference, are mentioned above. Other constructs that
- use references are:
+ Viele Sprachelemente von PHP sind intern mit der Benutzung von Referenzen
+ implementiert, daher gilt alles bisher gesagte auch für diese
+ Konstrukte:
</simpara>
<sect2 id="references.global">
<title><literal>global</literal> References</title>
<para>
- When you declare variable as <command>global $var</command> you
- are in fact creating reference to a global variable. That means,
- this is the same as:
+ Die Verwendung von <command>global $var</command> erzeugt im aktuellen
+ Scope eine Referenz auf die globale Variable <varname>$var</varname>,
+ sie ist also äquivalent zu folgendem:
<informalexample>
<programlisting role="php">
$var =& $GLOBALS["var"];
@@ -172,16 +171,16 @@
</informalexample>
</para>
<simpara>
- That means, for example, that unsetting <varname>$var</varname>
- won't unset global variable.
+ Dies hat zur Folge, daß das Anwenden von unset() auf <varname>$var</varname>
+ keinen Einfluß auf die globale Variable hat.
</simpara>
</sect2>
<sect2 id="references.this">
<title><literal>$this</literal></title>
<simpara>
- In an object method, <varname>$this</varname> is always reference
- to the caller object.
+ In einer Objektmethode ist <varname>$this</varname> immer eine Referenz
+ auf die aufrufende Objektinstanz.
</simpara>
</sect2>
</sect1>