소스 검색

ZF-8959 #comment added manual chapter/section with description and examples for Zend_Filter_BaseName.

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@22241 44c647ce-9c0f-0410-b52a-842ac1e357ba
wilmoore 15 년 전
부모
커밋
87f8acc37d
2개의 변경된 파일25개의 추가작업 그리고 10개의 파일을 삭제
  1. 24 0
      documentation/manual/en/module_specs/Zend_Filter-BaseName.xml
  2. 1 10
      documentation/manual/en/module_specs/Zend_Filter-Set.xml

+ 24 - 0
documentation/manual/en/module_specs/Zend_Filter-BaseName.xml

@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Reviewed: no -->
+<sect2 id="zend.filter.set.basename">
+    <title>BaseName</title>
+
+    <para>
+        Given a string containing a path to a file, this filter will return the base name of the file.
+    </para>
+
+    <programlisting language="php"><![CDATA[
+$filter = new Zend_Filter_BaseName();
+
+print $filter->filter('/vol/tmp/filename');
+// returns "filename"
+]]></programlisting>
+
+    <programlisting language="php"><![CDATA[
+$filter = new Zend_Filter_BaseName();
+
+print $filter->filter('/vol/tmp/filename.txt');
+// returns "filename.txt"
+]]></programlisting>
+
+</sect2>

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

@@ -9,16 +9,7 @@
 
     <xi:include href="Zend_Filter-Alnum.xml" />
     <xi:include href="Zend_Filter-Alpha.xml" />
-
-    <sect2 id="zend.filter.set.basename">
-        <title>BaseName</title>
-
-        <para>
-            Given a string containing a path to a file, this filter will return the base
-            name of the file
-        </para>
-    </sect2>
-
+    <xi:include href="Zend_Filter-BaseName.xml" />
     <xi:include href="Zend_Filter-Boolean.xml" />
     <xi:include href="Zend_Filter-Callback.xml" />
     <xi:include href="Zend_Filter-Compress.xml" />