public function getAssignedMembers()
    {
        $list   = new ArrayList();
        $groups = $this->Groups();

        $list->merge($this->Users());

        foreach ($groups as $group) {
            $list->merge($group->Members());
        }

        $list->removeDuplicates();
        return $list;
    }
public function getAssignedMembers()
    {
        $list   = new ArrayList();
        $groups = $this->Groups();

        $list->merge($this->Users());

        foreach ($groups as $group) {
            $list->merge($group->Members());
        }

        $list->removeDuplicates();
        return $list;
    }
public function getAssignedMembers ( ) { $ list = new ArrayList ( ) ; $ groups = $ this -> Groups ( ) ; $ list -> merge ( $ this -> Users ( ) ) ; foreach ( $ groups as $ group ) { $ list -> merge ( $ group -> Members ( ) ) ; } $ list -> removeDuplicates ( ) ; return $ list ; }
Returns a list of all Members that are assigned to this instance, either directly or via a group.

@todo   This could be made more efficient.
@return ArrayList
Returns a list of all Members that are assigned to this instance either directly or via a group .