mirror of
https://github.com/Karaka-Management/oms-Editor.git
synced 2026-01-12 09:38:42 +00:00
43 lines
966 B
PHP
43 lines
966 B
PHP
<?php
|
|
/**
|
|
* Orange Management
|
|
*
|
|
* PHP Version 7.1
|
|
*
|
|
* @category TBD
|
|
* @package TBD
|
|
* @copyright Dennis Eichhorn
|
|
* @license OMS License 1.0
|
|
* @version 1.0.0
|
|
* @link http://orange-management.com
|
|
*/
|
|
declare(strict_types = 1);
|
|
|
|
namespace Modules\Editor\Theme\Backend\Components\Editor;
|
|
|
|
use phpOMS\Views\View;
|
|
use phpOMS\ApplicationAbstract;
|
|
use phpOMS\Message\RequestAbstract;
|
|
use phpOMS\Message\ResponseAbstract;
|
|
|
|
class TextView extends View
|
|
{
|
|
private $id = '';
|
|
|
|
public function __construct(ApplicationAbstract $app, RequestAbstract $request, ResponseAbstract $response)
|
|
{
|
|
parent::__construct($app, $request, $response);
|
|
$this->setTemplate('/Modules/Editor/Theme/Backend/Components/Editor/inline-editor');
|
|
}
|
|
|
|
public function getId() : string
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
public function render(...$data) : string
|
|
{
|
|
$this->id = $data[0];
|
|
return parent::render();
|
|
}
|
|
} |