public function snapshotCreate($mode = Teamspeak::SNAPSHOT_STRING)
    {
        $snapshot = $this->request("serversnapshotcreate")->toString(false);

        switch ($mode) {
            case Teamspeak::SNAPSHOT_BASE64:
                return $snapshot->toBase64();
                break;

            case Teamspeak::SNAPSHOT_HEXDEC:
                return $snapshot->toHex();
                break;

            default:
                return (string)$snapshot;
                break;
        }
    }
public function snapshotCreate($mode = Teamspeak::SNAPSHOT_STRING)
    {
        $snapshot = $this->request("serversnapshotcreate")->toString(false);

        switch ($mode) {
            case Teamspeak::SNAPSHOT_BASE64:
                return $snapshot->toBase64();
                break;

            case Teamspeak::SNAPSHOT_HEXDEC:
                return $snapshot->toHex();
                break;

            default:
                return (string)$snapshot;
                break;
        }
    }
public function snapshotCreate ( $ mode = Teamspeak :: SNAPSHOT_STRING ) { $ snapshot = $ this -> request ( "serversnapshotcreate" ) -> toString ( false ) ; switch ( $ mode ) { case Teamspeak :: SNAPSHOT_BASE64 : return $ snapshot -> toBase64 ( ) ; break ; case Teamspeak :: SNAPSHOT_HEXDEC : return $ snapshot -> toHex ( ) ; break ; default : return ( string ) $ snapshot ; break ; } }
Creates and returns snapshot data for the selected virtual server.

@param  string $mode
@return string
Creates and returns snapshot data for the selected virtual server .