cvs: phpdoc /en/reference/spl iterators.xml norewinditerator.xml recursivearrayiterator.xml recursiveregexiterator.xml
/en/reference/spl/norewinditerator rewind.xml /en/reference/spl/recursivearrayiterator getchildren.xml haschildren.xml
/en/reference/spl/recursiveregexiterator construct.xml getchildren.xml haschildren.xml /en/reference/spl/regexiterator construct.xml
| From: | Joris van de Sande | Date: | Sun, 05 Jul 2009 17:07:44 +0000 |
| Subject: | cvs: phpdoc /en/reference/spl iterators.xml norewinditerator.xml recursivearrayiterator.xml recursiveregexiterator.xml /en/reference/spl/norewinditerator rewind.xml /en/reference/spl/recursivearrayiterator getchildren.xml haschildren.xml /en/reference/spl/recursiveregexiterator construct.xml getchildren.xml haschildren.xml /en/reference/spl/regexiterator construct.xml |
||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-4337@lists.php.net to get a copy of this message | ||
joris Sun Jul 5 17:07:44 2009 UTC
Added files:
/phpdoc/en/reference/spl/recursiveregexiterator getchildren.xml
haschildren.xml
construct.xml
/phpdoc/en/reference/spl norewinditerator.xml
recursiveregexiterator.xml
/phpdoc/en/reference/spl/norewinditerator rewind.xml
Modified files:
/phpdoc/en/reference/spl recursivearrayiterator.xml iterators.xml
/phpdoc/en/reference/spl/regexiterator construct.xml
/phpdoc/en/reference/spl/recursivearrayiterator haschildren.xml
getchildren.xml
Log:
Added RecursiveRegexIterator class documentation. Added NoRewindIterator class documentation.
Added puplic modifier to RecursiveArrayIterator methods.
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/spl/recursivearrayiterator.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/spl/recursivearrayiterator.xml diff -u phpdoc/en/reference/spl/recursivearrayiterator.xml:1.1 phpdoc/en/reference/spl/recursivearrayiterator.xml:1.2 --- phpdoc/en/reference/spl/recursivearrayiterator.xml:1.1 Fri Jul 3 18:53:19 2009 +++ phpdoc/en/reference/spl/recursivearrayiterator.xml Sun Jul 5 17:07:43 2009 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <phpdoc:classref xmlns:phpdoc="http://php.net/ns/phpdoc" xml:id="class.recursivearrayiterator" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude"> <title>The RecursiveArrayIterator class</title> <titleabbrev>RecursiveArrayIterator</titleabbrev> @@ -36,14 +36,6 @@ </ooclass> <oointerface> - <interfacename>Traversable</interfacename> - </oointerface> - - <oointerface> - <interfacename>Iterator</interfacename> - </oointerface> - - <oointerface> <interfacename>RecursiveIterator</interfacename> </oointerface> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/spl/iterators.xml?r1=1.10&r2=1.11&diff_format=u Index: phpdoc/en/reference/spl/iterators.xml diff -u phpdoc/en/reference/spl/iterators.xml:1.10 phpdoc/en/reference/spl/iterators.xml:1.11 --- phpdoc/en/reference/spl/iterators.xml:1.10 Sat Jul 4 13:40:46 2009 +++ phpdoc/en/reference/spl/iterators.xml Sun Jul 5 17:07:43 2009 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 1.10 $ --> +<!-- $Revision: 1.11 $ --> <part xml:id="spl.iterators" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> @@ -13,9 +13,7 @@ <section xml:id="spl.iterators.list"> <title>Undocumented Iterators</title> <simplelist> - <member><classname>NoRewindIterator</classname></member> <member><classname>RecursiveFilterIterator</classname></member> - <member><classname>RecursiveRegexIterator</classname></member> <member><classname>RecursiveTreeIterator</classname></member> </simplelist> </section> @@ -23,9 +21,7 @@ </partintro> <!-- TODO: Not documented - &reference.spl.norewinditerator; &reference.spl.recursivefilteriterator; - &reference.spl.recursiveregexiterator; &reference.spl.recursivetreeiterator; --> @@ -41,11 +37,13 @@ &reference.spl.iteratoriterator; &reference.spl.limititerator; &reference.spl.multipleiterator; + &reference.spl.norewinditerator; &reference.spl.parentiterator; &reference.spl.recursivearrayiterator; &reference.spl.recursivecachingiterator; &reference.spl.recursivedirectoryiterator; &reference.spl.recursiveiteratoriterator; + &reference.spl.recursiveregexiterator; &reference.spl.regexiterator; &reference.spl.simplexmliterator; http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/spl/regexiterator/construct.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/spl/regexiterator/construct.xml diff -u phpdoc/en/reference/spl/regexiterator/construct.xml:1.1 phpdoc/en/reference/spl/regexiterator/construct.xml:1.2 --- phpdoc/en/reference/spl/regexiterator/construct.xml:1.1 Sat Jul 4 13:40:46 2009 +++ phpdoc/en/reference/spl/regexiterator/construct.xml Sun Jul 5 17:07:44 2009 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry xml:id="regexiterator.construct" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> @@ -49,7 +49,7 @@ <listitem> <para> Operation mode, see <methodname>RegexIterator::setMode</methodname> for a list - of mode. + of modes. </para> </listitem> </varlistentry> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/spl/recursivearrayiterator/haschildren.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc/en/reference/spl/recursivearrayiterator/haschildren.xml diff -u phpdoc/en/reference/spl/recursivearrayiterator/haschildren.xml:1.2 phpdoc/en/reference/spl/recursivearrayiterator/haschildren.xml:1.3 --- phpdoc/en/reference/spl/recursivearrayiterator/haschildren.xml:1.2 Sat Jul 4 10:52:14 2009 +++ phpdoc/en/reference/spl/recursivearrayiterator/haschildren.xml Sun Jul 5 17:07:44 2009 @@ -1,5 +1,5 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry xml:id="recursivearrayiterator.haschildren" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>RecursiveArrayIterator::hasChildren</refname> @@ -8,7 +8,7 @@ <refsect1 role="description"> &reftitle.description; <methodsynopsis> - <type>bool</type><methodname>RecursiveArrayIterator::hasChildren</methodname> + <modifier>public</modifier> <type>bool</type><methodname>RecursiveArrayIterator::hasChildren</methodname> <void/> </methodsynopsis> <para> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/spl/recursivearrayiterator/getchildren.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc/en/reference/spl/recursivearrayiterator/getchildren.xml diff -u phpdoc/en/reference/spl/recursivearrayiterator/getchildren.xml:1.2 phpdoc/en/reference/spl/recursivearrayiterator/getchildren.xml:1.3 --- phpdoc/en/reference/spl/recursivearrayiterator/getchildren.xml:1.2 Sat Jul 4 10:52:14 2009 +++ phpdoc/en/reference/spl/recursivearrayiterator/getchildren.xml Sun Jul 5 17:07:44 2009 @@ -1,5 +1,5 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry xml:id="recursivearrayiterator.getchildren" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>RecursiveArrayIterator::getChildren</refname> @@ -8,7 +8,7 @@ <refsect1 role="description"> &reftitle.description; <methodsynopsis> - <type>RecursiveArrayIterator</type><methodname>RecursiveArrayIterator::getChildren</methodname> + <modifier>public</modifier> <type>RecursiveArrayIterator</type><methodname>RecursiveArrayIterator::getChildren</methodname> <void/> </methodsynopsis> <para> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/spl/recursiveregexiterator/getchildren.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/spl/recursiveregexiterator/getchildren.xml +++ phpdoc/en/reference/spl/recursiveregexiterator/getchildren.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <refentry xml:id="recursiveregexiterator.getchildren" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>RecursiveRegexIterator::getChildren</refname> <refpurpose>Returns an iterator for the current entry.</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <modifier>public</modifier> <type>RecursiveRegexIterator</type><methodname>RecursiveRegexIterator::getChildren</methodname> <void/> </methodsynopsis> <para> Returns an iterator for the current iterator entry. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; &no.function.parameters; </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> An iterator for the current entry, if it can be iterated over by the inner iterator. </para> </refsect1> <refsect1 role="errors"> &reftitle.errors; <para> An <classname>InvalidArgumentException</classname> will be thrown if the current entry does not contain a value that can be iterated over by the inner iterator. </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title><function>RecursiveRegexIterator::getChildren</function> example</title> <programlisting role="php"> <![CDATA[ <?php $rArrayIterator = new RecursiveArrayIterator(array('test1', array('tet3', 'test4', 'test5'))); $rRegexIterator = new RecursiveRegexIterator($rArrayIterator, '/^test/', RecursiveRegexIterator::ALL_MATCHES); foreach ($rRegexIterator as $key1 => $value1) { if ($rRegexIterator->hasChildren()) { // print all children echo "Children: "; foreach ($rRegexIterator->getChildren() as $key => $value) { echo $value . " "; } echo "\n"; } else { echo "No children\n"; } } ?> ]]> </programlisting> &example.outputs; <screen> <![CDATA[ No children Children: test4 test5 ]]> </screen> </example> </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><function>RecursiveRegexIterator::hasChildren</function></member> </simplelist> </para> </refsect1> </refentry> <!-- 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 sgml-default-dtd-file:"../../../../manual.ced" 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 --> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/spl/recursiveregexiterator/haschildren.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/spl/recursiveregexiterator/haschildren.xml +++ phpdoc/en/reference/spl/recursiveregexiterator/haschildren.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <refentry xml:id="recursiveregexiterator.haschildren" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>RecursiveRegexIterator::hasChildren</refname> <refpurpose>Returns whether an iterator can be obtained for the current entry.</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <modifier>public</modifier> <type>bool</type><methodname>RecursiveRegexIterator::hasChildren</methodname> <void/> </methodsynopsis> <para> Returns whether an iterator can be obtained for the current entry. This iterator can be obtained via <methodname>RecursiveRegexIterator::getChildren</methodname>. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; &no.function.parameters; </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Returns &true; if an iterator can be obtained for the current entry, otherwise returns &false;. </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title><function>RecursiveRegexIterator::hasChildren</function> example</title> <programlisting role="php"> <![CDATA[ <?php $rArrayIterator = new RecursiveArrayIterator(array('test1', array('tet3', 'test4', 'test5'))); $rRegexIterator = new RecursiveRegexIterator($rArrayIterator, '/^test/', RecursiveRegexIterator::ALL_MATCHES); foreach ($rRegexIterator as $value) { var_dump($rRegexIterator->hasChildren()); } ?> ]]> </programlisting> &example.outputs; <screen> <![CDATA[ bool(false) bool(true) ]]> </screen> </example> </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><function>RecursiveRegexIterator::getChildren</function></member> </simplelist> </para> </refsect1> </refentry> <!-- 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 sgml-default-dtd-file:"../../../../manual.ced" 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 --> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/spl/recursiveregexiterator/construct.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/spl/recursiveregexiterator/construct.xml +++ phpdoc/en/reference/spl/recursiveregexiterator/construct.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <refentry xml:id="recursiveregexiterator.construct" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>RecursiveRegexIterator::__construct</refname> <refpurpose>Creates a new RecursiveRegexIterator.</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <constructorsynopsis> <modifier>public</modifier> <methodname>RecursiveRegexIterator::__construct</methodname> <methodparam><type>RecursiveIterator</type><parameter>iterator</parameter></methodparam> <methodparam><type>string</type><parameter>regex</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>mode</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>flags</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>preg_flags</parameter></methodparam> </constructorsynopsis> <para> Creates a new regular expression iterator. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>iterator</parameter></term> <listitem> <para> The recursive iterator to apply this regex filter to. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>regex</parameter></term> <listitem> <para> The regular expression to match. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>mode</parameter></term> <listitem> <para> Operation mode, see <methodname>RegexIterator::setMode</methodname> for a list of modes. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>flags</parameter></term> <listitem> <para> Special flags, see <methodname>RegexIterator::setFlags</methodname> for a list of available flags. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>preg_flags</parameter></term> <listitem> <para> The regular expression flags. These flags depend on the operation mode parameter: </para> <para> <table> <title><classname>RegexIterator</classname> preg_flags</title> <tgroup cols="2"> <thead> <row> <entry>operation mode</entry> <entry>available flags</entry> </row> </thead> <tbody> <row> <entry><varname linkend="regexiterator.constants.all-matches">RecursiveRegexIterator::ALL_MATCHES</varname></entry> <entry> See <function>preg_match_all</function>. </entry> </row> <row> <entry><varname linkend="regexiterator.constants.get-match">RecursiveRegexIterator::GET_MATCH</varname></entry> <entry> See <function>preg_match</function>. </entry> </row> <row> <entry><varname linkend="regexiterator.constants.match">RecursiveRegexIterator::MATCH</varname></entry> <entry> See <function>preg_match</function>. </entry> </row> <row> <entry><varname linkend="regexiterator.constants.replace">RecursiveRegexIterator::REPLACE</varname></entry> <entry> none. </entry> </row> <row> <entry><varname linkend="regexiterator.constants.split">RecursiveRegexIterator::SPLIT</varname></entry> <entry> See <function>preg_split</function>. </entry> </row> </tbody> </tgroup> </table> </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title><function>RecursiveRegexIterator::__construct</function> example</title> <para> Creates a new RegexIterator that filters all strings that start with 'test'. </para> <programlisting role="php"> <![CDATA[ <?php $rArrayIterator = new RecursiveArrayIterator(array('test1', array('tet3', 'test4', 'test5'))); $rRegexIterator = new RecursiveRegexIterator($rArrayIterator, '/^test/', RecursiveRegexIterator::ALL_MATCHES); foreach ($rRegexIterator as $key1 => $value1) { if ($rRegexIterator->hasChildren()) { // print all children echo "Children: "; foreach ($rRegexIterator->getChildren() as $key => $value) { echo $value . " "; } echo "\n"; } else { echo "No children\n"; } } ?> ]]> </programlisting> &example.outputs.similar; <screen> <![CDATA[ No children Children: test4 test5 ]]> </screen> </example> </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><function>preg_match</function></member> <member><function>preg_match_all</function></member> <member><function>preg_replace</function></member> <member><function>preg_split</function></member> </simplelist> </para> </refsect1> </refentry> <!-- 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 sgml-default-dtd-file:"../../../../manual.ced" 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 --> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/spl/norewinditerator.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/spl/norewinditerator.xml +++ phpdoc/en/reference/spl/norewinditerator.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <phpdoc:classref xmlns:phpdoc="http://php.net/ns/phpdoc" xml:id="class.norewinditerator" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude"> <title>The NoRewindIterator class</title> <titleabbrev>NoRewindIterator</titleabbrev> <partintro> <!-- {{{ NoRewindIterator intro --> <section xml:id="norewinditerator.intro"> &reftitle.intro; <para> This iterator cannot be rewinded. </para> </section> <!-- }}} --> <section xml:id="norewinditerator.synopsis"> &reftitle.classsynopsis; <!-- {{{ Synopsis --> <classsynopsis> <ooclass><classname>NoRewindIterator</classname></ooclass> <!-- {{{ Class synopsis --> <classsynopsisinfo> <ooclass> <classname>NoRewindIterator</classname> </ooclass> <ooclass> <modifier>extends</modifier> <classname>IteratorIterator</classname> </ooclass> </classsynopsisinfo> <!-- }}} --> <!-- {{{ If the property is documented below (xml:id=norewinditerator.props) use this <classsynopsisinfo role="comment">Properties</classsynopsisinfo> <fieldsynopsis> <modifier>public</modifier> <type>string</type> <varname linkend="norewinditerator.props.name">name</varname> </fieldsynopsis> }}} --> <classsynopsisinfo role="comment">Methods</classsynopsisinfo> <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.norewinditerator')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[1])" /> <classsynopsisinfo role="comment">Inherited methods</classsynopsisinfo> <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.iteratoriterator')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[1])" /> </classsynopsis> </section> <!-- {{{ NoRewindIterator properties <section xml:id="norewinditerator.props"> &reftitle.properties; <variablelist> <varlistentry xml:id="norewinditerator.props.name"> <term><varname>name</varname></term> <listitem> <para>Prop description</para> </listitem> </varlistentry> </variablelist> </section> }}} --> </partintro> &reference.spl.entities.norewinditerator; </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 sgml-default-dtd-file:"manual.ced" 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 --> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/spl/recursiveregexiterator.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/spl/recursiveregexiterator.xml +++ phpdoc/en/reference/spl/recursiveregexiterator.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <phpdoc:classref xmlns:phpdoc="http://php.net/ns/phpdoc" xml:id="class.recursiveregexiterator" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude"> <title>The RecursiveRegexIterator class</title> <titleabbrev>RecursiveRegexIterator</titleabbrev> <partintro> <!-- {{{ RecursiveRegexIterator intro --> <section xml:id="recursiveregexiterator.intro"> &reftitle.intro; <para> This recursive iterator can filter another recursive iterator via a regular expression. </para> </section> <!-- }}} --> <section xml:id="recursiveregexiterator.synopsis"> &reftitle.classsynopsis; <!-- {{{ Synopsis --> <classsynopsis> <ooclass><classname>RecursiveRegexIterator</classname></ooclass> <!-- {{{ Class synopsis --> <classsynopsisinfo> <ooclass> <classname>RecursiveRegexIterator</classname> </ooclass> <ooclass> <modifier>extends</modifier> <classname>RegexIterator</classname> </ooclass> <oointerface> <interfacename>RecursiveIterator</interfacename> </oointerface> </classsynopsisinfo> <!-- }}} --> <!-- {{{ If the property is documented below (xml:id=recursiveregexiterator.props) use this <classsynopsisinfo role="comment">Properties</classsynopsisinfo> <fieldsynopsis> <modifier>public</modifier> <type>string</type> <varname linkend="recursiveregexiterator.props.name">name</varname> </fieldsynopsis> }}} --> <classsynopsisinfo role="comment">Methods</classsynopsisinfo> <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.recursiveregexiterator')/db:refentry/db:refsect1[@role='description']/descendant::db:constructorsynopsis[1])" /> <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.recursiveregexiterator')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[1])" /> <classsynopsisinfo role="comment">Inherited methods</classsynopsisinfo> <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.recursiveiterator')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[1])" /> <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.regexiterator')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[1])" /> </classsynopsis> </section> <!-- {{{ RecursiveRegexIterator properties <section xml:id="recursiveregexiterator.props"> &reftitle.properties; <variablelist> <varlistentry xml:id="recursiveregexiterator.props.name"> <term><varname>name</varname></term> <listitem> <para>Prop description</para> </listitem> </varlistentry> </variablelist> </section> }}} --> </partintro> &reference.spl.entities.recursiveregexiterator; </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 sgml-default-dtd-file:"manual.ced" 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 --> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/spl/norewinditerator/rewind.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/spl/norewinditerator/rewind.xml +++ phpdoc/en/reference/spl/norewinditerator/rewind.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <refentry xml:id="norewinditerator.haschildren" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>NoRewindIterator::rewind</refname> <refpurpose>Prevents the rewind operation on the inner iterator.</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <modifier>public</modifier> <type>void</type><methodname>NoRewindIterator::rewind</methodname> <void/> </methodsynopsis> <para> Prevents the rewind operation on the inner iterator. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; &no.function.parameters; </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> &return.void; </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title><function>NoRewindIterator::rewind</function> example</title> <para> This example demonstrates that calling rewind on a NoRewindIterator object has no effect. </para> <programlisting role="php"> <![CDATA[ <?php $fruits = array("lemon", "orange", "apple", "pear"); $noRewindIterator = new NoRewindIterator(new ArrayIterator($fruits)); echo $noRewindIterator->current() . "\n"; $noRewindIterator->next(); // now rewind the iterator (nothing should happen) $noRewindIterator->rewind(); echo $noRewindIterator->current() . "\n"; ?> ]]> </programlisting> &example.outputs; <screen> <![CDATA[ lemon orange ]]> </screen> </example> </para> </refsect1> </refentry> <!-- 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 sgml-default-dtd-file:"../../../../manual.ced" 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 -->
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/spl/recursivearrayiterator.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/spl/recursivearrayiterator.xml diff -u phpdoc/en/reference/spl/recursivearrayiterator.xml:1.1 phpdoc/en/reference/spl/recursivearrayiterator.xml:1.2 --- phpdoc/en/reference/spl/recursivearrayiterator.xml:1.1 Fri Jul 3 18:53:19 2009 +++ phpdoc/en/reference/spl/recursivearrayiterator.xml Sun Jul 5 17:07:43 2009 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <phpdoc:classref xmlns:phpdoc="http://php.net/ns/phpdoc" xml:id="class.recursivearrayiterator" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude"> <title>The RecursiveArrayIterator class</title> <titleabbrev>RecursiveArrayIterator</titleabbrev> @@ -36,14 +36,6 @@ </ooclass> <oointerface> - <interfacename>Traversable</interfacename> - </oointerface> - - <oointerface> - <interfacename>Iterator</interfacename> - </oointerface> - - <oointerface> <interfacename>RecursiveIterator</interfacename> </oointerface> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/spl/iterators.xml?r1=1.10&r2=1.11&diff_format=u Index: phpdoc/en/reference/spl/iterators.xml diff -u phpdoc/en/reference/spl/iterators.xml:1.10 phpdoc/en/reference/spl/iterators.xml:1.11 --- phpdoc/en/reference/spl/iterators.xml:1.10 Sat Jul 4 13:40:46 2009 +++ phpdoc/en/reference/spl/iterators.xml Sun Jul 5 17:07:43 2009 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 1.10 $ --> +<!-- $Revision: 1.11 $ --> <part xml:id="spl.iterators" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> @@ -13,9 +13,7 @@ <section xml:id="spl.iterators.list"> <title>Undocumented Iterators</title> <simplelist> - <member><classname>NoRewindIterator</classname></member> <member><classname>RecursiveFilterIterator</classname></member> - <member><classname>RecursiveRegexIterator</classname></member> <member><classname>RecursiveTreeIterator</classname></member> </simplelist> </section> @@ -23,9 +21,7 @@ </partintro> <!-- TODO: Not documented - &reference.spl.norewinditerator; &reference.spl.recursivefilteriterator; - &reference.spl.recursiveregexiterator; &reference.spl.recursivetreeiterator; --> @@ -41,11 +37,13 @@ &reference.spl.iteratoriterator; &reference.spl.limititerator; &reference.spl.multipleiterator; + &reference.spl.norewinditerator; &reference.spl.parentiterator; &reference.spl.recursivearrayiterator; &reference.spl.recursivecachingiterator; &reference.spl.recursivedirectoryiterator; &reference.spl.recursiveiteratoriterator; + &reference.spl.recursiveregexiterator; &reference.spl.regexiterator; &reference.spl.simplexmliterator; http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/spl/regexiterator/construct.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/spl/regexiterator/construct.xml diff -u phpdoc/en/reference/spl/regexiterator/construct.xml:1.1 phpdoc/en/reference/spl/regexiterator/construct.xml:1.2 --- phpdoc/en/reference/spl/regexiterator/construct.xml:1.1 Sat Jul 4 13:40:46 2009 +++ phpdoc/en/reference/spl/regexiterator/construct.xml Sun Jul 5 17:07:44 2009 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry xml:id="regexiterator.construct" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> @@ -49,7 +49,7 @@ <listitem> <para> Operation mode, see <methodname>RegexIterator::setMode</methodname> for a list - of mode. + of modes. </para> </listitem> </varlistentry> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/spl/recursivearrayiterator/haschildren.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc/en/reference/spl/recursivearrayiterator/haschildren.xml diff -u phpdoc/en/reference/spl/recursivearrayiterator/haschildren.xml:1.2 phpdoc/en/reference/spl/recursivearrayiterator/haschildren.xml:1.3 --- phpdoc/en/reference/spl/recursivearrayiterator/haschildren.xml:1.2 Sat Jul 4 10:52:14 2009 +++ phpdoc/en/reference/spl/recursivearrayiterator/haschildren.xml Sun Jul 5 17:07:44 2009 @@ -1,5 +1,5 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry xml:id="recursivearrayiterator.haschildren" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>RecursiveArrayIterator::hasChildren</refname> @@ -8,7 +8,7 @@ <refsect1 role="description"> &reftitle.description; <methodsynopsis> - <type>bool</type><methodname>RecursiveArrayIterator::hasChildren</methodname> + <modifier>public</modifier> <type>bool</type><methodname>RecursiveArrayIterator::hasChildren</methodname> <void/> </methodsynopsis> <para> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/spl/recursivearrayiterator/getchildren.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc/en/reference/spl/recursivearrayiterator/getchildren.xml diff -u phpdoc/en/reference/spl/recursivearrayiterator/getchildren.xml:1.2 phpdoc/en/reference/spl/recursivearrayiterator/getchildren.xml:1.3 --- phpdoc/en/reference/spl/recursivearrayiterator/getchildren.xml:1.2 Sat Jul 4 10:52:14 2009 +++ phpdoc/en/reference/spl/recursivearrayiterator/getchildren.xml Sun Jul 5 17:07:44 2009 @@ -1,5 +1,5 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry xml:id="recursivearrayiterator.getchildren" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>RecursiveArrayIterator::getChildren</refname> @@ -8,7 +8,7 @@ <refsect1 role="description"> &reftitle.description; <methodsynopsis> - <type>RecursiveArrayIterator</type><methodname>RecursiveArrayIterator::getChildren</methodname> + <modifier>public</modifier> <type>RecursiveArrayIterator</type><methodname>RecursiveArrayIterator::getChildren</methodname> <void/> </methodsynopsis> <para> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/spl/recursiveregexiterator/getchildren.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/spl/recursiveregexiterator/getchildren.xml +++ phpdoc/en/reference/spl/recursiveregexiterator/getchildren.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <refentry xml:id="recursiveregexiterator.getchildren" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>RecursiveRegexIterator::getChildren</refname> <refpurpose>Returns an iterator for the current entry.</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <modifier>public</modifier> <type>RecursiveRegexIterator</type><methodname>RecursiveRegexIterator::getChildren</methodname> <void/> </methodsynopsis> <para> Returns an iterator for the current iterator entry. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; &no.function.parameters; </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> An iterator for the current entry, if it can be iterated over by the inner iterator. </para> </refsect1> <refsect1 role="errors"> &reftitle.errors; <para> An <classname>InvalidArgumentException</classname> will be thrown if the current entry does not contain a value that can be iterated over by the inner iterator. </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title><function>RecursiveRegexIterator::getChildren</function> example</title> <programlisting role="php"> <![CDATA[ <?php $rArrayIterator = new RecursiveArrayIterator(array('test1', array('tet3', 'test4', 'test5'))); $rRegexIterator = new RecursiveRegexIterator($rArrayIterator, '/^test/', RecursiveRegexIterator::ALL_MATCHES); foreach ($rRegexIterator as $key1 => $value1) { if ($rRegexIterator->hasChildren()) { // print all children echo "Children: "; foreach ($rRegexIterator->getChildren() as $key => $value) { echo $value . " "; } echo "\n"; } else { echo "No children\n"; } } ?> ]]> </programlisting> &example.outputs; <screen> <![CDATA[ No children Children: test4 test5 ]]> </screen> </example> </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><function>RecursiveRegexIterator::hasChildren</function></member> </simplelist> </para> </refsect1> </refentry> <!-- 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 sgml-default-dtd-file:"../../../../manual.ced" 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 --> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/spl/recursiveregexiterator/haschildren.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/spl/recursiveregexiterator/haschildren.xml +++ phpdoc/en/reference/spl/recursiveregexiterator/haschildren.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <refentry xml:id="recursiveregexiterator.haschildren" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>RecursiveRegexIterator::hasChildren</refname> <refpurpose>Returns whether an iterator can be obtained for the current entry.</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <modifier>public</modifier> <type>bool</type><methodname>RecursiveRegexIterator::hasChildren</methodname> <void/> </methodsynopsis> <para> Returns whether an iterator can be obtained for the current entry. This iterator can be obtained via <methodname>RecursiveRegexIterator::getChildren</methodname>. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; &no.function.parameters; </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Returns &true; if an iterator can be obtained for the current entry, otherwise returns &false;. </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title><function>RecursiveRegexIterator::hasChildren</function> example</title> <programlisting role="php"> <![CDATA[ <?php $rArrayIterator = new RecursiveArrayIterator(array('test1', array('tet3', 'test4', 'test5'))); $rRegexIterator = new RecursiveRegexIterator($rArrayIterator, '/^test/', RecursiveRegexIterator::ALL_MATCHES); foreach ($rRegexIterator as $value) { var_dump($rRegexIterator->hasChildren()); } ?> ]]> </programlisting> &example.outputs; <screen> <![CDATA[ bool(false) bool(true) ]]> </screen> </example> </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><function>RecursiveRegexIterator::getChildren</function></member> </simplelist> </para> </refsect1> </refentry> <!-- 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 sgml-default-dtd-file:"../../../../manual.ced" 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 --> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/spl/recursiveregexiterator/construct.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/spl/recursiveregexiterator/construct.xml +++ phpdoc/en/reference/spl/recursiveregexiterator/construct.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <refentry xml:id="recursiveregexiterator.construct" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>RecursiveRegexIterator::__construct</refname> <refpurpose>Creates a new RecursiveRegexIterator.</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <constructorsynopsis> <modifier>public</modifier> <methodname>RecursiveRegexIterator::__construct</methodname> <methodparam><type>RecursiveIterator</type><parameter>iterator</parameter></methodparam> <methodparam><type>string</type><parameter>regex</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>mode</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>flags</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>preg_flags</parameter></methodparam> </constructorsynopsis> <para> Creates a new regular expression iterator. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>iterator</parameter></term> <listitem> <para> The recursive iterator to apply this regex filter to. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>regex</parameter></term> <listitem> <para> The regular expression to match. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>mode</parameter></term> <listitem> <para> Operation mode, see <methodname>RegexIterator::setMode</methodname> for a list of modes. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>flags</parameter></term> <listitem> <para> Special flags, see <methodname>RegexIterator::setFlags</methodname> for a list of available flags. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>preg_flags</parameter></term> <listitem> <para> The regular expression flags. These flags depend on the operation mode parameter: </para> <para> <table> <title><classname>RegexIterator</classname> preg_flags</title> <tgroup cols="2"> <thead> <row> <entry>operation mode</entry> <entry>available flags</entry> </row> </thead> <tbody> <row> <entry><varname linkend="regexiterator.constants.all-matches">RecursiveRegexIterator::ALL_MATCHES</varname></entry> <entry> See <function>preg_match_all</function>. </entry> </row> <row> <entry><varname linkend="regexiterator.constants.get-match">RecursiveRegexIterator::GET_MATCH</varname></entry> <entry> See <function>preg_match</function>. </entry> </row> <row> <entry><varname linkend="regexiterator.constants.match">RecursiveRegexIterator::MATCH</varname></entry> <entry> See <function>preg_match</function>. </entry> </row> <row> <entry><varname linkend="regexiterator.constants.replace">RecursiveRegexIterator::REPLACE</varname></entry> <entry> none. </entry> </row> <row> <entry><varname linkend="regexiterator.constants.split">RecursiveRegexIterator::SPLIT</varname></entry> <entry> See <function>preg_split</function>. </entry> </row> </tbody> </tgroup> </table> </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title><function>RecursiveRegexIterator::__construct</function> example</title> <para> Creates a new RegexIterator that filters all strings that start with 'test'. </para> <programlisting role="php"> <![CDATA[ <?php $rArrayIterator = new RecursiveArrayIterator(array('test1', array('tet3', 'test4', 'test5'))); $rRegexIterator = new RecursiveRegexIterator($rArrayIterator, '/^test/', RecursiveRegexIterator::ALL_MATCHES); foreach ($rRegexIterator as $key1 => $value1) { if ($rRegexIterator->hasChildren()) { // print all children echo "Children: "; foreach ($rRegexIterator->getChildren() as $key => $value) { echo $value . " "; } echo "\n"; } else { echo "No children\n"; } } ?> ]]> </programlisting> &example.outputs.similar; <screen> <![CDATA[ No children Children: test4 test5 ]]> </screen> </example> </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><function>preg_match</function></member> <member><function>preg_match_all</function></member> <member><function>preg_replace</function></member> <member><function>preg_split</function></member> </simplelist> </para> </refsect1> </refentry> <!-- 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 sgml-default-dtd-file:"../../../../manual.ced" 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 --> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/spl/norewinditerator.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/spl/norewinditerator.xml +++ phpdoc/en/reference/spl/norewinditerator.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <phpdoc:classref xmlns:phpdoc="http://php.net/ns/phpdoc" xml:id="class.norewinditerator" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude"> <title>The NoRewindIterator class</title> <titleabbrev>NoRewindIterator</titleabbrev> <partintro> <!-- {{{ NoRewindIterator intro --> <section xml:id="norewinditerator.intro"> &reftitle.intro; <para> This iterator cannot be rewinded. </para> </section> <!-- }}} --> <section xml:id="norewinditerator.synopsis"> &reftitle.classsynopsis; <!-- {{{ Synopsis --> <classsynopsis> <ooclass><classname>NoRewindIterator</classname></ooclass> <!-- {{{ Class synopsis --> <classsynopsisinfo> <ooclass> <classname>NoRewindIterator</classname> </ooclass> <ooclass> <modifier>extends</modifier> <classname>IteratorIterator</classname> </ooclass> </classsynopsisinfo> <!-- }}} --> <!-- {{{ If the property is documented below (xml:id=norewinditerator.props) use this <classsynopsisinfo role="comment">Properties</classsynopsisinfo> <fieldsynopsis> <modifier>public</modifier> <type>string</type> <varname linkend="norewinditerator.props.name">name</varname> </fieldsynopsis> }}} --> <classsynopsisinfo role="comment">Methods</classsynopsisinfo> <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.norewinditerator')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[1])" /> <classsynopsisinfo role="comment">Inherited methods</classsynopsisinfo> <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.iteratoriterator')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[1])" /> </classsynopsis> </section> <!-- {{{ NoRewindIterator properties <section xml:id="norewinditerator.props"> &reftitle.properties; <variablelist> <varlistentry xml:id="norewinditerator.props.name"> <term><varname>name</varname></term> <listitem> <para>Prop description</para> </listitem> </varlistentry> </variablelist> </section> }}} --> </partintro> &reference.spl.entities.norewinditerator; </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 sgml-default-dtd-file:"manual.ced" 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 --> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/spl/recursiveregexiterator.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/spl/recursiveregexiterator.xml +++ phpdoc/en/reference/spl/recursiveregexiterator.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <phpdoc:classref xmlns:phpdoc="http://php.net/ns/phpdoc" xml:id="class.recursiveregexiterator" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude"> <title>The RecursiveRegexIterator class</title> <titleabbrev>RecursiveRegexIterator</titleabbrev> <partintro> <!-- {{{ RecursiveRegexIterator intro --> <section xml:id="recursiveregexiterator.intro"> &reftitle.intro; <para> This recursive iterator can filter another recursive iterator via a regular expression. </para> </section> <!-- }}} --> <section xml:id="recursiveregexiterator.synopsis"> &reftitle.classsynopsis; <!-- {{{ Synopsis --> <classsynopsis> <ooclass><classname>RecursiveRegexIterator</classname></ooclass> <!-- {{{ Class synopsis --> <classsynopsisinfo> <ooclass> <classname>RecursiveRegexIterator</classname> </ooclass> <ooclass> <modifier>extends</modifier> <classname>RegexIterator</classname> </ooclass> <oointerface> <interfacename>RecursiveIterator</interfacename> </oointerface> </classsynopsisinfo> <!-- }}} --> <!-- {{{ If the property is documented below (xml:id=recursiveregexiterator.props) use this <classsynopsisinfo role="comment">Properties</classsynopsisinfo> <fieldsynopsis> <modifier>public</modifier> <type>string</type> <varname linkend="recursiveregexiterator.props.name">name</varname> </fieldsynopsis> }}} --> <classsynopsisinfo role="comment">Methods</classsynopsisinfo> <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.recursiveregexiterator')/db:refentry/db:refsect1[@role='description']/descendant::db:constructorsynopsis[1])" /> <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.recursiveregexiterator')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[1])" /> <classsynopsisinfo role="comment">Inherited methods</classsynopsisinfo> <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.recursiveiterator')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[1])" /> <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.regexiterator')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[1])" /> </classsynopsis> </section> <!-- {{{ RecursiveRegexIterator properties <section xml:id="recursiveregexiterator.props"> &reftitle.properties; <variablelist> <varlistentry xml:id="recursiveregexiterator.props.name"> <term><varname>name</varname></term> <listitem> <para>Prop description</para> </listitem> </varlistentry> </variablelist> </section> }}} --> </partintro> &reference.spl.entities.recursiveregexiterator; </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 sgml-default-dtd-file:"manual.ced" 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 --> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/spl/norewinditerator/rewind.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/spl/norewinditerator/rewind.xml +++ phpdoc/en/reference/spl/norewinditerator/rewind.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <refentry xml:id="norewinditerator.haschildren" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>NoRewindIterator::rewind</refname> <refpurpose>Prevents the rewind operation on the inner iterator.</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <modifier>public</modifier> <type>void</type><methodname>NoRewindIterator::rewind</methodname> <void/> </methodsynopsis> <para> Prevents the rewind operation on the inner iterator. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; &no.function.parameters; </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> &return.void; </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title><function>NoRewindIterator::rewind</function> example</title> <para> This example demonstrates that calling rewind on a NoRewindIterator object has no effect. </para> <programlisting role="php"> <![CDATA[ <?php $fruits = array("lemon", "orange", "apple", "pear"); $noRewindIterator = new NoRewindIterator(new ArrayIterator($fruits)); echo $noRewindIterator->current() . "\n"; $noRewindIterator->next(); // now rewind the iterator (nothing should happen) $noRewindIterator->rewind(); echo $noRewindIterator->current() . "\n"; ?> ]]> </programlisting> &example.outputs; <screen> <![CDATA[ lemon orange ]]> </screen> </example> </para> </refsect1> </refentry> <!-- 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 sgml-default-dtd-file:"../../../../manual.ced" 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 -->