Omeka_Db_Migration_AbstractMigration
Package: Db\Migration
- class Omeka_Db_Migration_AbstractMigration
implements Omeka_Db_Migration_MigrationInterface
Database migration classes may inherit from this one.
- property Omeka_Db_Migration_AbstractMigration::$db
protected
- Omeka_Db_Migration_AbstractMigration::setDb(Omeka_Db $db)
Set the database to migrate.
- Parameters:
$db (
Omeka_Db
) –
- Omeka_Db_Migration_AbstractMigration::getDb()
- Returns:
Omeka_Db
- Omeka_Db_Migration_AbstractMigration::down()
Template method for reversing the migration.
This is defined as a template method instead of leaving it abstract because pre-existing implementations of Omeka_Db_Migration were not required to implement the down() method. This ensures backwards compatibility for those migrations.
- Omeka_Db_Migration_AbstractMigration::__call($m, $a)
Proxy calls to Omeka_Db.
Allows migration writers to call db methods directly on $this.
- Parameters:
$m (
string
) – Method name.$a (
array
) – Method arguments.
- Omeka_Db_Migration_AbstractMigration::form()
If the migration requires a form submission, here’s where to handle display of it
- Omeka_Db_Migration_AbstractMigration::up()