STransXML Class Reference
[Translators]

the parent class for all the STransStdXML classes. Contains helper functions for translating XML into HTML. More...

Inheritance diagram for STransXML:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 doc ()
 returns a brief description of this class.
 getInFormat ()
 gets the desired input format (always XML). This will always return xml, because that is all this translator translates.
 getOutFormat ()
 the desired output format (always HTML). This will always return html, because that is all this translator can translate into.
 translate ($si)
 Gets the desired custom translator (if set, from parent) and retrieves an XML object. Any SInput with the name "Main" is handled differently.

Protected Attributes

 $XMLObj


Detailed Description

the parent class for all the STransStdXML classes. Contains helper functions for translating XML into HTML.

Definition at line 8 of file STransXML.php5.


Member Function Documentation

STransXML::doc (  ) 

returns a brief description of this class.

Returns:
[string]: a brief description of this class.

Reimplemented from STrans.

Reimplemented in STransBookXML, STransListXML, STransNavXML, STransPhotoXML, STransStdXML, and STransStdXML3.

Definition at line 19 of file STransXML.php5.

STransXML::getInFormat (  ) 

gets the desired input format (always XML). This will always return xml, because that is all this translator translates.

Returns:
[string]: the string 'xml'.

Reimplemented from STrans.

Reimplemented in STransStdXML, and STransStdXML3.

Definition at line 33 of file STransXML.php5.

STransXML::getOutFormat (  ) 

the desired output format (always HTML). This will always return html, because that is all this translator can translate into.

Returns:
[string]: the string 'html'.

Reimplemented from STrans.

Reimplemented in STransStdXML, and STransStdXML3.

Definition at line 42 of file STransXML.php5.

STransXML::translate ( si  ) 

Gets the desired custom translator (if set, from parent) and retrieves an XML object. Any SInput with the name "Main" is handled differently.

Parameters:
$si [SInput]: the SInput object being loaded.
Returns:
[boolean]: True on success, false on failure.

Reimplemented from STrans.

Reimplemented in STransBookXML, STransListXML, STransNavXML, STransNSDLSearchXML, STransPhotoXML, STransSDRMetadata, STransStdXML, STransStdXML3, STransXFormsXML, and TransSDRPendingXML.

Definition at line 52 of file STransXML.php5.

References SXMLHelper::parse().


Member Data Documentation

STransXML::$XMLObj [protected]

For internal use only.

An old, unused variable that use to be used in translating XML.

Definition at line 13 of file STransXML.php5.


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

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