cvs: phpdoc /en/reference/spl/splfileinfo getpathinfo.xml

From: Date: Sat, 15 Nov 2008 14:08:07 +0000
Subject: cvs: phpdoc /en/reference/spl/splfileinfo getpathinfo.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-2552@lists.php.net to get a copy of this message
saltybeagle Sat Nov 15 14:08:07 2008 UTC Modified files: /phpdoc/en/reference/spl/splfileinfo getpathinfo.xml Log: Document SplFileInfo::getPathInfo http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/spl/splfileinfo/getpathinfo.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/spl/splfileinfo/getpathinfo.xml diff -u phpdoc/en/reference/spl/splfileinfo/getpathinfo.xml:1.1 phpdoc/en/reference/spl/splfileinfo/getpathinfo.xml:1.2 --- phpdoc/en/reference/spl/splfileinfo/getpathinfo.xml:1.1 Fri Nov 14 18:38:21 2008 +++ phpdoc/en/reference/spl/splfileinfo/getpathinfo.xml Sat Nov 15 14:08:06 2008 @@ -1,20 +1,20 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry xml:id="splfileinfo.getpathinfo" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>SplFileInfo::getPathInfo</refname> - <refpurpose>The getPathInfo purpose</refpurpose> + <refpurpose>Get an SplFileInfo object for the path</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> - <modifier>public</modifier> <type>void</type><methodname>SplFileInfo::getPathInfo</methodname> + <modifier>public</modifier> <type>SplFileInfo</type><methodname>SplFileInfo::getPathInfo</methodname> <methodparam choice="opt"><type>string</type><parameter>class_name</parameter></methodparam> </methodsynopsis> <para> - The method description goes here. + Gets an <classname>SplFileInfo</classname> object for the parent of the current file. </para> </refsect1> @@ -26,7 +26,7 @@ <term><parameter>class_name</parameter></term> <listitem> <para> - Description... + Name of an <classname>SplFileInfo</classname> derived class to use. </para> </listitem> </varlistentry> @@ -38,7 +38,7 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> - Description... + Returns an <classname>SplFileInfo</classname> object for the parent path of the file. </para> </refsect1> @@ -50,14 +50,16 @@ <programlisting role="php"> <![CDATA[ <?php -/* ... */ +$info = new SplFileInfo('/usr/bin/php'); +$parent_info = $info->getPathInfo(); +var_dump($parent_info->getRealPath()); ?> ]]> </programlisting> &example.outputs.similar; <screen> <![CDATA[ -... +string(8) "/usr/bin" ]]> </screen> </example> @@ -68,7 +70,7 @@ &reftitle.seealso; <para> <simplelist> - <member><methodname>Classname::Method</methodname></member> + <member><methodname>SplFileInfo::setInfoClass</methodname></member> </simplelist> </para> </refsect1>

« previous php.doc.cvs (#2552) next »