protected function TMGMTFileformatXLIFF::writeEPT in Translation Management Tool 7
Writes ending pair tag.
Parameters
XMLWriter $writer: Writer that writes the output.
string $name: Ending tag name.
$id: Current node id.
1 call to TMGMTFileformatXLIFF::writeEPT()
- TMGMTFileformatXLIFF::processForExport in translators/
file/ tmgmt_file.format.xliff.inc - Helper function to process the source text.
File
- translators/
file/ tmgmt_file.format.xliff.inc, line 565
Class
- TMGMTFileformatXLIFF
- Export to XLIFF format.
Code
protected function writeEPT(XMLWriter $writer, $name, $id) {
$writer
->startElement('ept');
$writer
->writeAttribute('id', $id);
$writer
->text('</' . $name . '>');
$writer
->endElement();
}