You are here

private function EvaluationCode::parseXml in Drupal 8 upgrade evaluation 7

Same name and namespace in other branches
  1. 6 includes/EvaluationCode.php \Upgrade_check\EvaluationCode::parseXml()

Parses the XML of the Drupal release history info files.

Parameters

$xml: A raw XML string of available release data for a given project.

Return value

Array of parsed data about releases for a given project, and Array if there was an error parsing the string.

1 call to EvaluationCode::parseXml()
EvaluationCode::updateProcessFetchTask in includes/EvaluationCode.php
Processes a task to fetch available update data for a single project.

File

includes/EvaluationCode.php, line 262

Class

EvaluationCode

Namespace

Upgrade_check

Code

private function parseXml($xml) {
  if (!isset($xml->error) && !empty($xml->data)) {
    module_load_include('inc', 'update', 'update.fetch');
    $available = update_parse_xml($xml->data);
  }
  return !empty($available) ? $available : array();
}