\HTMLPurifier_Token_End

Concrete end token class.

Summary

Methods
Properties
Constants
__construct()
toNode()
__get()
position()
rawPosition()
$is_tag
$name
$attr
$line
$col
$armor
$skip
$rewind
$carryover
$start
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$is_tag

$is_tag : 

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

$name

$name : 

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

Type

$attr

$attr : 

Associative array of the tag's attributes.

Type

$line

$line : 

Line number node was on in source document. Null if unknown.

Type

$col

$col : 

Column of line node was on in source document. Null if unknown.

Type

$armor

$armor : 

Lookup array of processing that this token is exempt from.

Currently, valid values are "ValidateAttributes" and "MakeWellFormed_TagClosedError"

Type

$skip

$skip : 

Used during MakeWellFormed. See Note [Injector skips]

Type

$rewind

$rewind : 

Type

$carryover

$carryover : 

Type

$start

$start : 

Token that started this node.

Added by MakeWellFormed. Please do not edit this!

Type

Methods

__construct()

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

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

Parameters

string $name

String name.

array $attr

Associative array of attributes.

integer $line
integer $col
array $armor

toNode()

toNode() 

Converts a token into its corresponding node.

__get()

__get(string  $n) : null|string

Parameters

string $n

Returns

null|string

position()

position(integer  $l = null, integer  $c = null) 

Sets the position of the token in the source document.

Parameters

integer $l
integer $c

rawPosition()

rawPosition(integer  $l, integer  $c) 

Convenience function for DirectLex settings line/col position.

Parameters

integer $l
integer $c