Overview

Namespaces

  • Peach
    • DF
    • DT
    • Http
      • Body
      • Header
    • Markup
    • Util

Classes

  • AbstractHelper
  • AbstractRenderer
  • BaseHelper
  • BreakControlWrapper
  • Builder
  • Code
  • Comment
  • ContainerElement
  • Context
  • DebugBuilder
  • DebugContext
  • DefaultBreakControl
  • DefaultBuilder
  • DefaultContext
  • Element
  • EmptyElement
  • HelperObject
  • HtmlHelper
  • Indent
  • MinimalBreakControl
  • NameBreakControl
  • NameValidator
  • NodeList
  • None
  • SgmlRenderer
  • Text
  • XmlRenderer

Interfaces

  • BreakControl
  • Component
  • Container
  • Helper
  • Node
  • Renderer
  • Overview
  • Namespace
  • Class

Class DebugContext

デバッグのために使用される Context です. この Context は, handle メソッドを実行した時に自動で echo を行います. 出力内容は, ノードツリーの構造を可視化した文字列となります.

Peach\Markup\Context
Extended by Peach\Markup\DebugContext
Namespace: Peach\Markup
Located at Peach/Markup/DebugContext.php
Methods summary
public
# __construct( boolean $echoMode = true )

新しい DebugContext を構築します.

新しい DebugContext を構築します.

Parameters

$echoMode
自動で出力を行うかどうかの設定 (デフォルトで true)
public string
# getResult( )

デバッグ用の出力データを返します.

デバッグ用の出力データを返します.

Returns

string
public
# handleComment( Peach\Markup\Comment $node )

Comment ノードのデバッグ文字列を出力します. 出力内容は以下の通りです.

Comment ノードのデバッグ文字列を出力します. 出力内容は以下の通りです.

Comment {
    # 子ノードの出力内容
}

Parameters

$node
public
# handleContainerElement( Peach\Markup\ContainerElement $node )

ContainerElement ノードのデバッグ文字列を出力します. 出力内容は以下の通りです.

ContainerElement ノードのデバッグ文字列を出力します. 出力内容は以下の通りです.

ContainerElement(tagName) {
    # 子ノードの出力内容
}

Parameters

$node
public
# handleEmptyElement( Peach\Markup\EmptyElement $node )

EmptyElement ノードのデバッグ文字列を出力します. 出力内容は以下の通りです.

EmptyElement ノードのデバッグ文字列を出力します. 出力内容は以下の通りです.

EmptyElement(tagName)

Parameters

$node
public
# handleNodeList( Peach\Markup\NodeList $node )

NodeList のデバッグ文字列を出力します. 出力内容は以下の通りです.

NodeList のデバッグ文字列を出力します. 出力内容は以下の通りです.

NodeList {
    # 子ノードの出力内容
}

Parameters

$node
public
# handleText( Peach\Markup\Text $node )

Text ノードのデバッグ文字列を出力します. 出力内容は文字列 "Text" です.

Text ノードのデバッグ文字列を出力します. 出力内容は文字列 "Text" です.

Parameters

$node
public
# handleCode( Peach\Markup\Code $node )

Code ノードのデバッグ文字列を出力します. 出力内容は文字列 "Code" です.

Code ノードのデバッグ文字列を出力します. 出力内容は文字列 "Code" です.

Parameters

$node
public
# handleNone( Peach\Markup\None $none )

None のデバッグ文字列を出力します. 出力内容は文字列 "None" です.

None のデバッグ文字列を出力します. 出力内容は文字列 "None" です.

Parameters

$none
Methods inherited from Peach\Markup\Context
handle()
PEACH2 API documentation generated by ApiGen