: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
namespace Nextend\Framework\Form\Element;
use Nextend\Framework\View\Html;
abstract class AbstractChooserText extends AbstractFieldHidden {
protected $hasClear = true;
protected $type = 'text';
abstract protected function addScript();
protected function fetchElement() {
$this->renderRelatedFields();
return Html::tag('div', array(
'class' => 'n2_field_text' . $this->class
), $this->pre() . $this->field() . $this->post());
protected function pre() {
protected function field() {
if ($this->type === 'hidden') {
return Html::tag('input', array(
'style' => 'width: ' . $this->width . 'px;',
return Html::tag('input', array(
'name' => $this->getFieldName(),
'value' => $this->getValue(),
'style' => 'width: ' . $this->width . 'px;',
protected function post() {
$html .= Html::tag('a', array(
'class' => 'n2_field_text__clear',
), Html::tag('i', array('class' => 'ssi_16 ssi_16--circularremove'), ''));
$html .= Html::tag('a', array(
'class' => 'n2_field_text__choose',
'aria-label' => n2_('Choose')
), '<i class="ssi_16 ssi_16--plus"></i>');
public function setHasClear($hasClear) {
$this->hasClear = $hasClear;
public function setWidth($width) {