Class HTMLPurifier_Token_Tag

Description

Abstract class of a tag token (start, end or empty), and its behavior.

Abstract class of a tag token (start, end or empty), and its behavior.

Located in /library/HTMLPurifier/Token/Tag.php (line 6)

HTMLPurifier_Token
   |
   --HTMLPurifier_Token_Tag
Direct descendents
Class Description
HTMLPurifier_Token_Empty Concrete empty token class.
HTMLPurifier_Token_End Concrete end token class.
HTMLPurifier_Token_Start Concrete start token class.
Variable Summary
mixed $attr
mixed $is_tag
mixed $name
Method Summary
HTMLPurifier_Token_Tag __construct ($name $name, [$attr $attr = array()], [ $line = null])
Variables
mixed $attr = array() (line 28)

Associative array of the tag's attributes.

Associative array of the tag's attributes.

  • access: public
mixed $is_tag = true (line 14)

Static bool marker that indicates the class is a tag.

Static bool marker that indicates the class is a tag. This allows us to check objects with <tt>!empty($obj->is_tag)</tt> without having to use a function call <tt>is_a()</tt>.

  • access: public
mixed $name (line 23)

The lower-case name of the tag, like 'a', 'b' or 'blockquote'.

The lower-case name of the tag, like 'a', 'b' or 'blockquote'.

  • access: public

Inherited Variables

Inherited from HTMLPurifier_Token

HTMLPurifier_Token::$armor
HTMLPurifier_Token::$line
Methods
Constructor __construct (line 36)

Non-overloaded constructor, which lower-cases passed tag name.

Non-overloaded constructor, which lower-cases passed tag name.

  • access: public
HTMLPurifier_Token_Tag __construct ($name $name, [$attr $attr = array()], [ $line = null])
  • $name $name: String name.
  • $attr $attr: Associative array of attributes.
  • $line

Inherited Methods

Inherited From HTMLPurifier_Token

HTMLPurifier_Token::__get()

Documentation generated on Thu, 19 Jun 2008 18:50:23 -0400 by phpDocumentor 1.4.2