Skip to content

Commit

Permalink
Partial sync SPL with EN
Browse files Browse the repository at this point in the history
Some XInclude failures for now but will resolve soon
  • Loading branch information
Girgias committed Feb 8, 2024
1 parent a16f188 commit c5e75fb
Show file tree
Hide file tree
Showing 72 changed files with 766 additions and 874 deletions.
70 changes: 30 additions & 40 deletions reference/spl/lengthexception.xml
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 38e65393c58b006a923c5bb7878aee5c73e21b20 Maintainer: yago Status: ready -->
<!-- EN-Revision: 14767af0f05dffa6fdb9b49e1a1f4e9ca7022a60 Maintainer: yago Status: ready -->
<!-- Reviewed: no -->

<phpdoc:exceptionref xml:id="class.lengthexception"
xmlns:phpdoc="http://php.net/ns/phpdoc"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns="http://docbook.org/ns/docbook">
<phpdoc:exceptionref xml:id="class.lengthexception" 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>La clase LengthException</title>
<titleabbrev>LengthException</titleabbrev>

<partintro>

<!-- {{{ LengthException intro -->
<section xml:id="lengthexception.intro">
&reftitle.intro;
Expand All @@ -21,49 +15,45 @@ xmlns="http://docbook.org/ns/docbook">
</para>
</section>
<!-- }}} -->

<section xml:id="lengthexception.synopsis">
&reftitle.classsynopsis;

<!-- {{{ Synopsis -->
<classsynopsis>
<ooclass><classname>LengthException</classname></ooclass>

<!-- {{{ Exception synopsis -->
<classsynopsisinfo>
<ooclass>
<classname>LengthException</classname>
</ooclass>

<ooclass>
<modifier>extends</modifier>
<classname>LogicException</classname>
</ooclass>
</classsynopsisinfo>
<!-- }}} -->

<classsynopsis class="class">
<ooexception>
<exceptionname>LengthException</exceptionname>
</ooexception>

<ooclass>
<modifier>extends</modifier>
<classname>LogicException</classname>
</ooclass>

<classsynopsisinfo role="comment">&InheritedProperties;</classsynopsisinfo>
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('exception.synopsis')/descendant::db:fieldsynopsis)" />

<!-- Comment this section out if the exception does not contain any methods --><!--
<classsynopsisinfo role="comment">&Methods;</classsynopsisinfo>
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.lengthexception')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[1])" />
-->
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.exception')/db:partintro/db:section/db:classsynopsis/db:fieldsynopsis[preceding-sibling::db:classsynopsisinfo[1][@role='comment' and text()='&Properties;']]))">
<xi:fallback/>
</xi:include>

<classsynopsisinfo role="comment">&InheritedMethods;</classsynopsisinfo>
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.exception')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[1])" />
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.exception')/db:refentry/db:refsect1[@role='description']/descendant::db:constructorsynopsis[@role='Exception'])">
<xi:fallback/>
</xi:include>
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.exception')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[@role='Exception'])">
<xi:fallback/>
</xi:include>
</classsynopsis>
<!-- }}} -->

</section>

</partintro>

<!-- If the exception has any methods you'd like to document use this
&reference.extname.entities.classname;
-->

</phpdoc:exceptionref>

</phpdoc:exceptionref>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Expand Down
102 changes: 50 additions & 52 deletions reference/spl/recursiveregexiterator.xml
Original file line number Diff line number Diff line change
@@ -1,92 +1,91 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 437bbf134e015c678f9d4b8a5b8da53429a9a12d Maintainer: andresdzphp Status: ready -->
<!-- EN-Revision: 14767af0f05dffa6fdb9b49e1a1f4e9ca7022a60 Maintainer: andresdzphp Status: ready -->
<!-- Reviewed: no -->
<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">
<phpdoc:classref xml:id="class.recursiveregexiterator" 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>La clase RecursiveRegexIterator</title>
<titleabbrev>RecursiveRegexIterator</titleabbrev>

