src/ngrest/render/RenderCrud.php
private function evalGroupFields($pointerElements)
    {
        if (!$pointerElements) {
            return [];
        }
        
        $names = [];
        foreach ($pointerElements as $elmn) {
            $names[$elmn['name']] = $elmn['name'];
        }
        
        foreach ($this->getConfig()->getAttributeGroups()as $group) {
            foreach ($group[0] as $item) {
                if (in_array($item, $names)) {
                    unset($names[$item]);
                }
            }
        }
        
        $groups[] = [$names, '__default', 'collapsed' => true, 'is_default' => true];
        
        
        return array_merge($groups, $this->getConfig()->getAttributeGroups());
    }
private function evalGroupFields($pointerElements)
    {
        if (!$pointerElements) {
            return [];
        }
        
        $names = [];
        foreach ($pointerElements as $elmn) {
            $names[$elmn['name']] = $elmn['name'];
        }
        
        foreach ($this->getConfig()->getAttributeGroups()as $group) {
            foreach ($group[0] as $item) {
                if (in_array($item, $names)) {
                    unset($names[$item]);
                }
            }
        }
        
        $groups[] = [$names, '__default', 'collapsed' => true, 'is_default' => true];
        
        
        return array_merge($groups, $this->getConfig()->getAttributeGroups());
    }
private function evalGroupFields ( $ pointerElements ) { if ( ! $ pointerElements ) { return [ ] ; } $ names = [ ] ; foreach ( $ pointerElements as $ elmn ) { $ names [ $ elmn [ 'name' ] ] = $ elmn [ 'name' ] ; } foreach ( $ this -> getConfig ( ) -> getAttributeGroups ( ) as $ group ) { foreach ( $ group [ 0 ] as $ item ) { if ( in_array ( $ item , $ names ) ) { unset ( $ names [ $ item ] ) ; } } } $ groups [ ] = [ $ names , '__default' , 'collapsed' => true , 'is_default' => true ] ; return array_merge ( $ groups , $ this -> getConfig ( ) -> getAttributeGroups ( ) ) ; }
Generate an array for every group withing the given pointer elemenets.

If there is no group defintion, it will generate a "default" group.

@param [type] $pointerElements
@return array
Generate an array for every group withing the given pointer elemenets .