MetaModels\DcGeneral\Dca\Builder\Builder::parsePanelRow PHP Метод

parsePanelRow() защищенный Метод

Parse a single row with all elements.
protected parsePanelRow ( array $fields, ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\View\PanelRowInterface $panelRow ) : void
$fields array A list of fields for adding to the row.
$panelRow ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\View\PanelRowInterface The row container itself.
Результат void
    protected function parsePanelRow($fields, PanelRowInterface $panelRow)
    {
        // Parse each type.
        foreach ($fields as $field) {
            switch ($field) {
                case 'sort':
                    $this->parsePanelSort($panelRow);
                    break;
                case 'limit':
                    $this->parsePanelLimit($panelRow);
                    break;
                case 'filter':
                    $this->parsePanelFilter($panelRow);
                    break;
                case 'search':
                    $this->parsePanelSearch($panelRow);
                    break;
                case 'submit':
                    $this->parsePanelSubmit($panelRow);
                    break;
                default:
                    break;
            }
        }
    }