2015-07-24 04:37:48 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Assists with upgrade of userforms to 3.0
|
|
|
|
*
|
|
|
|
* @author dmooyman
|
|
|
|
*/
|
|
|
|
class UserFormsUpgradeTask extends BuildTask {
|
|
|
|
|
|
|
|
protected $title = "UserForms 3.0 Migration Tool";
|
|
|
|
|
|
|
|
protected $description = "Upgrade tool for sites upgrading to userforms 3.0";
|
|
|
|
|
|
|
|
public function run($request) {
|
2016-01-07 04:00:57 +01:00
|
|
|
$service = Injector::inst()->create('UserFormsUpgradeService');
|
|
|
|
$service->log("Upgrading userforms module");
|
|
|
|
$service->setQuiet(false)
|
2015-07-24 04:37:48 +02:00
|
|
|
->run();
|
2016-01-07 04:00:57 +01:00
|
|
|
$service->log("Done");
|
2015-07-24 04:37:48 +02:00
|
|
|
}
|
|
|
|
}
|