2009-03-23 23:45:34 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2009-07-11 08:59:47 +00:00
|
|
|
<!-- $Revision$ -->
|
2009-03-23 23:45:34 +00:00
|
|
|
<phpdoc:classref xml:id="class.filesystemiterator" xmlns:phpdoc="http://php.net/ns/phpdoc" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude">
|
|
|
|
|
|
|
|
<title>The FilesystemIterator class</title>
|
|
|
|
<titleabbrev>FilesystemIterator</titleabbrev>
|
|
|
|
|
|
|
|
<partintro>
|
|
|
|
|
|
|
|
<!-- {{{ FilesystemIterator intro -->
|
|
|
|
<section xml:id="filesystemiterator.intro">
|
|
|
|
&reftitle.intro;
|
|
|
|
<para>
|
|
|
|
The Filesystem iterator
|
|
|
|
</para>
|
|
|
|
</section>
|
|
|
|
<!-- }}} -->
|
|
|
|
|
|
|
|
<section xml:id="filesystemiterator.synopsis">
|
|
|
|
&reftitle.classsynopsis;
|
|
|
|
|
|
|
|
<!-- {{{ Synopsis -->
|
|
|
|
<classsynopsis>
|
2021-12-22 12:48:26 +00:00
|
|
|
<ooclass>
|
|
|
|
<classname>FilesystemIterator</classname>
|
|
|
|
</ooclass>
|
2009-03-23 23:45:34 +00:00
|
|
|
|
|
|
|
<classsynopsisinfo>
|
|
|
|
<ooclass>
|
|
|
|
<classname>FilesystemIterator</classname>
|
|
|
|
</ooclass>
|
2021-12-22 12:48:26 +00:00
|
|
|
|
2009-03-23 23:45:34 +00:00
|
|
|
<ooclass>
|
|
|
|
<modifier>extends</modifier>
|
|
|
|
<classname>DirectoryIterator</classname>
|
|
|
|
</ooclass>
|
|
|
|
</classsynopsisinfo>
|
2009-06-27 12:54:54 +00:00
|
|
|
|
2009-12-29 09:42:00 +00:00
|
|
|
<classsynopsisinfo role="comment">&Constants;</classsynopsisinfo>
|
2009-06-27 12:54:54 +00:00
|
|
|
<fieldsynopsis>
|
|
|
|
<modifier>const</modifier>
|
2020-11-02 15:39:04 +00:00
|
|
|
<type>int</type>
|
2009-06-27 12:54:54 +00:00
|
|
|
<varname linkend="filesystemiterator.constants.current-as-pathname">FilesystemIterator::CURRENT_AS_PATHNAME</varname>
|
|
|
|
<initializer>32</initializer>
|
|
|
|
</fieldsynopsis>
|
|
|
|
<fieldsynopsis>
|
|
|
|
<modifier>const</modifier>
|
2020-11-02 15:39:04 +00:00
|
|
|
<type>int</type>
|
2009-06-27 12:54:54 +00:00
|
|
|
<varname linkend="filesystemiterator.constants.current-as-fileinfo">FilesystemIterator::CURRENT_AS_FILEINFO</varname>
|
|
|
|
<initializer>0</initializer>
|
|
|
|
</fieldsynopsis>
|
|
|
|
<fieldsynopsis>
|
|
|
|
<modifier>const</modifier>
|
2020-11-02 15:39:04 +00:00
|
|
|
<type>int</type>
|
2009-06-27 12:54:54 +00:00
|
|
|
<varname linkend="filesystemiterator.constants.current-as-self">FilesystemIterator::CURRENT_AS_SELF</varname>
|
|
|
|
<initializer>16</initializer>
|
|
|
|
</fieldsynopsis>
|
|
|
|
<fieldsynopsis>
|
|
|
|
<modifier>const</modifier>
|
2020-11-02 15:39:04 +00:00
|
|
|
<type>int</type>
|
2009-06-27 12:54:54 +00:00
|
|
|
<varname linkend="filesystemiterator.constants.current-mode-mask">FilesystemIterator::CURRENT_MODE_MASK</varname>
|
|
|
|
<initializer>240</initializer>
|
|
|
|
</fieldsynopsis>
|
|
|
|
<fieldsynopsis>
|
|
|
|
<modifier>const</modifier>
|
2020-11-02 15:39:04 +00:00
|
|
|
<type>int</type>
|
2009-06-27 12:54:54 +00:00
|
|
|
<varname linkend="filesystemiterator.constants.key-as-pathname">FilesystemIterator::KEY_AS_PATHNAME</varname>
|
|
|
|
<initializer>0</initializer>
|
|
|
|
</fieldsynopsis>
|
|
|
|
<fieldsynopsis>
|
|
|
|
<modifier>const</modifier>
|
2020-11-02 15:39:04 +00:00
|
|
|
<type>int</type>
|
2009-06-27 12:54:54 +00:00
|
|
|
<varname linkend="filesystemiterator.constants.key-as-filename">FilesystemIterator::KEY_AS_FILENAME</varname>
|
|
|
|
<initializer>256</initializer>
|
|
|
|
</fieldsynopsis>
|
2010-09-21 21:51:27 +00:00
|
|
|
<fieldsynopsis>
|
|
|
|
<modifier>const</modifier>
|
2020-11-02 15:39:04 +00:00
|
|
|
<type>int</type>
|
2010-09-21 21:51:27 +00:00
|
|
|
<varname linkend="filesystemiterator.constants.follow-symlinks">FilesystemIterator::FOLLOW_SYMLINKS</varname>
|
|
|
|
<initializer>512</initializer>
|
|
|
|
</fieldsynopsis>
|
2009-06-27 12:54:54 +00:00
|
|
|
<fieldsynopsis>
|
|
|
|
<modifier>const</modifier>
|
2020-11-02 15:39:04 +00:00
|
|
|
<type>int</type>
|
2009-06-27 12:54:54 +00:00
|
|
|
<varname linkend="filesystemiterator.constants.key-mode-mask">FilesystemIterator::KEY_MODE_MASK</varname>
|
|
|
|
<initializer>3840</initializer>
|
|
|
|
</fieldsynopsis>
|
|
|
|
<fieldsynopsis>
|
|
|
|
<modifier>const</modifier>
|
2020-11-02 15:39:04 +00:00
|
|
|
<type>int</type>
|
2009-06-27 12:54:54 +00:00
|
|
|
<varname linkend="filesystemiterator.constants.new-current-and-key">FilesystemIterator::NEW_CURRENT_AND_KEY</varname>
|
|
|
|
<initializer>256</initializer>
|
|
|
|
</fieldsynopsis>
|
|
|
|
<fieldsynopsis>
|
|
|
|
<modifier>const</modifier>
|
2020-11-02 15:39:04 +00:00
|
|
|
<type>int</type>
|
2009-06-27 12:54:54 +00:00
|
|
|
<varname linkend="filesystemiterator.constants.skip-dots">FilesystemIterator::SKIP_DOTS</varname>
|
|
|
|
<initializer>4096</initializer>
|
|
|
|
</fieldsynopsis>
|
|
|
|
<fieldsynopsis>
|
|
|
|
<modifier>const</modifier>
|
2020-11-02 15:39:04 +00:00
|
|
|
<type>int</type>
|
2009-06-27 12:54:54 +00:00
|
|
|
<varname linkend="filesystemiterator.constants.unix-paths">FilesystemIterator::UNIX_PATHS</varname>
|
|
|
|
<initializer>8192</initializer>
|
|
|
|
</fieldsynopsis>
|
2009-03-23 23:45:34 +00:00
|
|
|
|
2009-12-29 09:42:00 +00:00
|
|
|
<classsynopsisinfo role="comment">&Methods;</classsynopsisinfo>
|
2021-12-22 12:48:26 +00:00
|
|
|
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.filesystemiterator')/db:refentry/db:refsect1[@role='description']/descendant::db:constructorsynopsis[not(@role='procedural')])">
|
|
|
|
<xi:fallback/>
|
|
|
|
</xi:include>
|
|
|
|
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.filesystemiterator')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[not(@role='procedural')])">
|
|
|
|
<xi:fallback/>
|
2021-08-11 21:44:41 +00:00
|
|
|
</xi:include>
|
|
|
|
|
2009-12-29 09:42:00 +00:00
|
|
|
<classsynopsisinfo role="comment">&InheritedMethods;</classsynopsisinfo>
|
2021-12-22 12:48:26 +00:00
|
|
|
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.directoryiterator')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[not(@role='procedural')])">
|
|
|
|
<xi:fallback/>
|
|
|
|
</xi:include>
|
|
|
|
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.splfileinfo')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[not(@role='procedural')])">
|
|
|
|
<xi:fallback/>
|
|
|
|
</xi:include>
|
2009-03-23 23:45:34 +00:00
|
|
|
</classsynopsis>
|
|
|
|
<!-- }}} -->
|
|
|
|
|
|
|
|
</section>
|
2009-06-27 12:54:54 +00:00
|
|
|
|
|
|
|
<!-- {{{ FilesystemIterator constants -->
|
|
|
|
<section xml:id="filesystemiterator.constants">
|
|
|
|
&reftitle.constants;
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry xml:id="filesystemiterator.constants.current-as-pathname">
|
|
|
|
<term><constant>FilesystemIterator::CURRENT_AS_PATHNAME</constant></term>
|
|
|
|
<listitem>
|
|
|
|
<para>Makes <methodname>FilesystemIterator::current</methodname> return the pathname.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="filesystemiterator.constants.current-as-fileinfo">
|
|
|
|
<term><constant>FilesystemIterator::CURRENT_AS_FILEINFO</constant></term>
|
|
|
|
<listitem>
|
|
|
|
<para>Makes <methodname>FilesystemIterator::current</methodname> return an <classname>SplFileInfo</classname> instance.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="filesystemiterator.constants.current-as-self">
|
|
|
|
<term><constant>FilesystemIterator::CURRENT_AS_SELF</constant></term>
|
|
|
|
<listitem>
|
|
|
|
<para>Makes <methodname>FilesystemIterator::current</methodname> return $this (the FilesystemIterator).</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="filesystemiterator.constants.current-mode-mask">
|
|
|
|
<term><constant>FilesystemIterator::CURRENT_MODE_MASK</constant></term>
|
|
|
|
<listitem>
|
|
|
|
<para>Masks <methodname>FilesystemIterator::current</methodname></para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="filesystemiterator.constants.key-as-pathname">
|
|
|
|
<term><constant>FilesystemIterator::KEY_AS_PATHNAME</constant></term>
|
|
|
|
<listitem>
|
|
|
|
<para>Makes <methodname>FilesystemIterator::key</methodname> return the pathname.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="filesystemiterator.constants.key-as-filename">
|
|
|
|
<term><constant>FilesystemIterator::KEY_AS_FILENAME</constant></term>
|
|
|
|
<listitem>
|
|
|
|
<para>Makes <methodname>FilesystemIterator::key</methodname> return the filename.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2010-09-21 21:51:27 +00:00
|
|
|
<varlistentry xml:id="filesystemiterator.constants.follow-symlinks">
|
|
|
|
<term><constant>FilesystemIterator::FOLLOW_SYMLINKS</constant></term>
|
|
|
|
<listitem>
|
|
|
|
<para>Makes <methodname>RecursiveDirectoryIterator::hasChildren</methodname> follow symlinks.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2009-06-27 12:54:54 +00:00
|
|
|
<varlistentry xml:id="filesystemiterator.constants.key-mode-mask">
|
|
|
|
<term><constant>FilesystemIterator::KEY_MODE_MASK</constant></term>
|
|
|
|
<listitem>
|
|
|
|
<para>Masks <methodname>FilesystemIterator::key</methodname></para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="filesystemiterator.constants.new-current-and-key">
|
|
|
|
<term><constant>FilesystemIterator::NEW_CURRENT_AND_KEY</constant></term>
|
|
|
|
<listitem>
|
|
|
|
<para>Same as <literal>FilesystemIterator::KEY_AS_FILENAME | FilesystemIterator::CURRENT_AS_FILEINFO</literal>.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="filesystemiterator.constants.skip-dots">
|
|
|
|
<term><constant>FilesystemIterator::SKIP_DOTS</constant></term>
|
|
|
|
<listitem>
|
|
|
|
<para>Skips dot files (<literal>.</literal> and <literal>..</literal>).</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="filesystemiterator.constants.unix-paths">
|
|
|
|
<term><constant>FilesystemIterator::UNIX_PATHS</constant></term>
|
|
|
|
<listitem>
|
2016-07-13 17:19:57 +00:00
|
|
|
<para>
|
|
|
|
Makes paths use Unix-style forward slash irrespective of system default.
|
|
|
|
Note that the <parameter>path</parameter> that is passed to the
|
|
|
|
constructor is not modified.
|
|
|
|
</para>
|
2009-06-27 12:54:54 +00:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</section>
|
|
|
|
<!-- }}} -->
|
2009-03-23 23:45:34 +00:00
|
|
|
|
|
|
|
</partintro>
|
|
|
|
|
|
|
|
&reference.spl.entities.filesystemiterator;
|
|
|
|
|
|
|
|
</phpdoc:classref>
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
|
|
Local variables:
|
|
|
|
mode: sgml
|
|
|
|
sgml-omittag:t
|
|
|
|
sgml-shorttag:t
|
|
|
|
sgml-minimize-attributes:nil
|
|
|
|
sgml-always-quote-attributes:t
|
|
|
|
sgml-indent-step:1
|
|
|
|
sgml-indent-data:t
|
|
|
|
indent-tabs-mode:nil
|
|
|
|
sgml-parent-document:nil
|
2009-09-25 07:04:39 +00:00
|
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
2009-03-23 23:45:34 +00:00
|
|
|
sgml-exposed-tags:nil
|
|
|
|
sgml-local-catalogs:nil
|
|
|
|
sgml-local-ecat-files:nil
|
|
|
|
End:
|
|
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
|
|
vim: et tw=78 syn=sgml
|
|
|
|
vi: ts=1 sw=1
|
|
|
|
-->
|