4 * Abstract base token class that all others inherit from.
6 abstract class HTMLPurifier_Token
9 * Line number node was on in source document. Null if unknown.
15 * Column of line node was on in source document. Null if unknown.
21 * Lookup array of processing that this token is exempt from.
22 * Currently, valid values are "ValidateAttributes" and
23 * "MakeWellFormed_TagClosedError"
26 public $armor = array();
29 * Used during MakeWellFormed. See Note [Injector skips]
48 public function __get($n)
51 trigger_error('Deprecated type property called; use instanceof', E_USER_NOTICE
);
52 switch (get_class($this)) {
53 case 'HTMLPurifier_Token_Start':
55 case 'HTMLPurifier_Token_Empty':
57 case 'HTMLPurifier_Token_End':
59 case 'HTMLPurifier_Token_Text':
61 case 'HTMLPurifier_Token_Comment':
70 * Sets the position of the token in the source document.
74 public function position($l = null, $c = null)
81 * Convenience function for DirectLex settings line/col position.
85 public function rawPosition($l, $c)
95 * Converts a token into its corresponding node.
97 abstract public function toNode();
100 // vim: et sw=4 sts=4