Class HTMLPurifier_Token_Tag

Description

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

Located in /lib/core/Parsers/htmlpurifier/HTMLPurifier.standalone.php (line 15466)

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], [ $col = null])
Variables
mixed $attr = array() (line 15488)

Associative array of the tag's attributes.

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

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 15483)

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::$carryover
HTMLPurifier_Token::$col
HTMLPurifier_Token::$line
HTMLPurifier_Token::$rewind
HTMLPurifier_Token::$skip
Methods
Constructor __construct (line 15496)

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

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

Inherited Methods

Inherited From HTMLPurifier_Token

HTMLPurifier_Token::position()
HTMLPurifier_Token::rawPosition()
HTMLPurifier_Token::__get()

Documentation generated on Sun, 06 Mar 2011 00:24:13 -0500 by phpDocumentor 1.4.3