end

  1. drupal
    1. drupal6
Versionen
drupal6 update_xml_parser::end($parser, $name)

Code

modules/update/update.fetch.inc, line 228

<?php
function end($parser, $name) {
  switch ($name) {
    case 'PROJECT':
      unset($this->current_object);
      $this->projects[$this->current_project['short_name']] = $this->current_project;
      $this->current_project = array();
      break;
    case 'RELEASE':
      unset($this->current_object);
      $this->current_project['releases'][$this->current_release['version']] = $this->current_release;
      break;
    case 'RELEASES':
      $this->current_object = &$this->current_project;
      break;
    case 'TERM':
      unset($this->current_object);
      $term_name = $this->current_term['name'];
      if (!isset($this->current_release['terms'])) {
        $this->current_release['terms'] = array();
      }
      if (!isset($this->current_release['terms'][$term_name])) {
        $this->current_release['terms'][$term_name] = array();
      }
      $this->current_release['terms'][$term_name][] = $this->current_term['value'];
      break;
    case 'TERMS':
      $this->current_object = &$this->current_release;
      break;
    default:
      $this->current_object[strtolower($this->current_tag)] = trim($this->current_object[strtolower($this->current_tag)]);
      $this->current_tag = '';
  }
}
?>

Kommentare

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen