Просмотр исходного кода

[MANUAL] German:

- sync up to 19073

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@19157 44c647ce-9c0f-0410-b52a-842ac1e357ba
thomas 16 лет назад
Родитель
Сommit
4db5cff3ba

+ 2 - 2
documentation/manual/de/module_specs/Zend_Application-AvailableResources-Layout.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!-- EN-Revision: 18621 -->
+<!-- EN-Revision: 19030 -->
 <!-- Reviewed: no -->
 <sect2 id="zend.application.available-resources.layout">
     <title>Zend_Application_Resource_Layout</title>
@@ -21,7 +21,7 @@
 
         <programlisting language="ini"><![CDATA[
 resources.layout.layout = "NameOfDefaultLayout"
-resources.layout.Path = "/path/to/layouts"
+resources.layout.layoutPath = "/path/to/layouts"
 ]]></programlisting>
     </example>
 </sect2>

+ 88 - 0
documentation/manual/de/module_specs/Zend_Validate-Ip.xml

@@ -0,0 +1,88 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- EN-Revision: 18986 -->
+<!-- Reviewed: no -->
+<sect2 id="zend.validate.set.ip">
+    <title>Ip</title>
+
+    <para>
+        <classname>Zend_Validate_Ip</classname> erlaubt es zu Prüfen ob ein gegebener Wert eine IP
+        Adresse ist. Er unterstützt den IPv4 und auch den IPv6 Standard.
+    </para>
+
+    <sect3 id="zend.validate.set.ip.basic">
+        <title>Grundsätzliche Verwendung</title>
+
+        <para>
+            Ein einfaches Beispiel für die Verwendung ist anbei:
+        </para>
+
+        <programlisting language="php"><![CDATA[
+$validator = new Zend_Validate_Ip();
+if ($validator->isValid($ip)) {
+    // IP scheint gültig zu sein
+} else {
+    // IP ist ungültig; Gründe ausgeben
+}
+]]></programlisting>
+
+        <note>
+            <title>Ungültige IP Adressen</title>
+
+            <para>
+                Es ist zu beachten das <classname>Zend_Validate_Ip</classname> nur IP Adressen
+                prüft. Adressen wie 'mydomain.com' oder '192.168.50.1/index.html' sind keine
+                gültigen IP Adressen. Sie sind entweder Hostnamen oder gültige
+                <acronym>URL</acronym>s, aber keine IP Adressen.
+            </para>
+        </note>
+
+        <note>
+            <title>IPv6 Prüfung</title>
+
+            <para>
+                <classname>Zend_Validate_Ip</classname> prüft IPv6 Adressen mit einer Regex. Der
+                Grund ist, dass die Filter und Methoden von PHP der RFC nicht folgen. Viele andere
+                vorhandene Klassen folgen Ihr auch nicht.
+            </para>
+        </note>
+    </sect3>
+
+    <sect3 id="zend.validate.set.ip.singletype">
+        <title>IPv4 oder IPv6 alleine prüfen</title>
+
+        <para>
+            Manchmal ist es nützlich nur eines der unterstützten Formate zu prüfen. Zum Beispiel
+            wenn das eigene Netzwert nur IPv4 unterstützt. In diesem Fall wäre es sinnlos IPv6
+            in der Prüfung zu erlauben.
+        </para>
+
+        <para>
+            Um <classname>Zend_Validate_Ip</classname> auf ein Protokoll zu begrenzen kann man die
+            Optionen <property>allowipv4</property> oder <property>allowipv6</property> auf
+            <constant>FALSE</constant> setzen. Man kann das durchführen indem die Option entweder im
+            Constructor angegeben wird, oder indem <methodname>setOptions()</methodname> im
+            Nachhinein verwendet wird.
+        </para>
+
+        <programlisting language="php"><![CDATA[
+$validator = new Zend_Validate_Ip(array('allowipv6' => false);
+if ($validator->isValid($ip)) {
+    // IP scheint eine gültige IPv4 Adresse zu sein
+} else {
+    // IP ist keine IPv4 Adresse
+}
+]]></programlisting>
+
+        <note>
+            <title>Standard Verhalten</title>
+
+            <para>
+                Das Standardverhalten dem <classname>Zend_Validate_Ip</classname> folgt, ist es
+                beide Standards zu erlauben.
+            </para>
+        </note>
+    </sect3>
+</sect2>
+<!--
+vim:se ts=4 sw=4 et:
+-->

+ 2 - 8
documentation/manual/de/module_specs/Zend_Validate-Set.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!-- EN-Revision: 18748 -->
+<!-- EN-Revision: 18986 -->
 <!-- Reviewed: no -->
 <sect1 id="zend.validate.set" xmlns:xi="http://www.w3.org/2001/XInclude">
 
@@ -199,13 +199,7 @@ if ($validator->isValid($iban)) {
         </para>
     </sect2>
 
-    <sect2 id="zend.validate.set.ip">
-        <title>Ip</title>
-        <para>
-            Gibt nur dann <constant>TRUE</constant> zurück wenn <varname>$value</varname> eine
-            gültige IP Adresse ist.
-        </para>
-    </sect2>
+    <xi:include href="Zend_Validate-Ip.xml" />
 
     <sect2 id="zend.validate.set.less_than">
         <title>LessThan</title>