Class TranscodingActionDeleteWordpressScripts

Description

Transcoding action that removes registered scripts in Wordpress.

The action should be hooked up to the 'wp_headers' Wordpress action.

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 /plugins/wordpress/mobileOKPythia/includes/transcodingactiondeletewordpressscripts.php (line 41)

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

Removes all registered scripts when the requesting device does not support scripting.

  • return: The transcoded content.
  • exception: SystemException The evidence is not valid.
  • access: public
string apply ($content $content, $evidence $evidence)
  • $content $content: mixed The array of registered scripts
  • $evidence $evidence: Evidence The evidence that identifies the requesting device.

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