<partintro>

<!-- {{{ RecursiveRegexIterator intro -->
<!-- {{{ RecursiveRegexIterator intro -->
<section xml:id="recursiveregexiterator.intro">
&reftitle.intro;
<para>
Este iterador recursivo puede filtrar otro iterador recursivo mediante una expresión regular.
</para>
</section>
<!-- }}} -->
<!-- }}} -->

<section xml:id="recursiveregexiterator.synopsis">
&reftitle.classsynopsis;

<!-- {{{ Synopsis -->
<classsynopsis>
<ooclass><classname>RecursiveRegexIterator</classname></ooclass>
<!-- {{{ Synopsis -->
<classsynopsis class="class">
<ooclass>
<classname>RecursiveRegexIterator</classname>
</ooclass>

<!-- {{{ Class synopsis -->
<classsynopsisinfo>
<ooclass>
<classname>RecursiveRegexIterator</classname>
</ooclass>
<ooclass>
<modifier>extends</modifier>
<classname>RegexIterator</classname>
</ooclass>

<ooclass>
<modifier>extends</modifier>
<classname>RegexIterator</classname>
</ooclass>

<oointerface>
<interfacename>RecursiveIterator</interfacename>
</oointerface>

</classsynopsisinfo>
<!-- }}} -->
<oointerface>
<modifier>implements</modifier>
<interfacename>RecursiveIterator</interfacename>
</oointerface>

<classsynopsisinfo role="comment">&InheritedConstants;</classsynopsisinfo>
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.regexiterator')/db:partintro/db:section/db:classsynopsis/db:fieldsynopsis[preceding-sibling::db:classsynopsisinfo[1][@role='comment' and text()='&Constants;']]))">
<xi:fallback />
<xi:fallback/>
</xi:include>

<!-- {{{ 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">&InheritedProperties;</classsynopsisinfo>
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.regexiterator')/db:partintro/db:section/db:classsynopsis/db:fieldsynopsis[preceding-sibling::db:classsynopsisinfo[1][@role='comment' and text()='&Properties;']]))">
<xi:fallback/>
</xi:include>

<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])" />
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.recursiveregexiterator')/db:refentry/db:refsect1[@role='description']/descendant::db:constructorsynopsis[@role='RecursiveRegexIterator'])">
<xi:fallback/>
</xi:include>
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.recursiveregexiterator')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[@role='RecursiveRegexIterator'])">
<xi:fallback/>
</xi:include>

<classsynopsisinfo role="comment">&InheritedMethods;</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])" />
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.regexiterator')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[@role='RegexIterator'])">
<xi:fallback/>
</xi:include>
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.filteriterator')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[@role='FilterIterator'])">
<xi:fallback/>
</xi:include>
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.iteratoriterator')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[@role='IteratorIterator'])">
<xi:fallback/>
</xi:include>
</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>
}}} -->
<!-- {{{ 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
Expand All @@ -107,4 +106,3 @@ vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->

22 changes: 9 additions & 13 deletions reference/spl/recursiveregexiterator/construct.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: dd07341fae2c414adc1f700be0890ff32e8daab4 Maintainer: andresdzphp Status: ready -->
<!-- EN-Revision: d51166ca16fda8e766849505b84f9306ef443f71 Maintainer: andresdzphp Status: ready -->
<!-- Reviewed: no Maintainer: andresdzphp -->

<refentry xml:id="recursiveregexiterator.construct" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>RecursiveRegexIterator::__construct</refname>
Expand All @@ -11,13 +9,13 @@

<refsect1 role="description">
&reftitle.description;
<constructorsynopsis>
<constructorsynopsis role="RecursiveRegexIterator">
<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><initializer>self::MATCH</initializer></methodparam>
<methodparam><type>string</type><parameter>pattern</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>mode</parameter><initializer>RecursiveRegexIterator::MATCH</initializer></methodparam>
<methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer>0</initializer></methodparam>
<methodparam choice="opt"><type>int</type><parameter>preg_flags</parameter><initializer>0</initializer></methodparam>
<methodparam choice="opt"><type>int</type><parameter>pregFlags</parameter><initializer>0</initializer></methodparam>
</constructorsynopsis>

<para>
Expand All @@ -39,7 +37,7 @@
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>regex</parameter></term>
<term><parameter>pattern</parameter></term>
<listitem>
<para>
La expresión regular a coincidir.
Expand All @@ -50,7 +48,7 @@
<term><parameter>mode</parameter></term>
<listitem>
<para>
Modo de operación, véase <methodname>RegexIterator::setMode</methodname> para una
Modo de operación, véase <methodname>RegexIterator::setMode</methodname> para una
lista de todos los modos.
</para>
</listitem>
Expand All @@ -59,13 +57,13 @@
<term><parameter>flags</parameter></term>
<listitem>
<para>
Flags especiales, véase <methodname>RegexIterator::setFlags</methodname> para una lista
Flags especiales, véase <methodname>RegexIterator::setFlags</methodname> para una lista
de todas las flags disponibles.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>preg_flags</parameter></term>
<term><parameter>pregFlags</parameter></term>
<listitem>
<para>
Las flags de expresión regular. De estas flags depende el parámetro de modo de funcionamiento.
Expand Down Expand Up @@ -178,7 +176,6 @@ Hijos: test4 test5
</refsect1>

</refentry>

<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Expand All @@ -199,4 +196,3 @@ vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->

10 changes: 4 additions & 6 deletions reference/spl/recursiveregexiterator/getchildren.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: dd07341fae2c414adc1f700be0890ff32e8daab4 Maintainer: andresdzphp Status: ready -->
<!-- EN-Revision: d51166ca16fda8e766849505b84f9306ef443f71 Maintainer: andresdzphp Status: ready -->
<!-- Reviewed: no -->
<refentry xml:id="recursiveregexiterator.getchildren" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
Expand All @@ -9,7 +8,7 @@
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<methodsynopsis role="RecursiveRegexIterator">
<modifier>public</modifier> <type>RecursiveRegexIterator</type><methodname>RecursiveRegexIterator::getChildren</methodname>
<void/>
</methodsynopsis>
Expand All @@ -33,8 +32,8 @@
<refsect1 role="errors">
&reftitle.errors;
<para>
Se lanza una <classname>InvalidArgumentException</classname>
si la entrada actual no contiene un valor que pueda ser iterado sobre el iterador
Se lanza una <classname>InvalidArgumentException</classname>
si la entrada actual no contiene un valor que pueda ser iterado sobre el iterador
interno.
</para>
</refsect1>
Expand Down Expand Up @@ -90,7 +89,6 @@ Hijos: test4 test5
</refsect1>

</refentry>

<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Expand Down
8 changes: 3 additions & 5 deletions reference/spl/recursiveregexiterator/haschildren.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: dd07341fae2c414adc1f700be0890ff32e8daab4 Maintainer: andresdzphp Status: ready -->
<!-- EN-Revision: d51166ca16fda8e766849505b84f9306ef443f71 Maintainer: andresdzphp Status: ready -->
<!-- Reviewed: no -->
<refentry xml:id="recursiveregexiterator.haschildren" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
Expand All @@ -9,12 +8,12 @@
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<methodsynopsis role="RecursiveRegexIterator">
<modifier>public</modifier> <type>bool</type><methodname>RecursiveRegexIterator::hasChildren</methodname>
<void/>
</methodsynopsis>
<para>
Retorna si un iterador puede ser obtenido de la entrada actual. Este iterador
Retorna si un iterador puede ser obtenido de la entrada actual. Este iterador
puede ser obtenido mediante <methodname>RecursiveRegexIterator::getChildren</methodname>.
</para>

Expand Down Expand Up @@ -71,7 +70,6 @@ bool(true)
</refsect1>

</refentry>

<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Expand Down
Loading

0 comments on commit c5e75fb

Please sign in to comment.