1 | <?php |
---|
2 | /*! |
---|
3 | * HybridAuth |
---|
4 | * http://hybridauth.sourceforge.net | http://github.com/hybridauth/hybridauth |
---|
5 | * (c) 2009-2012, HybridAuth authors | http://hybridauth.sourceforge.net/licenses.html |
---|
6 | */ |
---|
7 | |
---|
8 | /** |
---|
9 | * Hybrid_User_Profile object represents the current logged in user profile. |
---|
10 | * The list of fields available in the normalized user profile structure used by HybridAuth. |
---|
11 | * |
---|
12 | * The Hybrid_User_Profile object is populated with as much information about the user as |
---|
13 | * HybridAuth was able to pull from the given API or authentication provider. |
---|
14 | * |
---|
15 | * http://hybridauth.sourceforge.net/userguide/Profile_Data_User_Profile.html |
---|
16 | */ |
---|
17 | class Hybrid_User_Profile |
---|
18 | { |
---|
19 | /* The Unique user's ID on the connected provider */ |
---|
20 | public $identifier = NULL; |
---|
21 | |
---|
22 | /* User website, blog, web page */ |
---|
23 | public $webSiteURL = NULL; |
---|
24 | |
---|
25 | /* URL link to profile page on the IDp web site */ |
---|
26 | public $profileURL = NULL; |
---|
27 | |
---|
28 | /* URL link to user photo or avatar */ |
---|
29 | public $photoURL = NULL; |
---|
30 | |
---|
31 | /* User dispalyName provided by the IDp or a concatenation of first and last name. */ |
---|
32 | public $displayName = NULL; |
---|
33 | |
---|
34 | /* A short about_me */ |
---|
35 | public $description = NULL; |
---|
36 | |
---|
37 | /* User's first name */ |
---|
38 | public $firstName = NULL; |
---|
39 | |
---|
40 | /* User's last name */ |
---|
41 | public $lastName = NULL; |
---|
42 | |
---|
43 | /* male or female */ |
---|
44 | public $gender = NULL; |
---|
45 | |
---|
46 | /* language */ |
---|
47 | public $language = NULL; |
---|
48 | |
---|
49 | /* User age, we dont calculate it. we return it as is if the IDp provide it. */ |
---|
50 | public $age = NULL; |
---|
51 | |
---|
52 | /* User birth Day */ |
---|
53 | public $birthDay = NULL; |
---|
54 | |
---|
55 | /* User birth Month */ |
---|
56 | public $birthMonth = NULL; |
---|
57 | |
---|
58 | /* User birth Year */ |
---|
59 | public $birthYear = NULL; |
---|
60 | |
---|
61 | /* User email. Note: not all of IDp garant access to the user email */ |
---|
62 | public $email = NULL; |
---|
63 | |
---|
64 | /* Verified user email. Note: not all of IDp garant access to verified user email */ |
---|
65 | public $emailVerified = NULL; |
---|
66 | |
---|
67 | /* phone number */ |
---|
68 | public $phone = NULL; |
---|
69 | |
---|
70 | /* complete user address */ |
---|
71 | public $address = NULL; |
---|
72 | |
---|
73 | /* user country */ |
---|
74 | public $country = NULL; |
---|
75 | |
---|
76 | /* region */ |
---|
77 | public $region = NULL; |
---|
78 | |
---|
79 | /** city */ |
---|
80 | public $city = NULL; |
---|
81 | |
---|
82 | /* Postal code */ |
---|
83 | public $zip = NULL; |
---|
84 | } |
---|