【2022/1/3】thinkphp源码无差别阅读(十一)

thinkphp源码无差别阅读(十一) framework阅读 console/command/output/Formatter.php 属性:decorated、styles、styleStack 转义:escape 初始化命令行输出格式:__construct 设置外观标识:setDecorated 获取外观标识:isDecorated 添加一个新样式:setStyle 是否有这个样式:hasStyle 获取样式:getStyle 使用所给的样式格式化文字:format 未知:getStyleStack 根据字符串创建新的样式:createStyleFromString 从堆栈应用样式到文字:applyCurrentStyle console/command/output/Question.php 属性:question、attemps、hidden、hiddenFallBack、autocomplateValues、validtor、default、mormalizer 构造方法:__construct 获取问题:getQuestion 获取默认答案:getDefault 是否隐藏答案:isHidden 设置隐藏答案:setHidden 不能被隐藏是否撤销:isHiddenFallback 设置不能被隐藏:setHiddenFallback 获取自动完成:getAutocomplateValues 设置自动完成:setAutocompleterValues 设置答案的验证器:setValidator 获取验证码:getValidator 设置最大重试次数:setMaxAttempts 获取最大重试次数:getMaxAttempts 设置响应的回调:setNormalizer 获取响应的回调:getNormalizer console/command/contract/CacheHandlerInterface.php 判断缓存:has 读取缓存:get 写入缓存:set 自增缓存:inc 自减缓冲:dec 删除缓存:delete 清除缓存:clear 删除缓存标签:clearTag console/command/contract/LogHandlerInterface.php 日志写入:save console/command/contract/ModelRealationInterface.php 延迟获取关联数据:getRelation 预载入关联查询:eagerlyResultSet 预载入关联查询:eagerlyResult 关联统计:relationCount 创建关联统计子查询:getRelationCountQuery 根据关联条件查询当前模型:has 根据关联条件查询当前模型:hasWhere console/command/contract/SessionHandlerInterface.php 读取:read 删除:delete 写入:write console/command/contract/TemplateHandlerInterface.php 检测是否存在模板:exists 渲染模板文件:fetch 渲染模板内容:display 配置模板引擎:config 获取配置:getConfig 计划阅读 [ ] framework源码 [ ] orm源码 [ ] helper源码 留言 点击​​留言​​

提供全面的网站源码正版坑位,小程序、APP、H5、支付、游戏、区块链、商城、直播、影音、小说、公众号等源码学习交流。
精品源码资源网 » 【2022/1/3】thinkphp源码无差别阅读(十一)
喜欢我嘛?喜欢就按“ctrl+D”收藏我吧!♡