svn: /phpdoc/fr/trunk/reference/reflection/ book.xml reflectionnamedtype/isbuiltin.xml reflectiontype/allowsnull.xml reflectiontype/isbuiltin.xml reflectiontype/tostring.xml reflectiontype.xml

[email protected] (George Peter Banyard)
Newsgroups php.doc.fr
Message-ID <[email protected]>
girgias                                  Mon, 28 Dec 2020 16:59:07 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=352247

Log:
Apply SVN revision 352224

Changed paths:
    U   phpdoc/fr/trunk/reference/reflection/book.xml
    A   phpdoc/fr/trunk/reference/reflection/reflectionnamedtype/isbuiltin.xml
    U   phpdoc/fr/trunk/reference/reflection/reflectiontype/allowsnull.xml
    D   phpdoc/fr/trunk/reference/reflection/reflectiontype/isbuiltin.xml
    U   phpdoc/fr/trunk/reference/reflection/reflectiontype/tostring.xml
    U   phpdoc/fr/trunk/reference/reflection/reflectiontype.xml
svn-diffs-352247.txt (text/x-diff, 12.5 KB)
Modified: phpdoc/fr/trunk/reference/reflection/book.xml
===================================================================
--- phpdoc/fr/trunk/reference/reflection/book.xml	2020-12-28 16:50:37 UTC (rev 352246)
+++ phpdoc/fr/trunk/reference/reflection/book.xml	2020-12-28 16:59:07 UTC (rev 352247)
@@ -1,8 +1,7 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 349867 Maintainer: yannick Status: ready -->
+<!-- EN-Revision: 352224 Maintainer: yannick Status: ready -->
 <!-- Reviewed: no -->
-
 <book xml:id="book.reflection" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
  <?phpdoc extension-membership="core" ?>
  <title>Réflection</title>
@@ -43,6 +42,7 @@
  &reference.reflection.reflectionparameter;
  &reference.reflection.reflectionproperty;
  &reference.reflection.reflectiontype;
+ &reference.reflection.reflectionuniontype;
  &reference.reflection.reflectiongenerator;
  &reference.reflection.reflectionreference;
  &reference.reflection.reflector;

Added: phpdoc/fr/trunk/reference/reflection/reflectionnamedtype/isbuiltin.xml
===================================================================
--- phpdoc/fr/trunk/reference/reflection/reflectionnamedtype/isbuiltin.xml	                        (rev 0)
+++ phpdoc/fr/trunk/reference/reflection/reflectionnamedtype/isbuiltin.xml	2020-12-28 16:59:07 UTC (rev 352247)
@@ -0,0 +1,104 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision: 346557 $ -->
+<!-- EN-Revision: 352224 Maintainer: girgias Status: ready -->
+<!-- Reviewed: no -->
+<refentry xml:id="reflectionnamedtype.isbuiltin" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
+ <refnamediv>
+  <refname>ReflectionNamedType::isBuiltin</refname>
+  <refpurpose>Vérifie si c'est un type intégré</refpurpose>
+ </refnamediv>
+
+ <refsect1 role="description">
+  &reftitle.description;
+  <methodsynopsis>
+   <modifier>public</modifier> <type>bool</type><methodname>ReflectionNamedType::isBuiltin</methodname>
+   <void />
+  </methodsynopsis>
+  <para>
+   Vérifie si le type est un type intégré en PHP.
+  </para>
+ </refsect1>
+
+ <refsect1 role="parameters">
+  &reftitle.parameters;
+  &no.function.parameters;
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+  &reftitle.returnvalues;
+  <para>
+   &true; si c'est un type intégré en PHP, sinon &false;
+  </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+  &reftitle.examples;
+  <para>
+   <example>
+    <title>Exemple avec <methodname>ReflectionNamedType::isBuiltin</methodname></title>
+    <programlisting role="php">
+<![CDATA[
+<?php
+class SomeClass {}
+
+function someFunction(string $param, SomeClass $param2, StdClass $param3) {}
+
+$reflectionFunc = new ReflectionFunction('someFunction');
+$reflectionParams = $reflectionFunc->getParameters();
+
+var_dump($reflectionParams[0]->getType()->isBuiltin());
+var_dump($reflectionParams[1]->getType()->isBuiltin());
+var_dump($reflectionParams[2]->getType()->isBuiltin());
+]]>
+    </programlisting>
+    &example.outputs;
+    <screen>
+<![CDATA[
+bool(true)
+bool(false)
+bool(false)
+]]>
+    </screen>
+   </example>
+  </para>
+  <para>
+   Notez que la méthode <methodname>ReflectionNamedType::isBuiltin</methodname>
+   ne distingue pas entre des classes internes et utilisateur. Pour faire
+   cette distinction, la méthode <methodname>ReflectionClass::isInternal</methodname>
+   doit être utilisé sur le nom de classe retourné.
+  </para>
+ </refsect1>
+
+ <refsect1 role="seealso">
+  &reftitle.seealso;
+  <para>
+   <simplelist>
+    <member><methodname>ReflectionType::allowsNull</methodname></member>
+    <member><methodname>ReflectionType::__toString</methodname></member>
+    <member><methodname>ReflectionClass::isInternal</methodname></member>
+    <member><methodname>ReflectionParameter::getType</methodname></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
+-->


