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