summaryrefslogtreecommitdiffstats
path: root/includes/HybridAuth/User_Profile.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/HybridAuth/User_Profile.php')
-rw-r--r--includes/HybridAuth/User_Profile.php84
1 files changed, 84 insertions, 0 deletions
diff --git a/includes/HybridAuth/User_Profile.php b/includes/HybridAuth/User_Profile.php
new file mode 100644
index 0000000..4155d8e
--- /dev/null
+++ b/includes/HybridAuth/User_Profile.php
@@ -0,0 +1,84 @@
+<?php
+/*!
+* HybridAuth
+* http://hybridauth.sourceforge.net | http://github.com/hybridauth/hybridauth
+* (c) 2009-2012, HybridAuth authors | http://hybridauth.sourceforge.net/licenses.html
+*/
+
+/**
+ * Hybrid_User_Profile object represents the current logged in user profile.
+ * The list of fields available in the normalized user profile structure used by HybridAuth.
+ *
+ * The Hybrid_User_Profile object is populated with as much information about the user as
+ * HybridAuth was able to pull from the given API or authentication provider.
+ *
+ * http://hybridauth.sourceforge.net/userguide/Profile_Data_User_Profile.html
+ */
+class Hybrid_User_Profile
+{
+ /* The Unique user's ID on the connected provider */
+ public $identifier = NULL;
+
+ /* User website, blog, web page */
+ public $webSiteURL = NULL;
+
+ /* URL link to profile page on the IDp web site */
+ public $profileURL = NULL;
+
+ /* URL link to user photo or avatar */
+ public $photoURL = NULL;
+
+ /* User dispalyName provided by the IDp or a concatenation of first and last name. */
+ public $displayName = NULL;
+
+ /* A short about_me */
+ public $description = NULL;
+
+ /* User's first name */
+ public $firstName = NULL;
+
+ /* User's last name */
+ public $lastName = NULL;
+
+ /* male or female */
+ public $gender = NULL;
+
+ /* language */
+ public $language = NULL;
+
+ /* User age, we dont calculate it. we return it as is if the IDp provide it. */
+ public $age = NULL;
+
+ /* User birth Day */
+ public $birthDay = NULL;
+
+ /* User birth Month */
+ public $birthMonth = NULL;
+
+ /* User birth Year */
+ public $birthYear = NULL;
+
+ /* User email. Note: not all of IDp garant access to the user email */
+ public $email = NULL;
+
+ /* Verified user email. Note: not all of IDp garant access to verified user email */
+ public $emailVerified = NULL;
+
+ /* phone number */
+ public $phone = NULL;
+
+ /* complete user address */
+ public $address = NULL;
+
+ /* user country */
+ public $country = NULL;
+
+ /* region */
+ public $region = NULL;
+
+ /** city */
+ public $city = NULL;
+
+ /* Postal code */
+ public $zip = NULL;
+}