CakePHP
  • 文档
    • 书籍
    • API
    • 视频
    • 报告安全问题
    • 隐私政策
    • 标识和商标
  • 商业解决方案
  • 周边产品
  • 公路旅行
  • 团队
  • 社区
    • 社区
    • 参与进来
    • 问题 (Github)
    • 烘焙坊
    • 精选资源
    • 培训
    • 聚会
    • 我的 CakePHP
    • CakeFest
    • 通讯
    • 领英
    • YouTube
    • 脸书
    • 推特
    • Mastodon
    • 帮助与支持
    • 论坛
    • Stack Overflow
    • IRC
    • Slack
    • 付费支持
CakePHP

C CakePHP 5.1 Chiffon API

  • 项目
    • CakePHP
      • CakePHP
      • Chronos
      • Elastic Search
      • 队列
  • 版本
    • 5.1
      • 5.1
      • 5.0
      • 4.5
      • 4.4
      • 4.3
      • 4.2
      • 4.1
      • 4.0
      • 3.10
      • 3.9
      • 3.8
      • 3.7
      • 3.6
      • 3.5
      • 3.4
      • 3.3
      • 3.2
      • 3.1
      • 3.0
      • 2.10
      • 2.9
      • 2.8
      • 2.7
      • 2.6
      • 2.5
      • 2.4
      • 2.3
      • 2.2
      • 2.1
      • 2.0
      • 1.3
      • 1.2

命名空间

  • 全局
  • Cake
    • Cache
    • Collection
    • Command
    • Console
    • Controller
    • Core
    • Database
    • Datasource
    • Error
      • Debug
      • Middleware
      • Renderer
    • Event
    • Form
    • Http
    • I18n
    • Log
    • Mailer
    • Network
    • ORM
    • Routing
    • TestSuite
    • Utility
    • Validation
    • View

TextFormatter 类

用于生成无样式纯文本输出的调试器格式化程序。

提供与 Debugger::exportVar() 的历史输出向后兼容的输出。

命名空间: Cake\Error\Debug

方法摘要

  • dump() public

    将 NodeInterface 对象的树转换为纯文本字符串。

  • export() protected

    将 NodeInterface 对象的树转换为纯文本字符串。

  • exportArray() protected

    导出数组类型对象。

  • exportObject() protected

    处理对象到字符串的转换。

  • formatWrapper() public

    输出带有位置上下文的转储包装器。

方法详情

dump() ¶ public

dump(Cake\Error\Debug\NodeInterface $node): string

将 NodeInterface 对象的树转换为纯文本字符串。

参数
Cake\Error\Debug\NodeInterface $node

要转储的节点树。

返回值
string

export() ¶ protected

export(Cake\Error\Debug\NodeInterface $var, int $indent): string

将 NodeInterface 对象的树转换为纯文本字符串。

参数
Cake\Error\Debug\NodeInterface $var

要转储的节点树。

int $indent

当前缩进级别。

返回值
string

exportArray() ¶ protected

exportArray(Cake\Error\Debug\ArrayNode $var, int $indent): string

导出数组类型对象。

参数
Cake\Error\Debug\ArrayNode $var

要导出的数组。

int $indent

当前缩进级别。

返回值
string

exportObject() ¶ protected

exportObject(Cake\Error\Debug\ClassNodeCake\Error\Debug\ReferenceNode $var, int $indent): string

处理对象到字符串的转换。

参数
Cake\Error\Debug\ClassNodeCake\Error\Debug\ReferenceNode $var

要转换的对象。

int $indent

当前缩进级别。

返回值
string
参见
\Cake\Error\Debugger::exportVar()

formatWrapper() ¶ public

formatWrapper(string $contents, array $location): string

输出带有位置上下文的转储包装器。

参数
string $contents
array $location
返回值
string
OpenHub
Pingping
Linode
  • 商业解决方案
  • 展示
  • 文档
  • 书籍
  • API
  • 视频
  • 报告安全问题
  • 隐私政策
  • 标识和商标
  • 社区
  • 参与进来
  • 问题 (Github)
  • 烘焙坊
  • 精选资源
  • 培训
  • 聚会
  • 我的 CakePHP
  • CakeFest
  • 通讯
  • 领英
  • YouTube
  • 脸书
  • 推特
  • Mastodon
  • 帮助与支持
  • 论坛
  • Stack Overflow
  • IRC
  • Slack
  • 付费支持

使用 CakePHP API 文档 生成