function l10n_update_xml_parser::data in Localization update 7
Same name and namespace in other branches
- 6 l10n_update.parser.inc \l10n_update_xml_parser::data()
File
- ./
l10n_update.parser.inc, line 125
Class
- l10n_update_xml_parser
- Parser for server metadata
Code
function data($parser, $data) {
if ($this->current_tag && !in_array($this->current_tag, array(
'L10N_SERVER',
'LANGUAGES',
'LANGUAGE',
))) {
$tag = strtolower($this->current_tag);
if (isset($this->current_object[$tag])) {
$this->current_object[$tag] .= $data;
}
else {
$this->current_object[$tag] = $data;
}
}
}