svn: /phpdoc/zh/trunk/reference/reflection/reflectionparameter/ getclass.xml
| From: | XiaoQiang Duan | Date: | Thu, 25 Jan 2018 07:45:03 +0000 |
| Subject: | svn: /phpdoc/zh/trunk/reference/reflection/reflectionparameter/ getclass.xml | ||
| Groups: | php.doc.zh | ||
| Request: | Send a blank email to doc-zh+get-5064@lists.php.net to get a copy of this message | ||
duanxiaoqiang Thu, 25 Jan 2018 07:45:03 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=343871
Log:
translate ReflectionParameter
Changed paths:
A phpdoc/zh/trunk/reference/reflection/reflectionparameter/getclass.xml
Added: phpdoc/zh/trunk/reference/reflection/reflectionparameter/getclass.xml
===================================================================
--- phpdoc/zh/trunk/reference/reflection/reflectionparameter/getclass.xml
(rev 0)
+++ phpdoc/zh/trunk/reference/reflection/reflectionparameter/getclass.xml 2018-01-25 07:45:03 UTC
(rev 343871)
@@ -0,0 +1,96 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision$ -->
+<!-- EN-Revision: 332198 Maintainer: duanxiaoqiang Status: ready -->
+<!-- Reviewed: no -->
+
+<refentry xml:id="reflectionparameter.getclass" xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink">
+ <refnamediv>
+ <refname>ReflectionParameter::getClass</refname>
+ <refpurpose>获得类型提示类。</refpurpose>
+ </refnamediv>
+
+ <refsect1 role="description">
+ &reftitle.description;
+ <methodsynopsis>
+ <modifier>public</modifier>
<type>ReflectionClass</type><methodname>ReflectionParameter::getClass</methodname>
+ <void />
+ </methodsynopsis>
+ <para>
+
获取参数的类型提示类,类型为<classname>ReflectionClass</classname>对象。
+ </para>
+
+ &warn.undocumented.func;
+
+ </refsect1>
+
+ <refsect1 role="parameters">
+ &reftitle.parameters;
+ &no.function.parameters;
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+ &reftitle.returnvalues;
+ <para>
+ 一个 <classname>ReflectionClass</classname> 对象。
+ </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+ &reftitle.examples;
+ <para>
+ <example>
+ <title>使用 <classname>ReflectionParameter</classname> 类</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+function foo(Exception $a) { }
+
+$functionReflection = new ReflectionFunction('foo');
+$parameters = $functionReflection->getParameters();
+$aParameter = $parameters[0];
+
+echo $aParameter->getClass()->name;
+?>
+]]>
+ </programlisting>
+ &example.outputs;
+ <screen>
+<![CDATA[
+Exception
+]]>
+ </screen>
+ </example>
+ </para>
+ </refsect1>
+
+ <refsect1 role="seealso">
+ &reftitle.seealso;
+ <para>
+ <simplelist>
+
<member><methodname>ReflectionParameter::getDeclaringClass</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/zh/trunk/reference/reflection/reflectionparameter/getclass.xml
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id Rev Revision Date LastChangedDate LastChangedRevision Author LastChangedBy HeadURL URL
\ No newline at end of property