svn: /phpdoc/en/trunk/reference/dir/ constants.xml functions/scandir.xml

From: Date: Thu, 30 Jun 2011 13:22:55 +0000
Subject: svn: /phpdoc/en/trunk/reference/dir/ constants.xml functions/scandir.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-8350@lists.php.net to get a copy of this message
vrana Thu, 30 Jun 2011 13:22:55 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=312682 Log: scandir constants Changed paths: U phpdoc/en/trunk/reference/dir/constants.xml U phpdoc/en/trunk/reference/dir/functions/scandir.xml Modified: phpdoc/en/trunk/reference/dir/constants.xml =================================================================== --- phpdoc/en/trunk/reference/dir/constants.xml 2011-06-30 13:22:31 UTC (rev 312681) +++ phpdoc/en/trunk/reference/dir/constants.xml 2011-06-30 13:22:55 UTC (rev 312682) @@ -22,16 +22,44 @@ </term> <listitem> <simpara> - + Available since PHP 4.3.0. </simpara> </listitem> </varlistentry> + <varlistentry> + <term> + <constant>SCANDIR_SORT_ASCENDING</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + Available since PHP 5.4.0. + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>SCANDIR_SORT_DESCENDING</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + Available since PHP 5.4.0. + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>SCANDIR_SORT_NONE</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + Available since PHP 5.4.0. + </simpara> + </listitem> + </varlistentry> </variablelist> - <note> - <simpara> - The <constant>PATH_SEPARATOR</constant> was introduced with PHP 4.3.0-RC2. - </simpara> - </note> </appendix> <!-- Keep this comment at the end of the file Modified: phpdoc/en/trunk/reference/dir/functions/scandir.xml =================================================================== --- phpdoc/en/trunk/reference/dir/functions/scandir.xml 2011-06-30 13:22:31 UTC (rev 312681) +++ phpdoc/en/trunk/reference/dir/functions/scandir.xml 2011-06-30 13:22:55 UTC (rev 312682) @@ -11,7 +11,7 @@ <methodsynopsis> <type>array</type><methodname>scandir</methodname> <methodparam><type>string</type><parameter>directory</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>sorting_order</parameter><initializer>0</initializer></methodparam> + <methodparam choice="opt"><type>int</type><parameter>sorting_order</parameter><initializer>SCANDIR_SORT_ASCENDING</initializer></methodparam> <methodparam choice="opt"><type>resource</type><parameter>context</parameter></methodparam> </methodsynopsis> <para> @@ -38,8 +38,10 @@ <listitem> <para> By default, the sorted order is alphabetical in ascending order. If - the optional <parameter>sorting_order</parameter> is set to non-zero, - then the sort order is alphabetical in descending order. + the optional <parameter>sorting_order</parameter> is set to + <constant>SCANDIR_SORT_DESCENDING</constant>, then the sort order is + alphabetical in descending order. If it is set to + <constant>SCANDIR_SORT_NONE</constant> then the result is unsorted. </para> </listitem> </varlistentry> @@ -67,6 +69,31 @@ </para> </refsect1> + <refsect1 role="changelog"> + &reftitle.changelog; + <para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>5.4.0</entry> + <entry> + <parameter>sorting_order</parameter> now accepts constants. Any + nonzero value caused descending order in previous versions. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> + <refsect1 role="examples"> &reftitle.examples; <para>

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