#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2013
    Posts
    1
    Rep Power
    0

    How to access 'VerificationStatus' in this PHP object?


    Hi guys I need to get the VerificationStatus from this PHP object, does anyone know how I should do this?
    Code:
    		Guzzle\Service\Resource\Model Object
    		(
    		    [structure:protected] => 
    		    [data:protected] => Array
    		        (
    		            [VerificationAttributes] => Array
    		                (
    		                    [user@gmail.com] => Array
    		                        (
    		                            [VerificationStatus] => Success
    		                        )
    
    		                )
    
    		            [ResponseMetadata] => Array
    		                (
    		                    [RequestId] => csdgdf62-fdsg-dfgdf-23-bf91f933ab69
    		                )
    
    		        )
    
    		)
    Hope you can help!
    Thanks,
    Joe
    Last edited by ManiacDan; October 14th, 2013 at 04:10 PM. Reason: added tags
  2. #2
  3. Sarcky
    Devshed Supreme Being (6500+ posts)

    Join Date
    Oct 2006
    Location
    Pennsylvania, USA
    Posts
    10,908
    Rep Power
    6352
    "data" is a protected variable, so you can't get it out without having a getter function or being inside the object.

    If you're inside the object, it would be:
    PHP Code:
    $this->data['VerificationAttributes']['user@gmail.com']['VerificationStatus'
    HEY! YOU! Read the New User Guide and Forum Rules

    "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -Benjamin Franklin

    "The greatest tragedy of this changing society is that people who never knew what it was like before will simply assume that this is the way things are supposed to be." -2600 Magazine, Fall 2002

    Think we're being rude? Maybe you asked a bad question or you're a Help Vampire. Trying to argue intelligently? Please read this.
  4. #3
  5. --
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Jul 2012
    Posts
    3,959
    Rep Power
    1014
    Originally Posted by joecc
    Hi guys I need to get the VerificationStatus from this PHP object, does anyone know how I should do this?
    The source code knows.
    The 6 worst sins of security ē How to (properly) access a MySQL database with PHP

    Why canít I use certain words like "drop" as part of my Security Question answers?
    There are certain words used by hackers to try to gain access to systems and manipulate data; therefore, the following words are restricted: "select," "delete," "update," "insert," "drop" and "null".

IMN logo majestic logo threadwatch logo seochat tools logo