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.x, 6.x, 7.x 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 210 of file multi.inc.

_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.x, 6.x, 7.x 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:
 Array                                                      
 (                                                          
   [name] => drupal 6.20                                  
   [version] => 6.20                                      
   [tag] => DRUPAL-6-20                                   
   [version_major] => 6                                   
   [version_patch] => 20                                  
   [status] => published                                  
   [release_link] => http://drupal.org/node/999422        
   [download_link] => http://ftp.drupal.org/files/projects/drupal-6.20.tar.gz
   [date] => 1292447789                                                      
   [mdhash] => a4f59401fbb3e20e3a03ac5fc11bd27c
   [filesize] => 1100246
   [files] => SimpleXMLElement Object
       (
           [file] => Array
               (
                   [0] => SimpleXMLElement Object
                       (
                           [url] => http://ftp.drupal.org/files/projects/drupal-6.20.tar.gz
                           [archive_type] => tar.gz
                           [md5] => a4f59401fbb3e20e3a03ac5fc11bd27c
                           [size] => 1100246
                           [filedate] => 1292447789
                       )



                   [1] => SimpleXMLElement Object
                       (
                           [url] => http://ftp.drupal.org/files/projects/drupal-6.20.zip
                           [archive_type] => zip
                           [md5] => 06114b337ba9d682f44fa13d98ecfa46
                           [size] => 1285970
                           [filedate] => 1293228545
                       )

               )

       )

   [terms] => SimpleXMLElement Object
       (
           [term] => SimpleXMLElement Object
               (
                   [name] => Release type
                   [value] => Bug fixes
               )

       )

 )

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 122 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:
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 171 of file multi.inc.


Generated on Wed Dec 29 13:43:21 2010 for drush_multi by  doxygen 1.5.8