mirror of
https://github.com/Karaka-Management/oms-Calendar.git
synced 2026-01-13 08:08:43 +00:00
57 lines
1.2 KiB
PHP
57 lines
1.2 KiB
PHP
<?php
|
|
/**
|
|
* Orange Management
|
|
*
|
|
* PHP Version 7.2
|
|
*
|
|
* @package TBD
|
|
* @copyright Dennis Eichhorn
|
|
* @license OMS License 1.0
|
|
* @version 1.0.0
|
|
* @link http://website.orange-management.de
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
namespace Modules\Calendar\Theme\Backend\Components\Calendar;
|
|
|
|
use phpOMS\ApplicationAbstract;
|
|
use phpOMS\Message\RequestAbstract;
|
|
use phpOMS\Message\ResponseAbstract;
|
|
use phpOMS\Views\View;
|
|
|
|
/**
|
|
* Component view.
|
|
*
|
|
* @package TBD
|
|
* @license OMS License 1.0
|
|
* @link http://website.orange-management.de
|
|
* @since 1.0.0
|
|
* @codeCoverageIgnore
|
|
*/
|
|
class BaseView extends View
|
|
{
|
|
protected $calendar = [];
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function __construct(ApplicationAbstract $app, RequestAbstract $request, ResponseAbstract $response)
|
|
{
|
|
parent::__construct($app, $request, $response);
|
|
$this->setTemplate('/Modules/Calendar/Theme/Backend/Components/Calendar/mini');
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function render(...$data) : string
|
|
{
|
|
if (empty($data) || $data[0] === null) {
|
|
return '';
|
|
}
|
|
|
|
$this->calendar = $data[0];
|
|
return parent::render();
|
|
}
|
|
}
|