Markup

クラス: Peach_Markup_EmptyElement

定義: /Peach/Markup/EmptyElement.php

Peach_Markup_Element
   |
   +-Peach_Markup_EmptyElement

空要素をあらわすノードです.

この要素は通常 "<tag>" もしくは "<tag />" のようにレンダリングされます. HTML の IMG 要素などは, このクラスを使って表現します.

メソッド

継承されたメソッド

クラス: Peach_Markup_Element

Peach_Markup_Element::__construct()
指定された要素名を持つ Element を構築します.
Peach_Markup_Element::getAttribute()
指定された属性の値を返します.
Peach_Markup_Element::getAttributes()
この要素が持つすべての属性を配列で返します.
Peach_Markup_Element::getName()
この要素の名前を返します.
Peach_Markup_Element::hasAttribute()
指定された属性が存在するかどうかを調べます.
Peach_Markup_Element::removeAttribute()
指定された属性を削除します.
Peach_Markup_Element::setAttribute()
この要素に属性を設定します.
Peach_Markup_Element::setAttributes()
この要素に複数の属性を一括して設定します.

メソッド 詳細

accept

line 40

void accept(Peach_Markup_Context $context)

指定された Context にこのノードを処理させます.

Peach_Markup_Context::handleEmptyElement() を呼び出します.

Tags

  • see : Peach_Markup_Node::accept()
  • access : public

引数

Peach_Markup_Context   $context   このノードを処理する Context