public static function permissionType($type)
    {
        if ($type == Teamspeak::PERM_TYPE_SERVERGROUP) {
            return "Server Group";
        }
        if ($type == Teamspeak::PERM_TYPE_CLIENT) {
            return "Client";
        }
        if ($type == Teamspeak::PERM_TYPE_CHANNEL) {
            return "Channel";
        }
        if ($type == Teamspeak::PERM_TYPE_CHANNELGROUP) {
            return "Channel Group";
        }
        if ($type == Teamspeak::PERM_TYPE_CHANNELCLIENT) {
            return "Channel Client";
        }

        return "Unknown";
    }
public static function permissionType($type)
    {
        if ($type == Teamspeak::PERM_TYPE_SERVERGROUP) {
            return "Server Group";
        }
        if ($type == Teamspeak::PERM_TYPE_CLIENT) {
            return "Client";
        }
        if ($type == Teamspeak::PERM_TYPE_CHANNEL) {
            return "Channel";
        }
        if ($type == Teamspeak::PERM_TYPE_CHANNELGROUP) {
            return "Channel Group";
        }
        if ($type == Teamspeak::PERM_TYPE_CHANNELCLIENT) {
            return "Channel Client";
        }

        return "Unknown";
    }
public static function permissionType ( $ type ) { if ( $ type == Teamspeak :: PERM_TYPE_SERVERGROUP ) { return "Server Group" ; } if ( $ type == Teamspeak :: PERM_TYPE_CLIENT ) { return "Client" ; } if ( $ type == Teamspeak :: PERM_TYPE_CHANNEL ) { return "Channel" ; } if ( $ type == Teamspeak :: PERM_TYPE_CHANNELGROUP ) { return "Channel Group" ; } if ( $ type == Teamspeak :: PERM_TYPE_CHANNELCLIENT ) { return "Channel Client" ; } return "Unknown" ; }
Converts a given permission type ID to a human readable name.

@param  integer $type
@return string
Converts a given permission type ID to a human readable name .