共计 1269 个字符,预计需要花费 4 分钟才能阅读完成。
thinkphp 源码无差别浏览(十二)
framework 浏览
think/event/AppInit.php
think/event/HttpEnd.php
think/event/HttpEnd.php
think/event/LogRecord.php
- 属性:type、message
- 构造方法:__construct
think/event/LogWrite.php
- 属性:channel、log
- 构造方法:__construct
think/event/RouteLoaded.php
- 构造方法:__construct
think/exception/ClassNotFoundException.php
- 属性:class
- 构造方法:__construct、getClass
think/exception/ErrorException.php
- 属性:severity
- 构造方法:__construct
- 获取谬误级别:getSeverity
think/exception/FailException.php
- 获取谬误级别:getSeverity
think/exception/FuncNotFoundException.php
- 属性:func
- 构造方法:__construct
- 获取办法名:getFunc
think/exception/Handle.php
- 属性:app、ignoreReport、isJson
- 构造方法:__construct
- 上报或者记录异样:report
- 是否疏忽:isIgnoreReport
- 渲染异样:render
- 渲染异样 renderForConsole
- 渲染 http 异样:renderHttpException
- 收集异样数据:convertExceptionToArray
- 收集异样数据:convertExceptionToResponse
- 渲染异样:renderExceptionContent
- 获取报错编码:getCode
- 获取报错信息:getMessage
- 读取出错文件内容:getSourceCode
- 获取异样扩大数据:getExtendData
- 获取常量:getConst
think/exception/HttpException.php
- 属性:statusCode、headers
- 构造方法:__construct
- 获取状态码:getStatusCode
- 获取 header:getHeaders
think/exception/HttpResponseException.php
- 属性:response
- 构造方法:__construct
- 获取响应:getResponse
think/exception/InvalidArgumentException.php
think/exception/RouteNotFoundException.php
think/exception/ValidateException.php
- 属性:error
- 构造方法:__construct
- 获取验证错误信息:getError
打算浏览
[] framework 源码
[] orm 源码
[] helper 源码
留言
点击留言
正文完