类反射工具
功能描述
使用 reflex 工具类可以快速的对某个指定的类文件或对象进行反射,对类文件结构一目了然。
使用说明
使用 phpGrace\tools\reflex 类的静态方法 r,参数:类或对象。
<?php class indexController extends grace{ public function index(){ $timer = new \phpGrace\tools\timer(); phpGrace\tools\reflex::r($timer); } }
展示格式
文件位置 : /var/www/***/phpGrace/tools/timer.php 属性 : 类内常量 : 方法 : Method [ user public method currentYear ] { @@ /var/www/***/phpGrace/tools/timer.php 8 - 10 } Method [ user public method currentMonth ] { @@ /var/www/***/phpGrace/tools/timer.php 13 - 15 } ......
下载地址
mac 系统环境 可以在编辑器的tools目录下通过 Terminal 执行命令行直接下载到目录里
curl -O http://liukuaizhuan.gitee.io/phpgracemanual/工具/类反射工具/reflex.php