Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
HTMLPurifier_Token_End Class Reference
Inheritance diagram for HTMLPurifier_Token_End:
HTMLPurifier_Token_Tag HTMLPurifier_Token

Public Member Functions

 __get ($n)
 
 position ($l=null, $c=null)
 Sets the position of the token in the source document.
 
 rawPosition ($l, $c)
 Convenience function for DirectLex settings line/col position.
 
 toNode ()
 Converts a token into its corresponding node.
 

Public Attributes

 $armor = array()
 Lookup array of processing that this token is exempt from.
 
 $attr = array()
 Associative array of the tag's attributes.
 
 $carryover
 @type
 
 $col
 Column of line node was on in source document.
 
 $is_tag = true
 Static bool marker that indicates the class is a tag.
 
 $line
 Line number node was on in source document.
 
 $name
 The lower-case name of the tag, like 'a', 'b' or 'blockquote'.
 
 $rewind
 @type
 
 $skip
 Used during MakeWellFormed.
 
 $start
 Token that started this node.
 

Member Function Documentation

◆ __get()

HTMLPurifier_Token::__get ( $n)
inherited
Parameters
string$n
Return values
null|string

◆ position()

HTMLPurifier_Token::position ( $l = null,
$c = null )
inherited

Sets the position of the token in the source document.

Parameters
int$l
int$c

◆ rawPosition()

HTMLPurifier_Token::rawPosition ( $l,
$c )
inherited

Convenience function for DirectLex settings line/col position.

Parameters
int$l
int$c

◆ toNode()

HTMLPurifier_Token_End::toNode ( )

Converts a token into its corresponding node.

Reimplemented from HTMLPurifier_Token_Tag.

Member Data Documentation

◆ $armor

HTMLPurifier_Token::$armor = array()
inherited

Lookup array of processing that this token is exempt from.

Currently, valid values are "ValidateAttributes" and "MakeWellFormed_TagClosedError" @type array

◆ $attr

HTMLPurifier_Token_Tag::$attr = array()
inherited

Associative array of the tag's attributes.

@type array

◆ $col

HTMLPurifier_Token::$col
inherited

Column of line node was on in source document.

Null if unknown. @type int

◆ $is_tag

HTMLPurifier_Token_Tag::$is_tag = true
inherited

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

◆ $line

HTMLPurifier_Token::$line
inherited

Line number node was on in source document.

Null if unknown. @type int

◆ $name

HTMLPurifier_Token_Tag::$name
inherited

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

◆ $skip

HTMLPurifier_Token::$skip
inherited

Used during MakeWellFormed.

See Note [Injector skips] @type

◆ $start

HTMLPurifier_Token_End::$start

Token that started this node.

Added by MakeWellFormed. Please do not edit this! @type HTMLPurifier_Token


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