Class TranscodingActionCSSAdaptation

Description

Transcoding action that adapts CSS content to improve content layout on mobile devices.

The DDR property reference that the transcoding action uses to tell whether the requesting device is mobile or not may be defined as a "mobile_device" option through a call to TranscodingAction::setOption(). The action uses the is_wireless_device property of the WURFL namespace when the option is not set.

As opposed to most of the other transcoding actions of this library, this action operates on CSS content, not on XHTML content.

Located in /common/transcoding/transcodingactioncssadaptation.php (line 54)

TranscodingAction
   |
   --TranscodingActionCSSAdaptation
Method Summary
string apply ([string $content = test], Evidence $evidence)
Variables
Methods
apply (line 64)

Adapts the CSS content to better suit common capabilities of mobile devices.

  • return: The transcoded content.
  • exception: SystemException The evidence is not valid.
  • access: public
string apply ([string $content = test], Evidence $evidence)
  • string $content: The HTML content to transcode.
  • 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