導入

Zend_Reflectionサンプル

Example #1 ファイルでreflectionを実行

  1. span style="color: #ff0000;">"===> The %s file\n".
  2.     "     has %d lines\n""     It has "":\n""         ""\n""     It has "":\n""         ""\n";
  3. }

Example #2 クラスでreflectionを実行

  1. span style="color: #ff0000;">"クラスレベルのdocblockの短い記述: %s\n".
  2.     "クラスレベルのdocblockの長い記述:\n%s\n"//宣言するファイルreflectionを取得

Example #3 メソッドでreflectionを実行

  1. span style="color: #ff0000;">"Method '%s':\n""Param at position '%d' is of type '%s'\n"

Example #4 docblockでreflectionを実行

  1. span style="color: #ff0000;">"短い記述: %s\n".
  2.     "長い記述:\n%s\n""Annotation tag '%s' has the description '%s'\n",
  3.         $tag->getName(),
  4.         $tag->getDescription()
  5.     );
  6. }

導入