-
Notifications
You must be signed in to change notification settings - Fork 5
/
Platform.php
63 lines (47 loc) · 1.77 KB
/
Platform.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?php
abstract class Platform
{
// AUTHENTICATION
abstract public function loadLibraries();
abstract public function login();
abstract public function isLoggedIn();
abstract public function getUser();
public function getSessionParams() {}
// USER API CALLS
abstract public function getUserName();
abstract public function getName($user_id);
public function displayProfilePicture($user_id) {}
public function displayName($user_id) {}
abstract public function getUserInfo($user_id, $fields);
abstract public function getFriends();
abstract public function getFriendsAppUsers();
abstract public function getFriendsNotAppUsers();
abstract public function areFriends($user_id, $friend_id);
// LAYOUT/CONTENT
abstract public function isFeatureEnabled($feature_id);
public function displayLogin(){}
public function displayLogout(){}
public function displayHeader(){}
public function displayFooter(){}
public function getFlashHeight(){}
public function getFlashParams(){}
public function displayFlashFile(){}
public function getRequestListLink(){}
public function getAppInfoPage(){}
public function getAppNewsfeedPage(){}
public function getAppForums(){}
// PLATFORM API
public function getEmail($uid){}
public function getThirdPartyID($uid){}
public function getUidFromThirdPartyID($tpi){}
abstract public function isFan();
abstract public function isBookmarked();
abstract public function isSubscribed();
abstract public function isStreaming();
// SOCIAL CHANNELS
public function addUserActivity($data) {}
public function publishUserAction($data) {}
public function displayInviteBox($data) {}
public function publishStats($key, $value) {}
}
?>