STransHTMLMedia Class Reference
[Translators]

Passes on Media HTML from the SNAP database. More...

Inheritance diagram for STransHTMLMedia:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 translate ($si)
 A 'pass through' function for media. Grabs the source from SNAP and outputs it to the page.

Private Member Functions

 replaceMediaTag ($tag)
 Translates a media XML tag into HTML and returns the HTML.


Detailed Description

Passes on Media HTML from the SNAP database.

Definition at line 8 of file STransHTMLMedia.php5.


Member Function Documentation

STransHTMLMedia::replaceMediaTag ( tag  )  [private]

Translates a media XML tag into HTML and returns the HTML.

For internal use only.

Parameters:
$tag [array]: An array with two parts. Part 1 (index 0) is the XML tag. Part 2 (index 1) is the name of the tag (currently not actually used).
Returns:
[string]: The HTML for the media item.

Definition at line 15 of file STransHTMLMedia.php5.

References SnapResource::lookup(), and SnapResource::retrieve().

STransHTMLMedia::translate ( si  ) 

A 'pass through' function for media. Grabs the source from SNAP and outputs it to the page.

Returns:
[boolean]: TRUE. Always true.

Reimplemented from STransHTML.

Definition at line 68 of file STransHTMLMedia.php5.

References STrans::sendToTarget().


The documentation for this class was generated from the following file:

Generated on Wed Nov 24 02:06:41 2010 for Common by  doxygen 1.5.6