Elgg  Version 3.0
Friendable.php
Go to the documentation of this file.
1 <?php
8 interface Friendable {
16  public function addFriend($friend_guid);
17 
25  public function removeFriend($friend_guid);
26 
32  public function isFriend();
33 
41  public function isFriendsWith($user_guid);
42 
50  public function isFriendOf($user_guid);
51 
61  public function getFriends(array $options = []);
62 
73  public function getFriendsOf(array $options = []);
74 
83  public function getObjects(array $options = []);
84 
95  public function getFriendsObjects(array $options = []);
96 }
isFriend()
Determines whether or not the current user is a friend of this entity.
getObjects(array $options=[])
Get an array of owned by this entity.
removeFriend($friend_guid)
Removes a user as a friend.
$options
Elgg admin footer.
Definition: footer.php:6
addFriend($friend_guid)
Adds a user as a friend.
$user_guid
Validate a user.
Definition: validate.php:6
isFriendsWith($user_guid)
Determines whether or not this entity is friends with a particular entity.
getFriendsObjects(array $options=[])
Get an array of owned by this entity&#39;s friends.
getFriends(array $options=[])
Gets this entity&#39;s friends.
if(elgg_get_config('allow_registration')==false) $friend_guid
Definition: register.php:20
isFriendOf($user_guid)
Determines whether or not a foreign entity has made this one a friend.
getFriendsOf(array $options=[])
Gets users who have made this entity a friend.