Builder/Admin/BaseBuilder.php
protected function getDisplayAsColumns()
    {
        $display = $this->getVariable('display');

        // tabs
        if (null == $display || 0 == sizeof($display)) {
            $tabs = $this->getVariable('tabs');

            if (null != $tabs || 0 < sizeof($tabs)) {
                $display = array();

                foreach ($tabs as $tab) {
                    $display = array_merge($display, $tab);
                }
            }
        }

        if (null == $display || 0 == sizeof($display)) {
            return $this->getAllFields();
        }

        if (isset($display[0])) {
            return $display;
        }

        //there is fieldsets
        $return = array();

        foreach ($display as $fieldset => $rows_or_fields) {
            foreach ($rows_or_fields as $fields) {
                if (is_array($fields)) { //It s a row
                    $return = array_merge($return, $fields);
                } else {
                    $return[$fields] = $fields;
                }
            }
        }

        return $return;
    }
protected function getDisplayAsColumns()
    {
        $display = $this->getVariable('display');

        // tabs
        if (null == $display || 0 == sizeof($display)) {
            $tabs = $this->getVariable('tabs');

            if (null != $tabs || 0 < sizeof($tabs)) {
                $display = array();

                foreach ($tabs as $tab) {
                    $display = array_merge($display, $tab);
                }
            }
        }

        if (null == $display || 0 == sizeof($display)) {
            return $this->getAllFields();
        }

        if (isset($display[0])) {
            return $display;
        }

        //there is fieldsets
        $return = array();

        foreach ($display as $fieldset => $rows_or_fields) {
            foreach ($rows_or_fields as $fields) {
                if (is_array($fields)) { //It s a row
                    $return = array_merge($return, $fields);
                } else {
                    $return[$fields] = $fields;
                }
            }
        }

        return $return;
    }
protected function getDisplayAsColumns ( ) { $ display = $ this -> getVariable ( 'display' ) ; // tabs if ( null == $ display || 0 == sizeof ( $ display ) ) { $ tabs = $ this -> getVariable ( 'tabs' ) ; if ( null != $ tabs || 0 < sizeof ( $ tabs ) ) { $ display = array ( ) ; foreach ( $ tabs as $ tab ) { $ display = array_merge ( $ display , $ tab ) ; } } } if ( null == $ display || 0 == sizeof ( $ display ) ) { return $ this -> getAllFields ( ) ; } if ( isset ( $ display [ 0 ] ) ) { return $ display ; } //there is fieldsets $ return = array ( ) ; foreach ( $ display as $ fieldset => $ rows_or_fields ) { foreach ( $ rows_or_fields as $ fields ) { if ( is_array ( $ fields ) ) { //It s a row $ return = array_merge ( $ return , $ fields ) ; } else { $ return [ $ fields ] = $ fields ; } } } return $ return ; }
Extract from the displays arrays of fieldset to keep only columns

@return array
Extract from the displays arrays of fieldset to keep only columns