You are here

function l10n_update_xml_parser::start in Localization update 7

Same name and namespace in other branches
  1. 6 l10n_update.parser.inc \l10n_update_xml_parser::start()

File

./l10n_update.parser.inc, line 80

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;
  }
}