PHP Class Horde_Core_Db_Migration, horde

Author: Jan Schneider ([email protected])
Mostra file Open project: horde/horde Class Usage Examples

Public Properties

Property Type Description
$apps array List of all module names matching the directories in $dirs.
$dirs array List of all migration directories.

Protected Properties

Property Type Description
$_lower array List of all lower case module names matching the directories in $dirs.

Public Methods

Method Description
__construct ( string $basedir = null, string $pearconf = null ) Constructor.
getMigrator ( string $app, Horde_Log_Logger $logger = null ) : Horde_Db_Migration_Migrator Returns a migrator for a module.

Method Details

__construct() public method

Searches all installed applications and libraries for migration directories and builds lists of migrateable modules and directories.
public __construct ( string $basedir = null, string $pearconf = null )
$basedir string Base directory of a Git checkout. If provided a framework/ sub directory is searched for migration scripts too.
$pearconf string Path to a PEAR configuration file.

getMigrator() public method

Returns a migrator for a module.
public getMigrator ( string $app, Horde_Log_Logger $logger = null ) : Horde_Db_Migration_Migrator
$app string An application or library name.
$logger Horde_Log_Logger A logger instance.
return Horde_Db_Migration_Migrator A migrator for the specified module.

Property Details

$_lower protected_oe property

List of all lower case module names matching the directories in $dirs.
protected array $_lower
return array

$apps public_oe property

List of all module names matching the directories in $dirs.
public array $apps
return array

$dirs public_oe property

List of all migration directories.
public array $dirs
return array