summaryrefslogtreecommitdiffstats
path: root/includes/HybridAuth/User.php
diff options
context:
space:
mode:
authorBlueRaja <BlueRaja.admin@gmail.com>2013-06-01 20:10:36 -0500
committerBlueRaja <BlueRaja.admin@gmail.com>2013-06-01 20:10:36 -0500
commit951330c9f83c8c8ee98f65fdccb5797e2e59d1f3 (patch)
treefc7b196ca0d91c1c71dcd945aa9667c7af0134fa /includes/HybridAuth/User.php
parente58a3b8b3702b22c903b02a9b4fa1020d6797459 (diff)
downloadpathery-951330c9f83c8c8ee98f65fdccb5797e2e59d1f3.tar.xz
A partial commit of the auth stuff, in case my upcoming changes break anything
Diffstat (limited to 'includes/HybridAuth/User.php')
-rw-r--r--includes/HybridAuth/User.php31
1 files changed, 31 insertions, 0 deletions
diff --git a/includes/HybridAuth/User.php b/includes/HybridAuth/User.php
new file mode 100644
index 0000000..05bb402
--- /dev/null
+++ b/includes/HybridAuth/User.php
@@ -0,0 +1,31 @@
+<?php
+/*!
+* HybridAuth
+* http://hybridauth.sourceforge.net | http://github.com/hybridauth/hybridauth
+* (c) 2009-2012, HybridAuth authors | http://hybridauth.sourceforge.net/licenses.html
+*/
+
+/**
+ * The Hybrid_User class represents the current loggedin user
+ */
+class Hybrid_User
+{
+ /* The ID (name) of the connected provider */
+ public $providerId = NULL;
+
+ /* timestamp connection to the provider */
+ public $timestamp = NULL;
+
+ /* user profile, containts the list of fields available in the normalized user profile structure used by HybridAuth. */
+ public $profile = NULL;
+
+ /**
+ * inisialize the user object,
+ */
+ function __construct()
+ {
+ $this->timestamp = time();
+
+ $this->profile = new Hybrid_User_Profile();
+ }
+}