<?php
 namespace Engine\Form; abstract class Filters_LayoutAbstract { protected $childs = []; protected $options = []; protected $arrangedInputs = []; public function __construct($childs, $options = []){ $this->childs = $childs; $this->options = $options; } public function arrange(){ return $this->arrangedInputs; } protected function extractSections($childs){ $groups = []; foreach($childs as $child){ $groups[$child->getExtraInfo('section')][] = $child; } return $groups; } } 