Zend_Reflection-Introduction.xml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- Reviewed: no -->
  3. <sect1 id="zend.reflection.introduction">
  4. <title>Introduction</title>
  5. <para>
  6. <classname>Zend_Reflection</classname> is a drop-in extension to <acronym>PHP</acronym>'s
  7. own <ulink url="http://php.net/reflection">Reflection <acronym>API</acronym></ulink>,
  8. providing several additional features:
  9. </para>
  10. <itemizedlist>
  11. <listitem>
  12. <para>
  13. Ability to retrieve return values types.
  14. </para>
  15. </listitem>
  16. <listitem>
  17. <para>
  18. Ability to retrieve method and function parameter types.
  19. </para>
  20. </listitem>
  21. <listitem>
  22. <para>
  23. Ability to retrieve class property types.
  24. </para>
  25. </listitem>
  26. <listitem>
  27. <para>
  28. DocBlocks gain a Reflection class, allowing introspection of
  29. docblocks. This provides the ability to determine what annotation
  30. tags have been defined as well as to retrieve their values, and the
  31. ability to retrieve the short and long descriptions.
  32. </para>
  33. </listitem>
  34. <listitem>
  35. <para>
  36. Files gain a Reflection class, allowing introspection of <acronym>PHP</acronym>
  37. files. This provides the ability to determine what functions and classes
  38. are defined in a given file, as well as to introspect them.
  39. </para>
  40. </listitem>
  41. <listitem>
  42. <para>
  43. Ability to override any Reflection class with your own variant, for
  44. the entire reflection tree you create.
  45. </para>
  46. </listitem>
  47. </itemizedlist>
  48. <para>
  49. In general, <classname>Zend_Reflection</classname> works just like the standard
  50. Reflection <acronym>API</acronym>, but provides a few additional methods for retrieving
  51. artifacts not defined in the Reflection <acronym>API</acronym>.
  52. </para>
  53. </sect1>