
Public Member Functions | |
| translate ($si) | |
| Translates a certain part of the XML (I don't know what or why). | |
Public Attributes | |
| const | NEWTAB |
Protected Member Functions | |
| conglomerateTagValues ($xml, $tag) | |
| Concatenates the values of the sub tags of a given XML Tag into a comma-seperated list. | |
| wrapInLink ($link, $tab) | |
| Embeds the given link in an a href tag (the name and href of the link will be the same). | |
| wrapInTableRow ($key, $value, $hilight=false) | |
| Wraps the given key and value in a table row with two fields (one for the key, one for the value). | |
Definition at line 7 of file STransSDRMetadata.php5.
| STransSDRMetadata::conglomerateTagValues | ( | $ | xml, | |
| $ | tag | |||
| ) | [protected] |
Concatenates the values of the sub tags of a given XML Tag into a comma-seperated list.
For internal use only.
| $xml | [SimpleXMLObject]: The parent of the tags whose values are being concatenated. | |
| $tag | [string]: The tag name of the child tags. |
Definition at line 88 of file STransSDRMetadata.php5.
Referenced by translate().
| STransSDRMetadata::translate | ( | $ | si | ) |
Translates a certain part of the XML (I don't know what or why).
Reimplemented from STransXML.
Definition at line 21 of file STransSDRMetadata.php5.
References conglomerateTagValues(), SXMLHelper::parse(), STrans::sendToTarget(), wrapInLink(), and wrapInTableRow().
| STransSDRMetadata::wrapInLink | ( | $ | link, | |
| $ | tab | |||
| ) | [protected] |
Embeds the given link in an a href tag (the name and href of the link will be the same).
For internal use only.
| $link | [string]: the link to be wrapped. | |
| $tab | [integer]: if it equals the local NEWTAB variable (1), sets the link to open in a new window (or tab). |
Definition at line 104 of file STransSDRMetadata.php5.
Referenced by translate().
| STransSDRMetadata::wrapInTableRow | ( | $ | key, | |
| $ | value, | |||
| $ | hilight = false | |||
| ) | [protected] |
Wraps the given key and value in a table row with two fields (one for the key, one for the value).
For internal use only.
| $key | [string]: What should go in the first field. | |
| $value | [string]: What should go in the second field. | |
| $hilight | [string]: Defaults to false. If true, sets the row to be hilighted. |
Definition at line 71 of file STransSDRMetadata.php5.
Referenced by translate().
For internal use only.
The constant for whether or not to make a new tab for the wrapInLink function
Definition at line 13 of file STransSDRMetadata.php5.
1.5.6