cvs: phpdoc-de /appendices phpdevel.xml
| From: | Sebastian-H. Picklum | Date: | Thu, 08 Aug 2002 20:05:17 +0000 |
| Subject: | cvs: phpdoc-de /appendices phpdevel.xml | ||
| Groups: | php.doc.de | ||
| Request: | Send a blank email to doc-de+get-42@lists.php.net to get a copy of this message | ||
spic Thu Aug 8 16:05:17 2002 EDT
Modified files:
/phpdoc-de/appendices phpdevel.xml
Log:
Start of translation...
First paragraphs now in DE
Index: phpdoc-de/appendices/phpdevel.xml
diff -u phpdoc-de/appendices/phpdevel.xml:1.8 phpdoc-de/appendices/phpdevel.xml:1.9
--- phpdoc-de/appendices/phpdevel.xml:1.8 Fri May 31 13:46:57 2002
+++ phpdoc-de/appendices/phpdevel.xml Thu Aug 8 16:05:17 2002
@@ -1,31 +1,32 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.8 $ -->
+<!-- $Revision: 1.9 $ -->
+<!-- EN-Revision: 0.1 Maintainer: spic Status: working -->
<appendix id="phpdevel">
<title>PHP development</title>
<simpara></simpara>
<sect1 id="phpdevel-addfunc">
- <title>Adding functions to PHP3</title>
+ <title>Funktionen zu PHP3 hinzufügen</title>
<sect2 id="phpdevel-addfunc-prototype">
- <title>Function Prototype</title>
+ <title>Funktions-Prototyp</title>
<para>
- All functions look like this:
+ Alle Funktionen sind folgendermaßen aufgebaut:
<programlisting>
-void php3_foo(INTERNAL_FUNCTION_PARAMETERS) {
+void php3_fkt(INTERNE_FUNKTIONS_PARAMETER) {
}
</programlisting>
- Even if your function doesn't take any arguments, this is how it is
- called.</para></sect2>
+ Selbst wenn Ihre Funktion keine Argumente übernimmt, wird sie so
+ aufgerufen</para></sect2>
<sect2 id="phpdevel-addfunc-args">
- <title>Function Arguments</title>
+ <title>Funktions-Argumente</title>
<para>
- Arguments are always of type pval. This type contains a union
- which has the actual type of the argument. So, if your function
- takes two arguments, you would do something like the following at
- the top of your function:</para>
+ Argumente haben immer den Typ pval. Dieser Typ enthält union-Element,
+ das den aktuellen Typ der Argumente speichert. Wenn Ihre Funktion
+ zwei Argumente übernimmt, wird am Anfang der Funktion etwas ähnlich
+ dem Folgenden stehen:</para>
<para>
<example>
@@ -37,19 +38,24 @@
}
</programlisting>
</example>
-
- NOTE: Arguments can be passed either by value or by reference. In
- both cases you will need to pass &(pval *) to getParameters. If
- you want to check if the n'th parameter was sent to you by
- reference or not, you can use the function,
- ParameterPassedByReference(ht,n). It will return either 1 or 0.</para>
-
+
+ <note>
+ <para>
+ Argumente können entweder über Wert oder Referenz übergeben
werden. In
+ beiden Fällen müssen Sie &(pval *) and getParameters
übergeben. Wenn
+ Sie überprüfen wollen, ob der n-te Parameter zu Ihnen als Referenz
+ geschickt wurde oder nicht, können Sie die Funktion
+ ParameterPassedByReference(ht,n) benutzen. Sie wird entweder 1 oder 0
zurückliefern.</para>
+ </para>
+ </note>
+
<simpara>
- When you change any of the passed parameters, whether they are
- sent by reference or by value, you can either start over with the
- parameter by calling pval_destructor on it, or if it's an ARRAY
- you want to add to, you can use functions similar to the ones in
- internal_functions.h which manipulate return_value as an ARRAY.</simpara>
+ When you change any of the passed parameters, whether they are
+ sent by reference or by value, you can either start over with
+ the parameter by calling pval_destructor on it, or if it's an
+ ARRAY you want to add to, you can use functions similar to the
+ ones in internal_functions.h which manipulate return_value as
+ an ARRAY</simpara>
<simpara>
Also if you change a parameter to IS_STRING make sure you first