: 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 AbstractChooser extends AbstractFieldHidden {
protected $hasClear = true;
abstract protected function addScript();
protected function fetchElement() {
$this->renderRelatedFields();
return Html::tag('div', array(
'class' => 'n2_field_chooser ' . $this->class
), $this->pre() . parent::fetchElement() . $this->field() . $this->post());
protected function pre() {
protected function field() {
$style = 'width: ' . $this->width . 'px;';
return '<div class="n2_field_chooser__label" style="' . $style . '"></div>';
protected function post() {
$html .= Html::tag('a', array(
'class' => 'n2_field_chooser__clear'
), Html::tag('i', array('class' => 'ssi_16 ssi_16--circularremove'), ''));
$html .= Html::tag('a', array(
'class' => 'n2_field_chooser__choose'
), '<i class="ssi_16 ssi_16--plus"></i>');
public function setHasClear($hasClear) {
$this->hasClear = $hasClear;
public function setWidth($width) {