|
Moodle
2.2.1
http://www.collinsharper.com
|


Public Member Functions | |
| prepare ($config, $context) | |
| handleElement (&$token) | |
| handleEnd (&$token) | |
Data Fields | |
| $name = 'SafeObject' | |
| $needed = array('object', 'param') | |
Protected Attributes | |
| $objectStack = array() | |
| $paramStack = array() | |
| $addParam | |
| $allowedParam | |
Adds important param elements to inside of object in order to make things safe.
Definition at line 7 of file SafeObject.php.
| handleElement | ( | &$ | token | ) |
Handler that is called when a start or empty token is processed
Reimplemented from HTMLPurifier_Injector.
Definition at line 32 of file SafeObject.php.
| handleEnd | ( | &$ | token | ) |
Handler that is called when an end token is processed
Reimplemented from HTMLPurifier_Injector.
Definition at line 79 of file SafeObject.php.
| prepare | ( | $ | config, |
| $ | context | ||
| ) |
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()).
| $config | Instance of HTMLPurifier_Config |
| $context | Instance of HTMLPurifier_Context |
Reimplemented from HTMLPurifier_Injector.
Definition at line 28 of file SafeObject.php.
$addParam [protected] |
array( 'allowScriptAccess' => 'never', 'allowNetworking' => 'internal', )
Definition at line 16 of file SafeObject.php.
$allowedParam [protected] |
array( 'wmode' => true, 'movie' => true, 'flashvars' => true, 'src' => true, 'allowFullScreen' => true, )
Definition at line 20 of file SafeObject.php.
| $name = 'SafeObject' |
Advisory name of injector, this is for friendly error messages
Reimplemented from HTMLPurifier_Injector.
Definition at line 9 of file SafeObject.php.
Array of elements and attributes this injector creates and therefore need to be allowed by the definition. Takes form of array('element' => array('attr', 'attr2'), 'element2')
Reimplemented from HTMLPurifier_Injector.
Definition at line 10 of file SafeObject.php.
$objectStack = array() [protected] |
Definition at line 12 of file SafeObject.php.
$paramStack = array() [protected] |
Definition at line 13 of file SafeObject.php.