9
9
namespace Xibo\Upgrade;
12
use Xibo\Service\ConfigServiceInterface;
13
use Xibo\Service\LogServiceInterface;
14
use Xibo\Storage\StorageServiceInterface;
17
* Class ScheduleConvertStep
18
* @package Xibo\Upgrade
12
20
class ScheduleConvertStep implements Step
14
public static function doStep()
22
/** @var StorageServiceInterface */
25
/** @var LogServiceInterface */
28
/** @var ConfigServiceInterface */
32
* DataSetConvertStep constructor.
33
* @param StorageServiceInterface $store
34
* @param LogServiceInterface $log
35
* @param ConfigServiceInterface $config
37
public function __construct($store, $log, $config)
39
$this->store = $store;
41
$this->config = $config;
45
* @param \Slim\Helper\Set $container
46
* @throws \Xibo\Exception\NotFoundException
48
public function doStep($container)
16
50
// Get all events and their Associated display group id's
17
foreach ($this->getStore()->select('SELECT eventId, displayGroupIds FROM `schedule`', []) as $event) {
51
foreach ($this->store->select('SELECT eventId, displayGroupIds FROM `schedule`', []) as $event) {
18
52
// Ping open the displayGroupIds
19
53
$displayGroupIds = explode(',', $event['displayGroupIds']);