public function getGroupsDescription()
    {
        if (class_exists(Subsite::class)) {
            Subsite::disable_subsite_filter(true);
        }

        // Get the member's groups, if any
        $groups = $this->owner->Groups();
        if ($groups->Count()) {
            // Collect the group names
            $groupNames = array();
            foreach ($groups as $group) {
                /** @var Group $group */
                $groupNames[] = html_entity_decode($group->getTreeTitle());
            }
            // return a csv string of the group names, sans-markup
            $result = preg_replace("#</?[^>]>#", '', implode(', ', $groupNames));
        } else {
            // If no groups then return a status label
            $result = _t(__CLASS__ . '.NOGROUPS', 'Not in a Security Group');
        }

        if (class_exists(Subsite::class)) {
            Subsite::disable_subsite_filter(false);
        }
        return $result;
    }
public function getGroupsDescription()
    {
        if (class_exists(Subsite::class)) {
            Subsite::disable_subsite_filter(true);
        }

        // Get the member's groups, if any
        $groups = $this->owner->Groups();
        if ($groups->Count()) {
            // Collect the group names
            $groupNames = array();
            foreach ($groups as $group) {
                /** @var Group $group */
                $groupNames[] = html_entity_decode($group->getTreeTitle());
            }
            // return a csv string of the group names, sans-markup
            $result = preg_replace("#</?[^>]>#", '', implode(', ', $groupNames));
        } else {
            // If no groups then return a status label
            $result = _t(__CLASS__ . '.NOGROUPS', 'Not in a Security Group');
        }

        if (class_exists(Subsite::class)) {
            Subsite::disable_subsite_filter(false);
        }
        return $result;
    }
public function getGroupsDescription ( ) { if ( class_exists ( Subsite :: class ) ) { Subsite :: disable_subsite_filter ( true ) ; } // Get the member's groups, if any $ groups = $ this -> owner -> Groups ( ) ; if ( $ groups -> Count ( ) ) { // Collect the group names $ groupNames = array ( ) ; foreach ( $ groups as $ group ) { /** @var Group $group */ $ groupNames [ ] = html_entity_decode ( $ group -> getTreeTitle ( ) ) ; } // return a csv string of the group names, sans-markup $ result = preg_replace ( "#</?[^>]>#" , '' , implode ( ', ' , $ groupNames ) ) ; } else { // If no groups then return a status label $ result = _t ( __CLASS__ . '.NOGROUPS' , 'Not in a Security Group' ) ; } if ( class_exists ( Subsite :: class ) ) { Subsite :: disable_subsite_filter ( false ) ; } return $ result ; }
Builds a comma separated list of member group names for a given Member.

@return string
Builds a comma separated list of member group names for a given Member .