XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
HTMLPurifier_Token_Tag Class Reference
Inheritance diagram for HTMLPurifier_Token_Tag:
Inheritance graph

Public Member Functions

 __construct ($name, $attr=array(), $line=null, $col=null, $armor=array())
 
- Public Member Functions inherited from HTMLPurifier_Token
 __get ($n)
 
 position ($l=null, $c=null)
 
 rawPosition ($l, $c)
 

Public Attributes

 $attr = array()
 
 $is_tag = true
 
 $name
 
- Public Attributes inherited from HTMLPurifier_Token
 $armor = array()
 
 $carryover
 
 $col
 
 $line
 
 $rewind
 
 $skip
 

Detailed Description

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

Definition at line 6 of file Tag.php.

Constructor & Destructor Documentation

HTMLPurifier_Token_Tag::__construct (   $name,
  $attr = array(),
  $line = null,
  $col = null,
  $armor = array() 
)

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

Parameters
$nameString name.
$attrAssociative array of attributes.

Definition at line 36 of file Tag.php.

References HTMLPurifier_Token\$armor, $attr, HTMLPurifier_Token\$col, HTMLPurifier_Token\$line, and $name.

Member Data Documentation

HTMLPurifier_Token_Tag::$attr = array()

Associative array of the tag's attributes.

Definition at line 28 of file Tag.php.

Referenced by __construct().

HTMLPurifier_Token_Tag::$is_tag = true

Static bool marker that indicates the class is a tag.

This allows us to check objects with !empty($obj->is_tag) without having to use a function call is_a().

Definition at line 14 of file Tag.php.

HTMLPurifier_Token_Tag::$name

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

Note
Strictly speaking, XML tags are case sensitive, so we shouldn't be lower-casing them, but these tokens cater to HTML tags, which are insensitive.

Definition at line 23 of file Tag.php.

Referenced by __construct().


The documentation for this class was generated from the following file: