Community Forums Today's Posts     Member List     Archive    
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
    Jan 2010
    Location
    Germany
    Posts
    2,038

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
    Replies: 626
    Last Post: 15-05-2013, 12:34
  2. TeamSpeak 3 PHP Framework
    By danger89 in forum General Questions
    Replies: 3
    Last Post: 11-06-2012, 16:40
  3. TS3 PHP Framework - Begginer Tutorial / How To
    By codewarrioraq in forum General Questions
    Replies: 4
    Last Post: 09-05-2012, 17:36
  4. Teamspeak, PHP Framework?
    By mario2027 in forum General Questions
    Replies: 1
    Last Post: 21-12-2010, 09:30

Posting Permissions

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