Property changes on: phpdoc/fr/trunk/reference/reflection/reflectionnamedtype/isbuiltin.xml
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Modified: phpdoc/fr/trunk/reference/reflection/reflectiontype/allowsnull.xml
===================================================================
--- phpdoc/fr/trunk/reference/reflection/reflectiontype/allowsnull.xml	2020-12-28 16:50:37 UTC (rev 352246)
+++ phpdoc/fr/trunk/reference/reflection/reflectiontype/allowsnull.xml	2020-12-28 16:59:07 UTC (rev 352247)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 337586 Maintainer: girgias Status: ready -->
+<!-- EN-Revision: 352224 Maintainer: girgias Status: ready -->
 <!-- Reviewed: yes -->

 <refentry xml:id="reflectiontype.allowsnull" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
@@ -49,7 +49,7 @@
 var_dump($reflectionParams[1]->getType()->allowsNull());
 ]]>
     </programlisting>
-    &example.outputs.similar;
+    &example.outputs;
     <screen>
 <![CDATA[
 bool(false)
@@ -64,7 +64,7 @@
   &reftitle.seealso;
   <para>
    <simplelist>
-    <member><methodname>ReflectionType::isBuiltin</methodname></member>
+    <member><methodname>ReflectionNamedType::isBuiltin</methodname></member>
     <member><methodname>ReflectionType::__toString</methodname></member>
     <member><methodname>ReflectionParameter::getType</methodname></member>
    </simplelist>

Deleted: phpdoc/fr/trunk/reference/reflection/reflectiontype/isbuiltin.xml
===================================================================
--- phpdoc/fr/trunk/reference/reflection/reflectiontype/isbuiltin.xml	2020-12-28 16:50:37 UTC (rev 352246)
+++ phpdoc/fr/trunk/reference/reflection/reflectiontype/isbuiltin.xml	2020-12-28 16:59:07 UTC (rev 352247)
@@ -1,106 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- $Revision$ -->
-<!-- EN-Revision: 337586 Maintainer: girgias Status: ready -->
-<!-- Reviewed: no -->
-
-<refentry xml:id="reflectiontype.isbuiltin" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
- <refnamediv>
-  <refname>ReflectionType::isBuiltin</refname>
-  <refpurpose>Vérifie si c'est un type intégré</refpurpose>
- </refnamediv>
-
- <refsect1 role="description">
-  &reftitle.description;
-  <methodsynopsis>
-   <modifier>public</modifier> <type>bool</type><methodname>ReflectionType::isBuiltin</methodname>
-   <void />
-  </methodsynopsis>
-  <para>
-   Vérifie si le type est un type intégré en PHP.
-  </para>
- </refsect1>
-
- <refsect1 role="parameters">
-  &reftitle.parameters;
-  &no.function.parameters;
- </refsect1>
-
- <refsect1 role="returnvalues">
-  &reftitle.returnvalues;
-  <para>
-   &true; si c'est un type intégré en PHP, sinon &false;
-  </para>
- </refsect1>
-
- <refsect1 role="examples">
-  &reftitle.examples;
-  <para>
-   <example>
-    <title>Exemple avec <methodname>ReflectionType::isBuiltin</methodname></title>
-    <programlisting role="php">
-<![CDATA[
-<?php
-class SomeClass {}
-
-function someFunction(string $param, SomeClass $param2, StdClass $param3) {}
-
-$reflectionFunc = new ReflectionFunction('someFunction');
-$reflectionParams = $reflectionFunc->getParameters();
-
-var_dump($reflectionParams[0]->getType()->isBuiltin());
-var_dump($reflectionParams[1]->getType()->isBuiltin());
-var_dump($reflectionParams[2]->getType()->isBuiltin());
-]]>
-    </programlisting>
-    &example.outputs.similar;
-    <screen>
-<![CDATA[
-bool(true)
-bool(false)
-bool(false)
-]]>
-    </screen>
-   </example>
-  </para>
-  <para>
-   Notez que la méthode <methodname>ReflectionType::isBuiltin</methodname>
-   ne distingue pas entre des classes internes et utilisateur. Pour faire
-   cette distinction, la méthode <methodname>ReflectionClass::isInternal</methodname>
-   doit être utilisé sur le nom de classe retourné.
-  </para>
- </refsect1>
-
- <refsect1 role="seealso">
-  &reftitle.seealso;
-  <para>
-   <simplelist>
-    <member><methodname>ReflectionType::allowsNull</methodname></member>
-    <member><methodname>ReflectionType::__toString</methodname></member>
-    <member><methodname>ReflectionClass::isInternal</methodname></member>
-    <member><methodname>ReflectionParameter::getType</methodname></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
--->

Modified: phpdoc/fr/trunk/reference/reflection/reflectiontype/tostring.xml
===================================================================
--- phpdoc/fr/trunk/reference/reflection/reflectiontype/tostring.xml	2020-12-28 16:50:37 UTC (rev 352246)
+++ phpdoc/fr/trunk/reference/reflection/reflectiontype/tostring.xml	2020-12-28 16:59:07 UTC (rev 352247)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 350642 Maintainer: girgias Status: ready -->
+<!-- EN-Revision: 352224 Maintainer: girgias Status: ready -->
 <!-- Reviewed: yes -->

 <refentry xml:id="reflectiontype.tostring" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
@@ -89,8 +89,9 @@
   <para>
    <simplelist>
     <member><methodname>ReflectionNamedType::getName</methodname></member>
+    <member><methodname>ReflectionNamedType::isBuiltin</methodname></member>
     <member><methodname>ReflectionType::allowsNull</methodname></member>
-    <member><methodname>ReflectionType::isBuiltin</methodname></member>
+    <member><methodname>ReflectionUnionType::getTypes</methodname></member>
     <member><methodname>ReflectionParameter::getType</methodname></member>
    </simplelist>
   </para>

Modified: phpdoc/fr/trunk/reference/reflection/reflectiontype.xml
===================================================================
--- phpdoc/fr/trunk/reference/reflection/reflectiontype.xml	2020-12-28 16:50:37 UTC (rev 352246)
+++ phpdoc/fr/trunk/reference/reflection/reflectiontype.xml	2020-12-28 16:59:07 UTC (rev 352247)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 338242 Maintainer: girgias Status: ready -->
+<!-- EN-Revision: 352224 Maintainer: girgias Status: ready -->
 <!-- Reviewed: yes -->

 <phpdoc:classref xml:id="class.reflectiontype" 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">
@@ -30,17 +30,45 @@
 <!-- {{{ Class synopsis -->
     <classsynopsisinfo>
      <ooclass>
+      <modifier>abstract</modifier>
       <classname>ReflectionType</classname>
      </ooclass>
     </classsynopsisinfo>
 <!-- }}} -->
     <classsynopsisinfo role="comment">&Methods;</classsynopsisinfo>
-    <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.reflectiontype')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[1])" />
+    <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.reflectiontype')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[1])">
+     <xi:fallback />
+    </xi:include>

    </classsynopsis>
 <!-- }}} -->
   </section>

+  <section role="changelog" xml:id="reflectiontype.changelog"><!-- {{{ -->
+  &reftitle.changelog;
+  <para>
+   <informaltable>
+    <tgroup cols="2">
+     <thead>
+      <row>
+       <entry>&Version;</entry>
+       <entry>&Description;</entry>
+      </row>
+     </thead>
+     <tbody>
+      <row>
+       <entry>8.0.0</entry>
+       <entry>
+        <classname>ReflectionType</classname> has become abstract and <function>ReflectionType::isBuiltin</function>
+        has been moved to <function>ReflectionNamedType::isBuiltin</function>.
+       </entry>
+      </row>
+     </tbody>
+    </tgroup>
+   </informaltable>
+  </para>
+ </section><!-- }}} -->
+
  </partintro>

  &reference.reflection.entities.reflectiontype;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.