: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
namespace Nextend\Framework\Form;
use Nextend\Framework\Form\Insert\AbstractInsert;
abstract class AbstractFieldset implements ContainerContainedInterface {
* @var ContainedInterface;
private $previous, $next;
public function getPrevious() {
public function setPrevious($element = null) {
$this->previous = $element;
public function getNext() {
public function setNext($element = null) {
$element->setPrevious($this);
public function remove() {
* @var ContainerInterface
protected $controlName = '';
* @param ContainerInterface|AbstractInsert $insertAt
* @param boolean|string $label
* @param array $parameters
public function __construct($insertAt, $name, $label = false, $parameters = array()) {
if ($insertAt instanceof ContainerInterface) {
$this->parent = $insertAt;
$this->parent->addElement($this);
} else if ($insertAt instanceof AbstractInsert) {
$this->parent = $insertAt->insert($this);
$this->controlName = $this->parent->getControlName();
foreach ($parameters as $option => $value) {
$option = 'set' . $option;
$this->{$option}($value);
public function render() {
$this->renderContainer();
* @param AbstractField $element
public function decorateElement($element) {
$element->displayElement();
public function hasLabel() {
return !empty($this->label);
public function getName() {
public function getForm() {
return $this->parent->getForm();
public function getControlName() {
return $this->controlName;
* @param string $controlName
public function setControlName($controlName) {
$this->controlName = $controlName;
public function hasFields() {
return !empty($this->flattenElements);
public function setClass($class) {