17    public $needed = array(
'object', 
'param');
 
   34        'allowScriptAccess' => 
'never',
 
   35        'allowNetworking' => 
'internal',
 
   47        'allowfullscreen' => 
true, 
 
   57        parent::prepare(
$config, $context);
 
   65        if ($token->name == 
'object') {
 
   66            $this->objectStack[] = $token;
 
   67            $this->paramStack[] = array();
 
   69            foreach ($this->addParam as 
$name => $value) {
 
   73        } elseif ($token->name == 
'param') {
 
   74            $nest = count($this->currentNesting) - 1;
 
   75            if ($nest >= 0 && $this->currentNesting[$nest]->name === 
'object') {
 
   76                $i = count($this->objectStack) - 1;
 
   77                if (!isset($token->attr[
'name'])) {
 
   81                $n = $token->attr[
'name'];
 
   85                if (!isset($this->objectStack[
$i]->attr[
'data']) &&
 
   86                    ($token->attr[
'name'] == 
'movie' || $token->attr[
'name'] == 
'src')
 
   88                    $this->objectStack[
$i]->attr[
'data'] = $token->attr[
'value'];
 
   92                if (!isset($this->paramStack[
$i][
$n]) &&
 
   93                    isset($this->addParam[
$n]) &&
 
   94                    $token->attr[
'name'] === $this->addParam[
$n]) {
 
   96                    $this->paramStack[
$i][
$n] = 
true;
 
   97                } elseif (isset($this->allowedParam[strtolower(
$n)])) {
 
  117        if ($token->name == 
'object') {
 
  118            array_pop($this->objectStack);
 
  119            array_pop($this->paramStack);
 
An exception for terminatinating execution or to throw for unit testing.
Adds important param elements to inside of object in order to make things safe.
$addParam
Keep this synchronized with AttrTransform/SafeParam.php.
prepare($config, $context)
$allowedParam
These are all lower-case keys.
handleEnd(&$token)
Handler that is called when an end token is processed.
Injects tokens into the document while parsing for well-formedness.
Concrete empty token class.