Forum

Results 1 to 2 of 2
  1. #1
    Join Date
    May 2011
    Posts
    1

    Extraction using the Framework

    Hello,

    Probably a question that has been asked a few times but I cannot for the life of me find an answer either through trial and error myself or online so I thought I would ask here.

    Using the TeamSpeak 3 PHP Framework (Here: http://docs.planetteamspeak.com/ts3/php/framework/) how do I go about extracting the "[stringrotected]"s from commands.

    For example pulling a list of current bans using: request("banlist")->toAssocArray("banid") will return

    Code:
    Array
    (
        [327] => Array
            (
                [banid] => 327
                [ip] => 
                [name] => TeamSpeak3_Helper_String Object
                    (
                        [string:protected] => name
                        [position:protected] => 0
                    )
    
                [uid] => 1.0E+16
                [lastnickname] => 
                [created] => 1329340057
                [duration] => 0
                [invokername] => TeamSpeak3_Helper_String Object
                    (
                        [string:protected] => Test
                        [position:protected] => 0
                    )
    
                [invokercldbid] => 1421
                [invokeruid] => TeamSpeak3_Helper_String Object
                    (
                        [string:protected] => uid
                        [position:protected] => 0
                    )
    
                [reason] => 
                [enforcements] => 0
            )
    )
    But how would I then extract the 'name' and 'invokername' for example?

    Thanks.

  2. #2
    Join Date
    January 2010
    Location
    Germany
    Posts
    2,029

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [API] TS3 PHP Framework
    By ScP in forum Tools / Web Based
    Replies: 1497
    Last Post: November 19th, 2019, 08:32 AM
  2. PHP Framework
    By Multivit4min in forum Permission System
    Replies: 1
    Last Post: June 29th, 2015, 12:28 PM
  3. PHP Framework
    By phil998 in forum Server Support
    Replies: 0
    Last Post: February 25th, 2015, 07:27 PM
  4. QT Framework update from 4.7.2 to 5.2.1
    By SteZZz in forum Off Topic
    Replies: 0
    Last Post: September 26th, 2014, 08:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •