svn: /phpdoc/ja/trunk/reference/reflection/reflectiontype/ isbuiltin.xml
[email protected] (Yoshinari Takaoka) Mon, 28 Dec 2020 00:39:53 +0000
| Newsgroups | php.doc.ja |
|---|---|
| Message-ID | <[email protected]> |
mumumu Mon, 28 Dec 2020 00:39:53 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=352229
Log:
deleted needless file.
Changed paths:
D phpdoc/ja/trunk/reference/reflection/reflectiontype/isbuiltin.xml
Deleted: phpdoc/ja/trunk/reference/reflection/reflectiontype/isbuiltin.xml
===================================================================
--- phpdoc/ja/trunk/reference/reflection/reflectiontype/isbuiltin.xml 2020-12-28 00:38:32 UTC (rev 352228)
+++ phpdoc/ja/trunk/reference/reflection/reflectiontype/isbuiltin.xml 2020-12-28 00:39:53 UTC (rev 352229)
@@ -1,106 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- $Revision$ -->
-<!-- EN-Revision: 337586 Maintainer: mumumu Status: ready -->
-
-<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>ビルトインの型かどうかをチェックする</refpurpose>
- </refnamediv>
-
- <refsect1 role="description">
- &reftitle.description;
- <methodsynopsis>
- <modifier>public</modifier> <type>bool</type><methodname>ReflectionType::isBuiltin</methodname>
- <void />
- </methodsynopsis>
- <para>
- 型がPHPのビルトインの型であるかをチェックします。
- </para>
- </refsect1>
-
- <refsect1 role="parameters">
- &reftitle.parameters;
- &no.function.parameters;
- </refsect1>
-
- <refsect1 role="returnvalues">
- &reftitle.returnvalues;
- <para>
- ビルトインの型なら &true; を返します。
- そうでなければ &false; を返します。
- </para>
- </refsect1>
-
- <refsect1 role="examples">
- &reftitle.examples;
- <para>
- <example>
- <title><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>
- <methodname>ReflectionType::isBuiltin</methodname> メソッドは、
- 内部クラスとカスタムクラスを区別できないことに注意してください。
- これらを区別するには、返されたクラス名に対して
- <methodname>ReflectionClass::isInternal</methodname> メソッドを使うべきです。
- </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
--->