prepare path usage

This commit is contained in:
Dennis Eichhorn 2020-05-16 21:30:15 +02:00
parent 2cf57defd0
commit 7781b5a059

View File

@ -86,6 +86,22 @@ class TextView extends View
*/
private string $tplValue = '';
/**
* Tpl value path
*
* @var string
* @since 1.0.0
*/
private string $tplValuePath = '';
/**
* Text value path
*
* @var string
* @since 1.0.0
*/
private string $textValuePath = '';
/**
* {@inheritdoc}
*/
@ -186,13 +202,15 @@ class TextView extends View
*/
public function render(...$data) : string
{
$this->id = $data[0] ?? '';
$this->name = $data[1] ?? '';
$this->form = $data[2] ?? '';
$this->plain = $data[3] ?? '';
$this->preview = $data[4] ?? '';
$this->tplText = $data[5] ?? '';
$this->tplValue = $data[6] ?? '';
$this->id = $data[0] ?? '';
$this->name = $data[1] ?? '';
$this->form = $data[2] ?? '';
$this->plain = $data[3] ?? '';
$this->preview = $data[4] ?? '';
$this->tplText = $data[5] ?? '';
$this->tplValue = $data[6] ?? '';
$this->tplValuePath = $data[7] ?? '';
$this->textValuePath = $data[8] ?? '';
return parent::render();
}