function l10n_update_xml_parser::end in Localization update 7
Same name and namespace in other branches
- 6 l10n_update.parser.inc \l10n_update_xml_parser::end()
File
- ./
l10n_update.parser.inc, line 102
Class
- l10n_update_xml_parser
- Parser for server metadata
Code
function end($parser, $name) {
switch ($name) {
case 'L10N_SERVER':
unset($this->current_object);
$this->servers[$this->current_server['name']] = $this->current_server;
//$this->current_server = array();
break;
case 'LANGUAGE':
unset($this->current_object);
$this->current_languages[$this->current_language['code']] = $this->current_language;
$this->current_language = array();
break;
case 'LANGUAGES':
$this->current_server['languages'] = $this->current_languages;
break;
default:
if (isset($this->current_object[strtolower($this->current_tag)])) {
$this->current_object[strtolower($this->current_tag)] = trim($this->current_object[strtolower($this->current_tag)]);
}
$this->current_tag = '';
}
}