'XML xpath functions'
['Helper functions']


Functions

 _multi_recommended_version ($core, $project= 'drupal', $float=FALSE, $path=FALSE)
 _multi_released_versions ($core, $project= 'drupal')
 _multi_check_project ($core, $project= 'drupal')

Detailed Description

Functions that uses the xml files at http://updates.drupal.org/release-history/project/core.x with xpath

Function Documentation

_multi_check_project ( core,
project = 'drupal' 
)

Check if the combination of the specified core compatibility and the specified project exists on drupal.org.

Parameters:
$core Core compatibility / drupal major version (5, 6, 7 and so forth) but also possible for versions before drupal 5 like drupal-4.7.x or image-4.7.x etc without error
$project Name of the project. Default 'drupal'
Returns:
boolean TRUE if found on drupal.org else FALSE via drush_set_error()

Definition at line 162 of file multi.inc.

Referenced by drush_multi_create_validate().

_multi_recommended_version ( core,
project = 'drupal',
float = FALSE,
path = FALSE 
)

Get the recommended version of a specified project from a file or an url

Parameters:
$core Core compatibility / drupal major version (5, 6, 7 and so forth) but also possible for versions before drupal 5 like drupal/4.7.x or image/4.7.x etc without error
$project Name of the project. Default 'drupal'
$float Modifies return value. If TRUE it returns the recommended version of supplied project as float. Default FALSE
$path Path to xml file which contains the release history. This could be an absolute path to file on your filesystem or an url. Default 'http://updates.drupal.org/release-history/' combined with supplied $project, '/', supplied $core and '.x'.
Returns:
An array with the following keys, we assume 6 was supplied for core, 'drupal' for project and v. 6.14 is recommended version:
   [name] => drupal 6.14   
   [version] => 6.14   
   [tag] => DRUPAL-6-14   
   [version_major] => 6   
   [version_patch] => 14   
   [status] => published   
   [release_link] => http://drupal.org/node/579476   
   [download_link] => http://ftp.drupal.org/files/projects/drupal-6.14.tar.gz   
   [date] => 1253130028   
   [mdhash] => 014bb453a8d0adb0233c763e40d63859   
   [filesize] => 1082687
or the recommended version as float, if float is set to TRUE,
or FALSE via drush_set_error() if $core $project combination does

Definition at line 81 of file multi.inc.

Referenced by _multi_nagios_root(), drush_multi_create(), drush_multi_drupalupdate_validate(), and multi_status().

_multi_released_versions ( core,
project = 'drupal' 
)

Returns all released minor versions of the specified major version and project from drupal.org in form of ${PROJECT}'-'${MAJOR}.${MINOR} or or FALSE via drush_set_error() if no release history was found for the requested project.

Parameters:
$core Core compatibility / drupal major version (5, 6, 7 and so forth) but also possible for versions before drupal 5 like drupal/4.7.x or image/4.7.x etc without error
$project Name of the project, Default 'drupal'
Returns:
array An ascending array that contains project and version in form of ${PROJECT}'-'${MAJOR}.${MINOR} at each index or FALSE via drush_set_error()

Definition at line 123 of file multi.inc.


Generated on Sat May 8 17:31:44 2010 for drush_multi by  doxygen 1.5.8