Zend_Reflectionサンプル
Example #1 ファイルでreflectionを実行
span style="color: #ff0000;">"===> The %s file\n".
" has %d lines\n"" It has "":\n"" ""\n"" It has "":\n"" ""\n";
}
Example #2 クラスでreflectionを実行
span style="color: #ff0000;">"クラスレベルのdocblockの短い記述: %s\n".
"クラスレベルのdocblockの長い記述:\n%s\n"//宣言するファイルreflectionを取得
Example #3 メソッドでreflectionを実行
span style="color: #ff0000;">"Method '%s':\n""Param at position '%d' is of type '%s'\n"
Example #4 docblockでreflectionを実行
span style="color: #ff0000;">"短い記述: %s\n".
"長い記述:\n%s\n""Annotation tag '%s' has the description '%s'\n",
$tag->getName(),
$tag->getDescription()
);
}
|
|