Class HTMLPurifier_Injector_SafeObject
| Inheritance | HTMLPurifier_Injector_SafeObject » HTMLPurifier_Injector |
|---|
Adds important param elements to inside of object in order to make things safe.
Public Properties
| Property | Type | Description | Defined By |
|---|---|---|---|
| $name | HTMLPurifier_Injector_SafeObject | ||
| $needed | HTMLPurifier_Injector_SafeObject |
Protected Properties
| Property | Type | Description | Defined By |
|---|---|---|---|
| $addParam | Keep this synchronized with AttrTransform/SafeParam.php. | HTMLPurifier_Injector_SafeObject | |
| $allowedParam | HTMLPurifier_Injector_SafeObject | ||
| $currentNesting | Reference to CurrentNesting variable in Context. This is an array list of tokens that we are currently "inside" | HTMLPurifier_Injector | |
| $currentToken | Reference to current token. | HTMLPurifier_Injector | |
| $htmlDefinition | HTMLPurifier_Injector | ||
| $inputZipper | Reference to InputZipper variable in Context. | HTMLPurifier_Injector | |
| $objectStack | HTMLPurifier_Injector_SafeObject | ||
| $paramStack | HTMLPurifier_Injector_SafeObject | ||
| $rewindOffset | Number of elements to rewind backwards (relative). | HTMLPurifier_Injector |
Public Methods
| Method | Description | Defined By |
|---|---|---|
| allowsElement() | Tests if the context node allows a certain element | HTMLPurifier_Injector |
| checkNeeded() | This function checks if the HTML environment will work with the Injector: if p tags are not allowed, the Auto-Paragraphing injector should not be enabled. | HTMLPurifier_Injector |
| getRewindOffset() | Retrieves rewind offset, and then unsets it. | HTMLPurifier_Injector |
| handleElement() | HTMLPurifier_Injector_SafeObject | |
| handleEnd() | HTMLPurifier_Injector_SafeObject | |
| handleText() | Handler that is called when a text token is processed | HTMLPurifier_Injector |
| notifyEnd() | Notifier that is called when an end token is processed | HTMLPurifier_Injector |
| prepare() | HTMLPurifier_Injector_SafeObject | |
| rewindOffset() | Rewind to a spot to re-perform processing. This is useful if you deleted a node, and now need to see if this change affected any earlier nodes. Rewinding does not affect other injectors, and can result in infinite loops if not used carefully. | HTMLPurifier_Injector |
Protected Methods
| Method | Description | Defined By |
|---|---|---|
| backward() | Iterator function, starts with the previous token and continues until you reach the beginning of input tokens. | HTMLPurifier_Injector |
| forward() | Iterator function, which starts with the next token and continues until you reach the end of the input tokens. | HTMLPurifier_Injector |
| forwardUntilEndToken() | Similar to _forward, but accepts a third parameter $nesting (which should be initialized at 0) and stops when we hit the end tag for the node $this->inputIndex starts in. | HTMLPurifier_Injector |
Property Details
protected $allowedParam = ['wmode' => true, 'movie' => true, 'flashvars' => true, 'src' => true, 'allowFullScreen' => true]
Method Details
| public void handleElement ( <b>&</b>$token ) | ||
| $token | HTMLPurifier_Token | |
| public void handleEnd ( <b>&</b>$token ) | ||
| $token | ||
| public void prepare ( $config, $context ) | ||
| $config | HTMLPurifier_Config | |
| $context | HTMLPurifier_Context | |