XOOPS API 2.5.11 Beta1  UI v0.5
Réalisé par monxoops.fr
Référence de la classe HTMLPurifier_ErrorStruct

Fonctions membres publiques

 getChild ($type, $id)
 
 addError ($severity, $message)
 

Champs de données

const TOKEN = 0
 
const ATTR = 1
 
const CSSPROP = 2
 
 $type
 
 $value
 
 $errors = array()
 
 $children = array()
 

Description détaillée

Records errors for particular segments of an HTML document such as tokens, attributes or CSS properties. They can contain error structs (which apply to components of what they represent), but their main purpose is to hold errors applying to whatever struct is being used.

Documentation des fonctions membres

◆ addError()

addError (   $severity,
  $message 
)
Paramètres
int$severity
string$message

◆ getChild()

getChild (   $type,
  $id 
)
Paramètres
string$type
string$id
Renvoie
mixed

Documentation des champs

◆ $children

$children = array()

Child ErrorStructs that are from this structure. For example, a TOKEN ErrorStruct would contain ATTR ErrorStructs. This is a multi-dimensional array in structure: [TYPE]['identifier'] @type array

◆ $errors

$errors = array()

Errors registered for this structure. @type array

◆ $type

$type

Type of this struct. @type string

◆ $value

Value of the struct we are recording errors for. There are various values for this:

  • TOKEN: Instance of HTMLPurifier_Token
  • ATTR: array('attr-name', 'value')
  • CSSPROP: array('prop-name', 'value') @type mixed

◆ ATTR

const ATTR = 1

◆ CSSPROP

const CSSPROP = 2

◆ TOKEN

const TOKEN = 0

Possible values for $children first-key. Note that top-level structures are automatically token-level.


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