protected function setMultipleColPosValues($parserRows, &$colPosValues, $layout)
    {
        if (is_array($parserRows)) {
            foreach ($parserRows as $parserRow) {
                if (is_array($parserRow['columns.']) && !empty($parserRow['columns.'])) {
                    foreach ($parserRow['columns.'] as $parserColumns) {
                        $name = $this->languageService->sL($parserColumns['name']);
                        if (isset($parserColumns['colPos']) && $parserColumns['colPos'] !== '') {
                            $columnKey = (int)$parserColumns['colPos'];
                            $colPosValues[$columnKey] = [
                                'name'       => $name,
                                'allowed'    => $layout['allowed'][$columnKey],
                                'disallowed' => $layout['disallowed'][$columnKey],
                                'maxitems'   => $layout['maxitems'][$columnKey],
                            ];
                        } else {
                            $colPosValues[32768] = [
                                'name'       => $this->languageService->getLL('notAssigned'),
                                'allowed'    => '',
                                'disallowed' => '*',
                                'maxitems'   => 0,
                            ];
                        }
                    }
                }
            }
        }
    }
protected function setMultipleColPosValues($parserRows, &$colPosValues, $layout)
    {
        if (is_array($parserRows)) {
            foreach ($parserRows as $parserRow) {
                if (is_array($parserRow['columns.']) && !empty($parserRow['columns.'])) {
                    foreach ($parserRow['columns.'] as $parserColumns) {
                        $name = $this->languageService->sL($parserColumns['name']);
                        if (isset($parserColumns['colPos']) && $parserColumns['colPos'] !== '') {
                            $columnKey = (int)$parserColumns['colPos'];
                            $colPosValues[$columnKey] = [
                                'name'       => $name,
                                'allowed'    => $layout['allowed'][$columnKey],
                                'disallowed' => $layout['disallowed'][$columnKey],
                                'maxitems'   => $layout['maxitems'][$columnKey],
                            ];
                        } else {
                            $colPosValues[32768] = [
                                'name'       => $this->languageService->getLL('notAssigned'),
                                'allowed'    => '',
                                'disallowed' => '*',
                                'maxitems'   => 0,
                            ];
                        }
                    }
                }
            }
        }
    }
protected function setMultipleColPosValues ( $ parserRows , & $ colPosValues , $ layout ) { if ( is_array ( $ parserRows ) ) { foreach ( $ parserRows as $ parserRow ) { if ( is_array ( $ parserRow [ 'columns.' ] ) && ! empty ( $ parserRow [ 'columns.' ] ) ) { foreach ( $ parserRow [ 'columns.' ] as $ parserColumns ) { $ name = $ this -> languageService -> sL ( $ parserColumns [ 'name' ] ) ; if ( isset ( $ parserColumns [ 'colPos' ] ) && $ parserColumns [ 'colPos' ] !== '' ) { $ columnKey = ( int ) $ parserColumns [ 'colPos' ] ; $ colPosValues [ $ columnKey ] = [ 'name' => $ name , 'allowed' => $ layout [ 'allowed' ] [ $ columnKey ] , 'disallowed' => $ layout [ 'disallowed' ] [ $ columnKey ] , 'maxitems' => $ layout [ 'maxitems' ] [ $ columnKey ] , ] ; } else { $ colPosValues [ 32768 ] = [ 'name' => $ this -> languageService -> getLL ( 'notAssigned' ) , 'allowed' => '' , 'disallowed' => '*' , 'maxitems' => 0 , ] ; } } } } } }
Sets column positions based on a selected gridelement layout

@param array $parserRows : The parsed rows of the gridelement layout
@param array $colPosValues : The column positions that have been found for that layout
@param array $layout
@return void
Sets column positions based on a selected gridelement layout