public function getGroups()
    {
        $groups = [];

        foreach ($this->rootlineElements as $rootlineElement) {
            $rootlineElementGroups = $rootlineElement->getGroups();
            $groups = array_merge($groups, $rootlineElementGroups);
        }

        $groups = $this->cleanGroupArray($groups);

        return $groups;
    }
public function getGroups()
    {
        $groups = [];

        foreach ($this->rootlineElements as $rootlineElement) {
            $rootlineElementGroups = $rootlineElement->getGroups();
            $groups = array_merge($groups, $rootlineElementGroups);
        }

        $groups = $this->cleanGroupArray($groups);

        return $groups;
    }
public function getGroups ( ) { $ groups = [ ] ; foreach ( $ this -> rootlineElements as $ rootlineElement ) { $ rootlineElementGroups = $ rootlineElement -> getGroups ( ) ; $ groups = array_merge ( $ groups , $ rootlineElementGroups ) ; } $ groups = $ this -> cleanGroupArray ( $ groups ) ; return $ groups ; }
Gets a the groups in the Access Rootline.

@return array An array of sorted, unique user group IDs required to access a page.
Gets a the groups in the Access Rootline .