You are here

function update_xml_parser::start in Drupal 6

File

modules/update/update.fetch.inc, line 206
Code required only when fetching information about available updates.

Class

update_xml_parser
XML Parser object to read Drupal's release history info files. This uses PHP4's lame XML parsing, but it works.

Code

function start($parser, $name, $attr) {
  $this->current_tag = $name;
  switch ($name) {
    case 'PROJECT':
      unset($this->current_object);
      $this->current_project = array();
      $this->current_object =& $this->current_project;
      break;
    case 'RELEASE':
      unset($this->current_object);
      $this->current_release = array();
      $this->current_object =& $this->current_release;
      break;
    case 'TERM':
      unset($this->current_object);
      $this->current_term = array();
      $this->current_object =& $this->current_term;
      break;
    case 'FILE':
      unset($this->current_object);
      $this->current_file = array();
      $this->current_object =& $this->current_file;
      break;
  }
}