mirror of
https://github.com/e107inc/e107.git
synced 2025-10-22 18:26:19 +02:00
55 lines
1.2 KiB
PHP
55 lines
1.2 KiB
PHP
<?php
|
|
/**
|
|
* HybridAuth
|
|
* http://hybridauth.sourceforge.net | http://github.com/hybridauth/hybridauth
|
|
* (c) 2009-2014, 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
|
|
* @var Numeric/String
|
|
*/
|
|
public $id = NULL;
|
|
|
|
/**
|
|
* activity date of creation
|
|
* @var timestamp
|
|
*/
|
|
public $date = NULL;
|
|
|
|
/**
|
|
* activity content as a string
|
|
* @var String
|
|
*/
|
|
public $text = NULL;
|
|
|
|
/**
|
|
* user who created the activity
|
|
* @var object
|
|
*/
|
|
public $user = NULL;
|
|
|
|
/**
|
|
* Constructor
|
|
*/
|
|
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;
|
|
}
|
|
}
|