TeamSpeak3/Node/Client.php
public function memberOf()
    {
        $groups = array($this->getParent()->channelGroupGetById($this["client_channel_group_id"]));

        foreach (explode(",", $this["client_servergroups"]) as $sgid) {
            $groups[] = $this->getParent()->serverGroupGetById($sgid);
        }

        return $groups;
    }
public function memberOf()
    {
        $groups = array($this->getParent()->channelGroupGetById($this["client_channel_group_id"]));

        foreach (explode(",", $this["client_servergroups"]) as $sgid) {
            $groups[] = $this->getParent()->serverGroupGetById($sgid);
        }

        return $groups;
    }
public function memberOf ( ) { $ groups = array ( $ this -> getParent ( ) -> channelGroupGetById ( $ this [ "client_channel_group_id" ] ) ) ; foreach ( explode ( "," , $ this [ "client_servergroups" ] ) as $ sgid ) { $ groups [ ] = $ this -> getParent ( ) -> serverGroupGetById ( $ sgid ) ; } return $ groups ; }
Returns all server and channel groups the client is currently residing in.

@return array
Returns all server and channel groups the client is currently residing in .