'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

Definition at line 396 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 446 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 416 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 476 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.

Definition at line 206 of file multi.inc.

Referenced by _multi_check_site(), drush_multi_exec(), drush_multi_sql_dump(), and multi_status().


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