Selaa lähdekoodia

ZF-8963 modificaions to chapter for Zend_Filter_Int per documentation spec. Documentation test is passing.

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@22253 44c647ce-9c0f-0410-b52a-842ac1e357ba
wilmoore 15 vuotta sitten
vanhempi
commit
e69e41a676

+ 36 - 0
documentation/manual/en/module_specs/Zend_Filter-Int.xml

@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Reviewed: no -->
+<sect2 id="zend.filter.set.int">
+    <title>Int</title>
+
+    <para>
+        <classname>Zend_Filter_Int</classname> allows you to transform a sclar value which contains
+        into an integer.
+    </para>
+
+    <sect3 id="zend.filter.set.int.options">
+        <title>Supported options for Zend_Filter_Int</title>
+
+        <para>
+            There are no additional options for <classname>Zend_Filter_Int</classname>.
+        </para>
+    </sect3>
+
+    <sect3 id="zend.filter.set.int.basic">
+        <title>Basic usage</title>
+
+        <para>
+            A basic example of usage is below:
+        </para>
+
+        <programlisting language="php"><![CDATA[
+$filter = new Zend_Filter_Int();
+
+print $filter->filter('-4 is less than 0');
+]]></programlisting>
+
+        <para>
+            This will return '-4'.
+        </para>
+    </sect3>
+</sect2>

+ 1 - 9
documentation/manual/en/module_specs/Zend_Filter-Set.xml

@@ -18,15 +18,7 @@
     <xi:include href="Zend_Filter-Dir.xml" />
     <xi:include href="Zend_Filter-Encryption.xml" />
     <xi:include href="Zend_Filter-HtmlEntities.xml" />
-
-    <sect2 id="zend.filter.set.int">
-        <title>Int</title>
-
-        <para>
-            Returns (int) <varname>$value</varname>
-        </para>
-    </sect2>
-
+    <xi:include href="Zend_Filter-Int.xml" />
     <xi:include href="Zend_Filter-LocalizedToNormalized.xml" />
     <xi:include href="Zend_Filter-NormalizedToLocalized.xml" />
     <xi:include href="Zend_Filter-Null.xml" />