Horde_Core_Db_Migration
in package
Tags
Table of Contents
Properties
- $apps : array<string|int, mixed>
- List of all module names matching the directories in $dirs.
- $dirs : array<string|int, mixed>
- List of all migration directories.
- $_lower : array<string|int, mixed>
- List of all lower case module names matching the directories in $dirs.
Methods
- __construct() : mixed
- Constructor.
- getMigrator() : Horde_Db_Migration_Migrator
- Returns a migrator for a module.
Properties
$apps
List of all module names matching the directories in $dirs.
public
array<string|int, mixed>
$apps
= array()
$dirs
List of all migration directories.
public
array<string|int, mixed>
$dirs
= array()
$_lower
List of all lower case module names matching the directories in $dirs.
protected
array<string|int, mixed>
$_lower
= array()
Methods
__construct()
Constructor.
public
__construct([string $basedir = null ][, string $pearconf = null ]) : mixed
Searches all installed applications and libraries for migration directories and builds lists of migrateable modules and directories.
Parameters
- $basedir : string = null
-
Base directory of all Git checkouts.
- $pearconf : string = null
-
Path to a PEAR configuration file.
getMigrator()
Returns a migrator for a module.
public
getMigrator(string $app[, Horde_Log_Logger $logger = null ]) : Horde_Db_Migration_Migrator
Parameters
- $app : string
-
An application or library name.
- $logger : Horde_Log_Logger = null
-
A logger instance.
Return values
Horde_Db_Migration_Migrator —A migrator for the specified module.