function l10n_update_xml_parser::start in Localization update 6
Same name and namespace in other branches
- 7 l10n_update.parser.inc \l10n_update_xml_parser::start()
File
- ./
l10n_update.parser.inc, line 82 - Extends the update parser to work with releases
Class
- l10n_update_xml_parser
- Parser for server metadata
Code
function start($parser, $name, $attr) {
$this->current_tag = $name;
switch ($name) {
case 'L10N_SERVER':
unset($this->current_object);
$this->current_server = array();
$this->current_object =& $this->current_server;
break;
case 'LANGUAGES':
unset($this->current_object);
$this->current_languages = array();
$this->current_object =& $this->current_languages;
//$this->current_object = &$this->current_release;
break;
case 'LANGUAGE':
unset($this->current_object);
$this->current_language = array();
$this->current_object =& $this->current_language;
break;
}
}