summaryrefslogtreecommitdiffstats
path: root/includes/HybridAuth/User_Activity.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_Activity.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_Activity.php')
-rw-r--r--includes/HybridAuth/User_Activity.php39
1 files changed, 39 insertions, 0 deletions
diff --git a/includes/HybridAuth/User_Activity.php b/includes/HybridAuth/User_Activity.php
new file mode 100644
index 0000000..f3cd6a6
--- /dev/null
+++ b/includes/HybridAuth/User_Activity.php
@@ -0,0 +1,39 @@
+<?php
+/*!
+* HybridAuth
+* http://hybridauth.sourceforge.net | http://github.com/hybridauth/hybridauth
+* (c) 2009-2012, HybridAuth authors | http://hybridauth.sourceforge.net/licenses.html
+*/
+
+/**
+ * Hybrid_User_Activity
+ *
+ * used to provider the connected user activity stream on a standardized structure across supported social apis.
+ *
+ * http://hybridauth.sourceforge.net/userguide/Profile_Data_User_Activity.html
+ */
+class Hybrid_User_Activity
+{
+ /* activity id on the provider side, usually given as integer */
+ public $id = NULL;
+
+ /* activity date of creation */
+ public $date = NULL;
+
+ /* activity content as a string */
+ public $text = NULL;
+
+ /* user who created the activity */
+ public $user = NULL;
+
+ public function __construct()
+ {
+ $this->user = new stdClass();
+
+ // typically, we should have a few information about the user who created the event from social apis
+ $this->user->identifier = NULL;
+ $this->user->displayName = NULL;
+ $this->user->profileURL = NULL;
+ $this->user->photoURL = NULL;
+ }
+}