lib/mail/GroupsToDisplay.php
public function setGroupsToDisplay($groups_to_display)
    {
        if (!is_array($groups_to_display)) {
            throw new TypeException('$groups_to_display must be an array.');
        }
        if (is_array($groups_to_display)) {
            $this->groups_to_display = $groups_to_display;
        } else {
            $this->groups_to_display[] = $groups_to_display;
        }
    }
public function setGroupsToDisplay($groups_to_display)
    {
        if (!is_array($groups_to_display)) {
            throw new TypeException('$groups_to_display must be an array.');
        }
        if (is_array($groups_to_display)) {
            $this->groups_to_display = $groups_to_display;
        } else {
            $this->groups_to_display[] = $groups_to_display;
        }
    }
public function setGroupsToDisplay ( $ groups_to_display ) { if ( ! is_array ( $ groups_to_display ) ) { throw new TypeException ( '$groups_to_display must be an array.' ) ; } if ( is_array ( $ groups_to_display ) ) { $ this -> groups_to_display = $ groups_to_display ; } else { $ this -> groups_to_display [ ] = $ groups_to_display ; } }
Add a group to display on a GroupsToDisplay object

@param int|int[] $groups_to_display The unsubscribe group(s)
that you would like to be
displayed on the unsubscribe
preferences page

@throws TypeException
@return null
Add a group to display on a GroupsToDisplay object