TeamSpeak3/Node/Server.php
public function channelSpacerCreate(
        $ident,
        $type = TeamSpeak3::SPACER_SOLIDLINE,
        $align = TeamSpeak3::SPACER_ALIGN_REPEAT,
        $order = null,
        $maxclients = 0
    ) {
        $properties = array(
            "channel_name_phonetic" => "channel spacer",
            "channel_codec" => TeamSpeak3::CODEC_OPUS_VOICE,
            "channel_codec_quality" => 0x00,
            "channel_flag_permanent" => true,
            "channel_flag_maxclients_unlimited" => false,
            "channel_flag_maxfamilyclients_unlimited" => false,
            "channel_flag_maxfamilyclients_inherited" => false,
            "channel_maxclients" => $maxclients,
            "channel_order" => $order,
        );

        switch ($align) {
            case TeamSpeak3::SPACER_ALIGN_REPEAT:
                $properties["channel_name"] = "[*spacer" . strval($ident) . "]";
                break;

            case TeamSpeak3::SPACER_ALIGN_LEFT:
                $properties["channel_name"] = "[lspacer" . strval($ident) . "]";
                break;

            case TeamSpeak3::SPACER_ALIGN_RIGHT:
                $properties["channel_name"] = "[rspacer" . strval($ident) . "]";
                break;

            case TeamSpeak3::SPACER_ALIGN_CENTER:
                $properties["channel_name"] = "[cspacer" . strval($ident) . "]";
                break;

            default:
                throw new Ts3Exception("missing required parameter", 0x606);
                break;
        }

        switch ($type) {
            case (string)TeamSpeak3::SPACER_SOLIDLINE:
                $properties["channel_name"] .= "___";
                break;

            case (string)TeamSpeak3::SPACER_DASHLINE:
                $properties["channel_name"] .= "---";
                break;

            case (string)TeamSpeak3::SPACER_DOTLINE:
                $properties["channel_name"] .= "...";
                break;

            case (string)TeamSpeak3::SPACER_DASHDOTLINE:
                $properties["channel_name"] .= "-.-";
                break;

            case (string)TeamSpeak3::SPACER_DASHDOTDOTLINE:
                $properties["channel_name"] .= "-..";
                break;

            default:
                $properties["channel_name"] .= strval($type);
                break;
        }

        return $this->channelCreate($properties);
    }
public function channelSpacerCreate(
        $ident,
        $type = TeamSpeak3::SPACER_SOLIDLINE,
        $align = TeamSpeak3::SPACER_ALIGN_REPEAT,
        $order = null,
        $maxclients = 0
    ) {
        $properties = array(
            "channel_name_phonetic" => "channel spacer",
            "channel_codec" => TeamSpeak3::CODEC_OPUS_VOICE,
            "channel_codec_quality" => 0x00,
            "channel_flag_permanent" => true,
            "channel_flag_maxclients_unlimited" => false,
            "channel_flag_maxfamilyclients_unlimited" => false,
            "channel_flag_maxfamilyclients_inherited" => false,
            "channel_maxclients" => $maxclients,
            "channel_order" => $order,
        );

        switch ($align) {
            case TeamSpeak3::SPACER_ALIGN_REPEAT:
                $properties["channel_name"] = "[*spacer" . strval($ident) . "]";
                break;

            case TeamSpeak3::SPACER_ALIGN_LEFT:
                $properties["channel_name"] = "[lspacer" . strval($ident) . "]";
                break;

            case TeamSpeak3::SPACER_ALIGN_RIGHT:
                $properties["channel_name"] = "[rspacer" . strval($ident) . "]";
                break;

            case TeamSpeak3::SPACER_ALIGN_CENTER:
                $properties["channel_name"] = "[cspacer" . strval($ident) . "]";
                break;

            default:
                throw new Ts3Exception("missing required parameter", 0x606);
                break;
        }

        switch ($type) {
            case (string)TeamSpeak3::SPACER_SOLIDLINE:
                $properties["channel_name"] .= "___";
                break;

            case (string)TeamSpeak3::SPACER_DASHLINE:
                $properties["channel_name"] .= "---";
                break;

            case (string)TeamSpeak3::SPACER_DOTLINE:
                $properties["channel_name"] .= "...";
                break;

            case (string)TeamSpeak3::SPACER_DASHDOTLINE:
                $properties["channel_name"] .= "-.-";
                break;

            case (string)TeamSpeak3::SPACER_DASHDOTDOTLINE:
                $properties["channel_name"] .= "-..";
                break;

            default:
                $properties["channel_name"] .= strval($type);
                break;
        }

        return $this->channelCreate($properties);
    }
Creates a new channel spacer and returns the new ID. The first parameter $ident is used to create a
unique spacer name on the virtual server.

@param  string $ident
@param  mixed $type
@param  integer $align
@param  integer $order
@param  integer $maxclients
@throws Ts3Exception
@return integer