Class TranscodingActionLineartables

Description

Transcoding action that linearizes tables found in XHTML content when the requesting device does not support tables.

The action recognizes 3 kinds of tables:

  • tables where first row contains headers, called a vertical table.
  • tables where first column contains headers, called a horizontal table.
  • tables with no headers defined, called layout tables because we'll suppose
they are used to control the layout of the page.

The transcoding action linearizes nested tables even when the requesting mobile is known to support tables, as nested tables are forbidden in XHTML Basic 1.1.

The transcoding action requires tables to be well-formed, i.e. tables will be parsed as XML content.

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

TranscodingAction
   |
   --TranscodingActionLineartables
Method Summary
string apply (string $content, Evidence $evidence)
Variables
Methods
apply (line 64)

Linearizes tables when tables are not supported by the requesting device.

  • return: The transcoded content.
  • exception: SystemException The evidence is not valid.
  • access: public
string apply (string $content, Evidence $evidence)
  • Evidence $evidence: The evidence that identifies the requesting device.
  • string $content: 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