Source of file CreateCheckPlan.php
Size: 0,786 Bytes - Last Modified: 2021-12-23T10:42:13+00:00
/var/www/docs.ssmods.com/process/src/src/Tasks/CreateCheckPlan.php
123456789101112131415161718192021222324252627282930313233 | <?php namespace Sunnysideup\ModuleChecks\Tasks; use SilverStripe\Core\Environment; use SilverStripe\Dev\BuildTask; use Sunnysideup\ModuleChecks\Model\CheckPlan; /** * main class running all the updates */ class CreateCheckPlan extends BuildTask { protected $enabled = true; protected $title = 'Create list of Checks to run'; protected $description = ' Get the current check plan and work out what needs doing!'; private static $segment = 'create-check-plan'; public function run($request) { Environment::increaseTimeLimitTo(600); $checkPlanID = $_GET['id'] ?? 0; $obj = CheckPlan::get_current_check_plan($checkPlanID); $obj->createChecks(true); echo '<h1>++++++++++++ DONE +++++++++++++++</h1>'; } } |