private function EvaluationCode::parseXml in Drupal 8 upgrade evaluation 7
Same name and namespace in other branches
- 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
Namespace
Upgrade_checkCode
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();
}