Stud.IP  trunk Revision
web_migrate.php File Reference

Variables

if(empty($_SESSION['_language'])) $_language_path = init_i18n($_SESSION['_language'])
 
 $path = $GLOBALS['STUDIP_BASE_PATH'] . '/db/migrations'
 
 $verbose = true
 
 $target = NULL
 
 $lock = new FileLock('web-migrate')
 
if($lock->isLocked() &&Request::int('release_lock')) if(Request::int('target')) $version = new DBSchemaVersion('studip')
 
 $migrator = new Migrator($path, $version, $verbose)
 
if(Request::submitted('start')) $current = $version->get()
 
 $migrations = $migrator->relevantMigrations($target)
 
 $widget = Sidebar::get()->addWidget(new SidebarWidget())
 
 $template = $template_factory->open('web_migrate')
 
$template current_page = _('Datenbank-Migration')
 
$template target = $target
 
$template migrations = $migrations
 
$template lock = $lock
 

Variable Documentation

◆ $_language_path

if (empty( $_SESSION[ '_language'])) $_language_path = init_i18n($_SESSION['_language'])

◆ $current

if (Request::submitted( 'start')) $current = $version->get()

◆ $lock

$lock = new FileLock('web-migrate')

◆ $migrations

$migrations = $migrator->relevantMigrations($target)

◆ $migrator

$migrator = new Migrator($path, $version, $verbose)

◆ $path

$path = $GLOBALS['STUDIP_BASE_PATH'] . '/db/migrations'

◆ $target

$target = NULL

◆ $template

$template = $template_factory->open('web_migrate')

◆ $verbose

$verbose = true

◆ $version

if ( $lock->isLocked() &&Request::int( 'release_lock')) if (Request::int( 'target')) $version = new DBSchemaVersion('studip')

◆ $widget

$widget = Sidebar::get()->addWidget(new SidebarWidget())

◆ current_page

$template current_page = _('Datenbank-Migration')

◆ lock

$template lock = $lock

◆ migrations

$template migrations = $migrations

◆ target

$template target = $target