API - XOOPS 2.5.11 Beta 2
By monxoops.fr
HTMLPurifier_Injector_SafeObject Class Reference
Inheritance diagram for HTMLPurifier_Injector_SafeObject:
Collaboration diagram for HTMLPurifier_Injector_SafeObject:

Public Member Functions

 prepare ($config, $context)
 
 handleElement (&$token)
 
 handleEnd (&$token)
 
- Public Member Functions inherited from HTMLPurifier_Injector
 rewindOffset ($offset)
 
 getRewindOffset ()
 
 prepare ($config, $context)
 
 checkNeeded ($config)
 
 allowsElement ($name)
 
 handleText (&$token)
 
 handleElement (&$token)
 
 handleEnd (&$token)
 
 notifyEnd ($token)
 

Data Fields

 $name = 'SafeObject'
 
 $needed = array('object', 'param')
 
- Data Fields inherited from HTMLPurifier_Injector
 $name
 
 $needed = array()
 

Protected Attributes

 $objectStack = array()
 
 $paramStack = array()
 
 $addParam
 
 $allowedParam
 
- Protected Attributes inherited from HTMLPurifier_Injector
 $htmlDefinition
 
 $currentNesting
 
 $currentToken
 
 $inputZipper
 
 $rewindOffset = false
 

Additional Inherited Members

- Protected Member Functions inherited from HTMLPurifier_Injector
 forward (&$i, &$current)
 
 forwardUntilEndToken (&$i, &$current, &$nesting)
 
 backward (&$i, &$current)
 

Detailed Description

Adds important param elements to inside of object in order to make things safe.

Member Function Documentation

◆ handleElement()

handleElement ( $token)
Parameters
HTMLPurifier_Token$token

Reimplemented from HTMLPurifier_Injector.

◆ handleEnd()

handleEnd ( $token)

Handler that is called when an end token is processed

Reimplemented from HTMLPurifier_Injector.

◆ prepare()

prepare (   $config,
  $context 
)
Parameters
HTMLPurifier_Config$config
HTMLPurifier_Context$context
Returns
void

Reimplemented from HTMLPurifier_Injector.

Field Documentation

◆ $addParam

$addParam
protected
Initial value:
= array(
'allowScriptAccess' => 'never',
'allowNetworking' => 'internal',
)

Keep this synchronized with AttrTransform/SafeParam.php. @type array

◆ $allowedParam

$allowedParam
protected
Initial value:
= array(
'wmode' => true,
'movie' => true,
'flashvars' => true,
'src' => true,
'allowfullscreen' => true,
)

These are all lower-case keys. @type array

◆ $name

$name = 'SafeObject'

@type string

◆ $needed

$needed = array('object', 'param')

@type array

◆ $objectStack

$objectStack = array()
protected

@type array

◆ $paramStack

$paramStack = array()
protected

@type array


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