
Public Member Functions | |
| doc () | |
| INSERT BRIEF DESCRIPTION HERE. | |
| 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. | |
| getPage () | |
| Gets the current SPage object. | |
| translate ($si) | |
| gets the desired translator and creates an XML object for translation. The helper translates into HTML, which is automatically appended to the page. If the resource source code is in snap, is will just pull the source. Otherwise, it parses the root tag to find out what kind of resource it is (if there is no root tag it isn't happy). If the translation helper doesn't submit all the output to the page for it, it submits it itself (as in the case of XML Resources). | |
Public Attributes | |
| const | XML_UNKNOWN |
Protected Member Functions | |
| translateAlbum ($xmlAlbum, $si) | |
| A function that calls another function of the same name in the XML helper class. This function uses the same returns as the helper class, but has one less parameter The second parameter for the function in the helper class refers to this class, and so is unnecessary for this class. | |
| translateList ($xmlList, $si) | |
| A function that calls another function of the same name in the XML helper class. This function uses the same returns as the helper class, but has one less parameter The second parameter for the function in the helper class refers to this class, and so is unnecessary for this class. | |
| translateResource ($xmlResource) | |
| A function that calls another function of the same name in the XML helper class. | |
Protected Attributes | |
| $transHelperClass | |
Definition at line 8 of file STransStdXML3.php5.
| STransStdXML3::doc | ( | ) |
INSERT BRIEF DESCRIPTION HERE.
INSERT FULL DESCRIPTION HERE
Reimplemented from STransXML.
Definition at line 31 of file STransStdXML3.php5.
| STransStdXML3::getInFormat | ( | ) |
gets the desired input format (always XML). This will always return xml, because that is all this translator translates.
Reimplemented from STransXML.
Definition at line 45 of file STransStdXML3.php5.
| STransStdXML3::getOutFormat | ( | ) |
the desired output format (always HTML). This will always return html, because that is all this translator can translate into.
Reimplemented from STransXML.
Definition at line 54 of file STransStdXML3.php5.
| STransStdXML3::getPage | ( | ) |
Gets the current SPage object.
Definition at line 141 of file STransStdXML3.php5.
| STransStdXML3::translate | ( | $ | si | ) |
gets the desired translator and creates an XML object for translation. The helper translates into HTML, which is automatically appended to the page. If the resource source code is in snap, is will just pull the source. Otherwise, it parses the root tag to find out what kind of resource it is (if there is no root tag it isn't happy). If the translation helper doesn't submit all the output to the page for it, it submits it itself (as in the case of XML Resources).
| $si | [SInput]: |
Reimplemented from STransXML.
Definition at line 65 of file STransStdXML3.php5.
References STrans::getInputOption(), SXMLHelper::parse(), STrans::sendToTarget(), STrans::setOption(), translateAlbum(), translateList(), translateResource(), and XML_UNKNOWN.
| STransStdXML3::translateAlbum | ( | $ | xmlAlbum, | |
| $ | si | |||
| ) | [protected] |
A function that calls another function of the same name in the XML helper class. This function uses the same returns as the helper class, but has one less parameter The second parameter for the function in the helper class refers to this class, and so is unnecessary for this class.
For internal use only.
| $xmlAlbum | [xmlDom]: An XML Dom object representing the source of the SInput. | |
| $si | [SInput]: The current SInput Object. |
Definition at line 116 of file STransStdXML3.php5.
Referenced by translate().
| STransStdXML3::translateList | ( | $ | xmlList, | |
| $ | si | |||
| ) | [protected] |
A function that calls another function of the same name in the XML helper class. This function uses the same returns as the helper class, but has one less parameter The second parameter for the function in the helper class refers to this class, and so is unnecessary for this class.
For internal use only.
| $xmlList | [xmlDom]: An XML Dom object representing the source of the SInput. | |
| $si | [SInput]: The current SInput Object. |
Definition at line 126 of file STransStdXML3.php5.
Referenced by translate().
| STransStdXML3::translateResource | ( | $ | xmlResource | ) | [protected] |
A function that calls another function of the same name in the XML helper class.
For internal use only.
| $xmlResource | [xmlDom]: An XML Dom object representing the source of the SInput. |
Definition at line 134 of file STransStdXML3.php5.
Referenced by translate().
STransStdXML3::$transHelperClass [protected] |
For internal use only.
The XML helper class this class uses.
Reimplemented from STrans.
Definition at line 22 of file STransStdXML3.php5.
For internal use only.
This is a list of possible root tags (Resource, List, or Album). The root type is passed to the Helper.
Definition at line 14 of file STransStdXML3.php5.
Referenced by translate().
1.5.6