|
|
@@ -4,9 +4,25 @@
|
|
|
<title>Dir</title>
|
|
|
|
|
|
<para>
|
|
|
- Given a string containing a path to a file, this function will return the name of the directory.
|
|
|
+ Given a string containing a path to a file, this function will return the
|
|
|
+ name of the directory.
|
|
|
</para>
|
|
|
|
|
|
+ <sect3 id="zend.filter.set.dir.options">
|
|
|
+ <title>Supported options for Zend_Filter_Dir</title>
|
|
|
+
|
|
|
+ <para>
|
|
|
+ There are no additional options for <classname>Zend_Filter_Dir</classname>.
|
|
|
+ </para>
|
|
|
+ </sect3>
|
|
|
+
|
|
|
+ <sect3 id="zend.filter.set.dir.basic">
|
|
|
+ <title>Basic usage</title>
|
|
|
+
|
|
|
+ <para>
|
|
|
+ A basic example of usage is below:
|
|
|
+ </para>
|
|
|
+
|
|
|
<programlisting language="php"><![CDATA[
|
|
|
$filter = new Zend_Filter_Dir();
|
|
|
|
|
|
@@ -21,4 +37,6 @@ print $filter->filter('c:/Temp/x');
|
|
|
// returns "c:/Temp"
|
|
|
]]></programlisting>
|
|
|
|
|
|
+ </sect3>
|
|
|
+
|
|
|
</sect2>
|