Initial Upload

This commit is contained in:
Matt Batchelder
2025-12-02 10:32:59 -05:00
commit 05ce0da296
2240 changed files with 467811 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
<?php
/**
* Copyright (C) 2021 Xibo Signage Ltd
*
* Xibo - Digital Signage - http://www.xibo.org.uk
*
* This file is part of Xibo.
*
* Xibo is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* Xibo is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with Xibo. If not, see <http://www.gnu.org/licenses/>.
*/
namespace Xibo\Listener\OnParsePermissions;
use Xibo\Event\ParsePermissionEntityEvent;
use Xibo\Factory\CommandFactory;
class PermissionsCommandListener
{
/**
* @var CommandFactory
*/
private $commandFactory;
public function __construct(CommandFactory $commandFactory)
{
$this->commandFactory = $commandFactory;
}
public function __invoke(ParsePermissionEntityEvent $event)
{
$event->setObject($this->commandFactory->getById($event->getObjectId()));
}
}

View File

@@ -0,0 +1,44 @@
<?php
/**
* Copyright (C) 2021 Xibo Signage Ltd
*
* Xibo - Digital Signage - http://www.xibo.org.uk
*
* This file is part of Xibo.
*
* Xibo is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* Xibo is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with Xibo. If not, see <http://www.gnu.org/licenses/>.
*/
namespace Xibo\Listener\OnParsePermissions;
use Xibo\Event\ParsePermissionEntityEvent;
use Xibo\Factory\DataSetFactory;
class PermissionsDataSetListener
{
/**
* @var DataSetFactory
*/
private $dataSetFactory;
public function __construct(DataSetFactory $dataSetFactory)
{
$this->dataSetFactory = $dataSetFactory;
}
public function __invoke(ParsePermissionEntityEvent $event)
{
$event->setObject($this->dataSetFactory->getById($event->getObjectId()));
}
}

View File

@@ -0,0 +1,44 @@
<?php
/**
* Copyright (C) 2021 Xibo Signage Ltd
*
* Xibo - Digital Signage - http://www.xibo.org.uk
*
* This file is part of Xibo.
*
* Xibo is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* Xibo is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with Xibo. If not, see <http://www.gnu.org/licenses/>.
*/
namespace Xibo\Listener\OnParsePermissions;
use Xibo\Event\ParsePermissionEntityEvent;
use Xibo\Factory\DayPartFactory;
class PermissionsDayPartListener
{
/**
* @var DayPartFactory
*/
private $dayPartFactory;
public function __construct(DayPartFactory $dayPartFactory)
{
$this->dayPartFactory = $dayPartFactory;
}
public function __invoke(ParsePermissionEntityEvent $event)
{
$event->setObject($this->dayPartFactory->getById($event->getObjectId()));
}
}

View File

@@ -0,0 +1,44 @@
<?php
/**
* Copyright (C) 2021 Xibo Signage Ltd
*
* Xibo - Digital Signage - http://www.xibo.org.uk
*
* This file is part of Xibo.
*
* Xibo is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* Xibo is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with Xibo. If not, see <http://www.gnu.org/licenses/>.
*/
namespace Xibo\Listener\OnParsePermissions;
use Xibo\Event\ParsePermissionEntityEvent;
use Xibo\Factory\FolderFactory;
class PermissionsFolderListener
{
/**
* @var FolderFactory
*/
private $folderFactory;
public function __construct(FolderFactory $folderFactory)
{
$this->folderFactory = $folderFactory;
}
public function __invoke(ParsePermissionEntityEvent $event)
{
$event->setObject($this->folderFactory->getById($event->getObjectId()));
}
}

View File

@@ -0,0 +1,44 @@
<?php
/**
* Copyright (C) 2021 Xibo Signage Ltd
*
* Xibo - Digital Signage - http://www.xibo.org.uk
*
* This file is part of Xibo.
*
* Xibo is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* Xibo is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with Xibo. If not, see <http://www.gnu.org/licenses/>.
*/
namespace Xibo\Listener\OnParsePermissions;
use Xibo\Event\ParsePermissionEntityEvent;
use Xibo\Factory\MenuBoardFactory;
class PermissionsMenuBoardListener
{
/**
* @var MenuBoardFactory
*/
private $menuBoardFactory;
public function __construct(MenuBoardFactory $menuBoardFactory)
{
$this->menuBoardFactory = $menuBoardFactory;
}
public function __invoke(ParsePermissionEntityEvent $event)
{
$event->setObject($this->menuBoardFactory->getById($event->getObjectId()));
}
}

View File

@@ -0,0 +1,44 @@
<?php
/**
* Copyright (C) 2021 Xibo Signage Ltd
*
* Xibo - Digital Signage - http://www.xibo.org.uk
*
* This file is part of Xibo.
*
* Xibo is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* Xibo is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with Xibo. If not, see <http://www.gnu.org/licenses/>.
*/
namespace Xibo\Listener\OnParsePermissions;
use Xibo\Event\ParsePermissionEntityEvent;
use Xibo\Factory\NotificationFactory;
class PermissionsNotificationListener
{
/**
* @var NotificationFactory
*/
private $notificationFactory;
public function __construct(NotificationFactory $notificationFactory)
{
$this->notificationFactory = $notificationFactory;
}
public function __invoke(ParsePermissionEntityEvent $event)
{
$event->setObject($this->notificationFactory->getById($event->getObjectId()));
}
}

View File

@@ -0,0 +1,44 @@
<?php
/**
* Copyright (C) 2021 Xibo Signage Ltd
*
* Xibo - Digital Signage - http://www.xibo.org.uk
*
* This file is part of Xibo.
*
* Xibo is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* Xibo is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with Xibo. If not, see <http://www.gnu.org/licenses/>.
*/
namespace Xibo\Listener\OnParsePermissions;
use Xibo\Event\ParsePermissionEntityEvent;
use Xibo\Factory\RegionFactory;
class PermissionsRegionListener
{
/**
* @var RegionFactory
*/
private $regionFactory;
public function __construct(RegionFactory $regionFactory)
{
$this->regionFactory = $regionFactory;
}
public function __invoke(ParsePermissionEntityEvent $event)
{
$event->setObject($this->regionFactory->getById($event->getObjectId()));
}
}

View File

@@ -0,0 +1,44 @@
<?php
/**
* Copyright (C) 2021 Xibo Signage Ltd
*
* Xibo - Digital Signage - http://www.xibo.org.uk
*
* This file is part of Xibo.
*
* Xibo is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* Xibo is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with Xibo. If not, see <http://www.gnu.org/licenses/>.
*/
namespace Xibo\Listener\OnParsePermissions;
use Xibo\Event\ParsePermissionEntityEvent;
use Xibo\Factory\WidgetFactory;
class PermissionsWidgetListener
{
/**
* @var WidgetFactory
*/
private $widgetFactory;
public function __construct(WidgetFactory $widgetFactory)
{
$this->widgetFactory = $widgetFactory;
}
public function __invoke(ParsePermissionEntityEvent $event)
{
$event->setObject($this->widgetFactory->getById($event->getObjectId()));
}
}