Class TranscodingActionDeleteScript

Description

Transcoding action that removes scripts from the given HTML content when the requesting device does not support them.

The action removes script tags and event attributes.

The DDR property reference that the transcoding action uses to tell whether the requesting device supports scripting or not may be defined in a "script_support" option through a call to TranscodingAction::setOption(). The action uses the scriptSupport property of the DDR Core Vocabulary by default.

Located in /common/transcoding/transcodingactiondeletescript.php (line 39)

TranscodingAction
   |
   --TranscodingActionDeleteScript
Method Summary
string apply ($content $content, $content $evidence)
Variables
Methods
apply (line 50)

Removes all occurrences of script from the given content if the requesting device does not support scripting.

  • return: The transcoded content.
  • exception: SystemException The evidence is not valid.
  • access: public
string apply ($content $content, $content $evidence)
  • $content $content: string The HTML content to transcode.
  • $content $evidence: string The HTML content to transcode.

Redefinition of:
TranscodingAction::apply()
Applies the transcoding action to the given content, using the capabilities of the device identified by the given evidence.

Inherited Methods

Inherited From TranscodingAction

TranscodingAction::__construct()
TranscodingAction::apply()
TranscodingAction::getNextBlock()
TranscodingAction::getOption()
TranscodingAction::getPropertyValue()
TranscodingAction::getPropertyValuePr()
TranscodingAction::getRelativeUri()
TranscodingAction::initOption()
TranscodingAction::initProperty()
TranscodingAction::initPropertyValues()
TranscodingAction::mapAbsoluteUriToFile()
TranscodingAction::mapFileToAbsoluteUri()
TranscodingAction::mapFileToUri()
TranscodingAction::mapUriToFile()
TranscodingAction::resolveUri()
TranscodingAction::setOption()
TranscodingAction::unparse_url()

Documentation generated on Tue, 17 Nov 2009 19:00:40 +0100 by phpDocumentor 1.4.2