23 lines
532 B
PHP
23 lines
532 B
PHP
<?php
|
||
|
||
namespace kernel\filters;
|
||
|
||
use itguild\forms\builders\SelectBuilder;
|
||
use Itguild\Tables\Filter\Filter;
|
||
use kernel\helpers\Debug;
|
||
|
||
class BootstrapSelectFilterWithPrompt extends Filter
|
||
{
|
||
|
||
public function fetch(): string
|
||
{
|
||
$select = SelectBuilder::build($this->name, [
|
||
'class' => 'form-control',
|
||
'options' => $this->param,
|
||
'value' => $this->value,
|
||
'prompt' => "Не выбрано"
|
||
]);
|
||
|
||
return "<td>" . $select->create()->fetch() . "</td>";
|
||
}
|
||
} |