You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
433 B
13 lines
433 B
<?php
|
|
// Migration task to add schedules on upgrade
|
|
class ScheduleCreator extends MigrationTask {
|
|
var $description = "Load customziable ticket queues";
|
|
function run($time) {
|
|
$i18n = new Internationalization('en_US');
|
|
$schedules = $i18n->getTemplate('schedule.yaml')->getData();
|
|
foreach ($schedules as $schedule) {
|
|
Schedule::__create($schedule);
|
|
}
|
|
}
|
|
}
|
|
return 'ScheduleCreator';
|