mirror of
https://github.com/Karaka-Management/oms-Editor.git
synced 2026-02-12 08:28:39 +00:00
prepare path usage
This commit is contained in:
parent
2cf57defd0
commit
7781b5a059
|
|
@ -86,6 +86,22 @@ class TextView extends View
|
||||||
*/
|
*/
|
||||||
private string $tplValue = '';
|
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}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
|
|
@ -186,13 +202,15 @@ class TextView extends View
|
||||||
*/
|
*/
|
||||||
public function render(...$data) : string
|
public function render(...$data) : string
|
||||||
{
|
{
|
||||||
$this->id = $data[0] ?? '';
|
$this->id = $data[0] ?? '';
|
||||||
$this->name = $data[1] ?? '';
|
$this->name = $data[1] ?? '';
|
||||||
$this->form = $data[2] ?? '';
|
$this->form = $data[2] ?? '';
|
||||||
$this->plain = $data[3] ?? '';
|
$this->plain = $data[3] ?? '';
|
||||||
$this->preview = $data[4] ?? '';
|
$this->preview = $data[4] ?? '';
|
||||||
$this->tplText = $data[5] ?? '';
|
$this->tplText = $data[5] ?? '';
|
||||||
$this->tplValue = $data[6] ?? '';
|
$this->tplValue = $data[6] ?? '';
|
||||||
|
$this->tplValuePath = $data[7] ?? '';
|
||||||
|
$this->textValuePath = $data[8] ?? '';
|
||||||
|
|
||||||
return parent::render();
|
return parent::render();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user