function l10n_update_xml_parser::end in Localization update 6
Same name and namespace in other branches
- 7 l10n_update.parser.inc \l10n_update_xml_parser::end()
File
- ./
l10n_update.parser.inc, line 104 - Extends the update parser to work with releases
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:
$this->current_object[strtolower($this->current_tag)] = trim($this->current_object[strtolower($this->current_tag)]);
$this->current_tag = '';
}
}