\HTMLPurifier_Token_Start

Concrete start token class.

Summary

Methods
Properties
Constants
__construct()
toNode()
__get()
position()
rawPosition()
$is_tag
$name
$attr
$line
$col
$armor
$skip
$rewind
$carryover
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().

$name

$name

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

$attr

$attr

Associative array of the tag's attributes.

$line

$line

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

$col

$col

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

$armor

$armor

Lookup array of processing that this token is exempt from.

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

$skip

$skip

Used during MakeWellFormed. See Note [Injector skips]

$rewind

$rewind

$carryover

$carryover

Methods

__construct()

__construct(string  $name, array  $attr = array(), int  $line = null, int  $col = null, array  $armor = array()) : mixed

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

Parameters

string $name

String name.

array $attr

Associative array of attributes.

int $line
int $col
array $armor

Returns

mixed —

toNode()

toNode() : mixed

Converts a token into its corresponding node.

Returns

mixed —

__get()

__get(string  $n) : null|string

Parameters

string $n

Returns

null|string —

position()

position(int  $l = null, int  $c = null) : mixed

Sets the position of the token in the source document.

Parameters

int $l
int $c

Returns

mixed —

rawPosition()

rawPosition(int  $l, int  $c) : mixed

Convenience function for DirectLex settings line/col position.

Parameters

int $l
int $c

Returns

mixed —