Class HTMLPurifier_Injector_SafeObject

Description

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

Located in /lib/core/Parsers/htmlpurifier/HTMLPurifier.standalone.php (line 13452)

HTMLPurifier_Injector
   |
   --HTMLPurifier_Injector_SafeObject
Variable Summary
mixed $addParam
mixed $name
mixed $needed
mixed $objectStack
mixed $paramStack
Method Summary
void handleElement ( &$token)
void handleEnd ( &$token)
void prepare ( $config,  $context)
Variables
mixed $addParam = array(
'allowScriptAccess' => 'never',
'allowNetworking' => 'internal',
)
(line 13461)
  • access: protected
mixed $allowedParam = array(
'wmode' => true,
'movie' => true,
'flashvars' => true,
'src' => true,
'allowFullScreen' => true, // if omitted, assume to be 'false'
)
(line 13465)
  • access: protected
mixed $name = 'SafeObject' (line 13454)
  • access: public

Redefinition of:
HTMLPurifier_Injector::$name
Advisory name of injector, this is for friendly error messages
mixed $needed = array('object', 'param') (line 13455)
  • access: public

Redefinition of:
HTMLPurifier_Injector::$needed
Array of elements and attributes this injector creates and therefore
mixed $objectStack = array() (line 13457)
  • access: protected
mixed $paramStack = array() (line 13458)
  • access: protected

Inherited Variables

Inherited from HTMLPurifier_Injector

HTMLPurifier_Injector::$currentNesting
HTMLPurifier_Injector::$htmlDefinition
HTMLPurifier_Injector::$inputIndex
HTMLPurifier_Injector::$inputTokens
HTMLPurifier_Injector::$rewind
Methods
handleElement (line 13477)
  • access: public
void handleElement ( &$token)
  • &$token

Redefinition of:
HTMLPurifier_Injector::handleElement()
Handler that is called when a start or empty token is processed
handleEnd (line 13524)
  • access: public
void handleEnd ( &$token)
  • &$token

Redefinition of:
HTMLPurifier_Injector::handleEnd()
Handler that is called when an end token is processed
prepare (line 13473)
  • access: public
void prepare ( $config,  $context)
  • $config
  • $context

Redefinition of:
HTMLPurifier_Injector::prepare()
Prepares the injector by giving it the config and context objects: this allows references to important variables to be made within the injector. This function also checks if the HTML environment will work with the Injector (see checkNeeded()).

Inherited Methods

Inherited From HTMLPurifier_Injector

HTMLPurifier_Injector::allowsElement()
HTMLPurifier_Injector::backward()
HTMLPurifier_Injector::checkNeeded()
HTMLPurifier_Injector::current()
HTMLPurifier_Injector::forward()
HTMLPurifier_Injector::forwardUntilEndToken()
HTMLPurifier_Injector::getRewind()
HTMLPurifier_Injector::handleElement()
HTMLPurifier_Injector::handleEnd()
HTMLPurifier_Injector::handleText()
HTMLPurifier_Injector::notifyEnd()
HTMLPurifier_Injector::prepare()
HTMLPurifier_Injector::rewind()

Documentation generated on Sun, 06 Mar 2011 00:24:09 -0500 by phpDocumentor 1.4.3