XOOPS API 2.5.11 Beta1  UI v0.5
Réalisé par monxoops.fr
Référence de la classe HTMLPurifier_Token_Tag
+ Graphe d'héritage de HTMLPurifier_Token_Tag:
+ Graphe de collaboration de HTMLPurifier_Token_Tag:

Fonctions membres publiques

 __construct ($name, $attr=array(), $line=null, $col=null, $armor=array())
 
 toNode ()
 
- Fonctions membres publiques hérités de HTMLPurifier_Token
 __get ($n)
 
 position ($l=null, $c=null)
 
 rawPosition ($l, $c)
 

Champs de données

 $is_tag = true
 
 $name
 
 $attr = array()
 
- Champs de données hérités de HTMLPurifier_Token
 $line
 
 $col
 
 $armor = array()
 
 $skip
 
 $rewind
 
 $carryover
 

Description détaillée

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

Documentation des constructeurs et destructeur

◆ __construct()

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

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

Paramètres
string$nameString name.
array$attrAssociative array of attributes.
int$line
int$col
array$armor

Documentation des fonctions membres

◆ toNode()

toNode ( )

Converts a token into its corresponding node.

Réimplémentée à partir de HTMLPurifier_Token.

Réimplémentée dans HTMLPurifier_Token_End, et HTMLPurifier_Token_Empty.

Documentation des champs

◆ $attr

$attr = array()

Associative array of the tag's attributes. @type array

◆ $is_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(). @type bool

◆ $name

$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. @type string

La documentation de cette classe a été générée à partir du fichier suivant :