Filesystem functions
[Helper functions]


Modules

 Symlink functions

Functions

 _multi_scan_sites ($symlinks=TRUE)
 _multi_available_installations ()
 _multi_previous_installations ()
 _multi_previous_installation ()
 _multi_relative_path ($target)

Detailed Description

Functions that do search and scan operation on the local file system.

Function Documentation

_multi_available_installations (  ) 

Returns all available drupal installations of your major release in form of 'drupal-'${MAJOR}.${MINOR} found in the parent directory of DRUPAL_ROOT sorted by usort with 'strnatcmp' callback

Returns:
array An ascending ordered array with drupal installation in form of 'drupal-'${MAJOR}.${MINOR}, with at least the current installations found in the parent directory of DRUPAL_ROOT or

0 if none was found

Definition at line 448 of file multi.inc.

Referenced by _multi_previous_installation(), and _multi_previous_installations().

_multi_previous_installation (  ) 

Return the previous drupal installation in form of 'drupal-'${MAJOR}.${MINOR} found in the parent directory of DRUPAL_ROOT in the filesystem, else FALSE via drush_set_error

Returns:
string the previous version if available or FALSE if not available

Definition at line 503 of file multi.inc.

References _multi_available_installations(), and _multi_current_version().

_multi_previous_installations (  ) 

Return all previous drupal installations in form of 'drupal-'${MAJOR}.${MINOR} found in the parent directory of DRUPAL_ROOT in the filesystem or an empty array if not available.

Returns:
array An ascending ordered array with the previous installations or FALSE if not available

Definition at line 473 of file multi.inc.

References _multi_available_installations(), and _multi_current_version().

Referenced by multi_status().

_multi_relative_path ( target  ) 

Return the relative path from the current working directory(getcwd()) to target.

based on http://de.php.net/ref.filesystem from http://iubito.free.fr

Parameters:
string folder or file
Returns:
string the relative path from current working directory to $target as string with trailing '/'

Definition at line 533 of file multi.inc.

Referenced by _multi_preserve_symlinks(), and drush_multi_create().

_multi_scan_sites ( symlinks = TRUE  ) 

Finds all sites within the drupal installation (DRUSH_DRUPAL_ROOT), by searching for a settings.php which indicates a drupal-site. and check for a valid $db_url for database connections.

See also:
_multi_check_db_url()
Parameters:
boolean $symlinks Allows symlink site folders
Returns:
$sites An array with folder names under sites/all or an empty array if no site detected.

Todo:
Investigate the usage of drush`s core site detection via alias and consider removing this one

Definition at line 254 of file multi.inc.

Referenced by _multi_check_site(), and multi_status().


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