update_xml_parser::data

6 update.fetch.inc update_xml_parser::data($parser, $data)

File

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

Code

function data($parser, $data) {
  if ($this->current_tag && !in_array($this->current_tag, array('PROJECT', 'RELEASE', 'RELEASES', 'TERM', 'TERMS', 'FILE', 'FILES'))) {
    $tag = strtolower($this->current_tag);
    if (isset($this->current_object[$tag])) {
      $this->current_object[$tag] .= $data;
    }
    else {
      $this->current_object[$tag] = $data;
    }
  }
}
Login or register to post comments