Skip to content

Commit

Permalink
Translate more reflection (#931)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fan2Shrek authored May 13, 2024
1 parent 291033d commit 8b18db8
Show file tree
Hide file tree
Showing 6 changed files with 583 additions and 0 deletions.
65 changes: 65 additions & 0 deletions reference/reflection/reflectionfiber.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 14767af0f05dffa6fdb9b49e1a1f4e9ca7022a60 Maintainer: Fan2Shrek Status: ready -->
<!-- Reviewed: yes -->
<phpdoc:classref xml:id="class.reflectionfiber" 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 classe ReflectionFiber</title>
<titleabbrev>ReflectionFiber</titleabbrev>

<partintro>

<!-- {{{ ReflectionFiber intro -->
<section xml:id="reflectionfiber.intro">
&reftitle.intro;
<para>

</para>
</section>
<!-- }}} -->

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

<!-- {{{ Synopsis -->
<classsynopsis class="class">
<ooclass>
<modifier>final</modifier>
<classname>ReflectionFiber</classname>
</ooclass>

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

</section>

</partintro>

&reference.reflection.entities.reflectionfiber;

</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:"~/.phpdoc/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
-->
90 changes: 90 additions & 0 deletions reference/reflection/reflectionfunction/isanonymous.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: ec2fe9a592f794978114ef5021db9f1d00c2e05d Maintainer: Fan2Shrek Status: ready -->
<!-- Reviewed: yes -->
<refentry xml:id="reflectionfunction.isanonymous" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>ReflectionFunction::isAnonymous</refname>
<refpurpose>Vérifie si la fonction est anonyme</refpurpose>
</refnamediv>

<refsect1 role="description">
&reftitle.description;
<methodsynopsis role="ReflectionFunction">
<modifier>public</modifier> <type>bool</type><methodname>ReflectionFunction::isAnonymous</methodname>
<void/>
</methodsynopsis>
<para>
Vérifie si la fonction est <link linkend="functions.anonymous">anonyme</link>.
</para>
</refsect1>

<refsect1 role="parameters">
&reftitle.parameters;
&no.function.parameters;
</refsect1>

<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Renvoie &true; si la fonction est anonyme, sinon &false;.
</para>
</refsect1>

<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title>Exemple de <methodname>ReflectionFunction::isAnonymous</methodname></title>
<programlisting role="php">
<![CDATA[
<?php
$rf = new ReflectionFunction(function() {});
var_dump($rf->isAnonymous());
$rf = new ReflectionFunction('strlen');
var_dump($rf->isAnonymous());
?>
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
bool(true)
bool(false)
]]>
</screen>
</example>
</para>
</refsect1>

<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><link linkend="functions.anonymous">Fonctions anonymes</link></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:"~/.phpdoc/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
-->
72 changes: 72 additions & 0 deletions reference/reflection/reflectionintersectiontype.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 14767af0f05dffa6fdb9b49e1a1f4e9ca7022a60 Maintainer: Fan2Shrek Status: ready -->
<!-- Reviewed: yes -->
<phpdoc:classref xml:id="class.reflectionintersectiontype" xmlns:phpdoc="http://php.net/ns/phpdoc" xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude">

<title>La classe ReflectionIntersectionType</title>
<titleabbrev>ReflectionIntersectionType</titleabbrev>

<partintro>

<!-- {{{ ReflectionIntersectionType intro -->
<section xml:id="reflectionintersectiontype.intro">
&reftitle.intro;
<para>

</para>
</section>
<!-- }}} -->

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

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

<ooclass>
<modifier>extends</modifier>
<classname>ReflectionType</classname>
</ooclass>

<classsynopsisinfo role="comment">&Methods;</classsynopsisinfo>
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.reflectionintersectiontype')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[@role='ReflectionIntersectionType'])">
<xi:fallback/>
</xi:include>

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

</section>

</partintro>

&reference.reflection.entities.reflectionintersectiontype;

</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:"~/.phpdoc/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
-->
Loading

0 comments on commit 8b18db8

Please sign in to comment.