Elgg
Version 3.0
|
Public Member Functions | |
addFriend ($friend_guid) | |
Adds a user as a friend. More... | |
removeFriend ($friend_guid) | |
Removes a user as a friend. More... | |
isFriend () | |
Determines whether or not the current user is a friend of this entity. More... | |
isFriendsWith ($user_guid) | |
Determines whether or not this entity is friends with a particular entity. More... | |
isFriendOf ($user_guid) | |
Determines whether or not a foreign entity has made this one a friend. More... | |
getFriends (array $options=[]) | |
Gets this entity's friends. More... | |
getFriendsOf (array $options=[]) | |
Gets users who have made this entity a friend. More... | |
getObjects (array $options=[]) | |
Get an array of owned by this entity. More... | |
getFriendsObjects (array $options=[]) | |
Get an array of owned by this entity's friends. More... | |
Definition at line 8 of file Friendable.php.
Friendable::addFriend | ( | $friend_guid | ) |
Adds a user as a friend.
int | $friend_guid | The GUID of the user to add |
Friendable::getFriends | ( | array | $options = [] | ) |
Gets this entity's friends.
array | $options | Options array. See elgg_get_entities() for a list of options. 'relationship_guid' is set to this entity, relationship name to 'friend' and type to 'user'. |
Implemented in ElggUser.
Friendable::getFriendsObjects | ( | array | $options = [] | ) |
Get an array of owned by this entity's friends.
array | $options | Options array. See elgg_get_entities() for a list of options. 'relationship_guid' is set to this entity, type to 'object', relationship name to 'friend' and relationship_join_on to 'container_guid'. |
Implemented in ElggUser.
Friendable::getFriendsOf | ( | array | $options = [] | ) |
Gets users who have made this entity a friend.
array | $options | Options array. See elgg_get_entities() for a list of options. 'relationship_guid' is set to this entity, relationship name to 'friend', type to 'user' and inverse_relationship to true. |
Implemented in ElggUser.
Friendable::getObjects | ( | array | $options = [] | ) |
Get an array of owned by this entity.
array | $options | Options array. See elgg_get_entities() for a list of options. 'type' is set to object and owner_guid to this entity. |
Implemented in ElggUser.
Friendable::isFriend | ( | ) |
Determines whether or not the current user is a friend of this entity.
Implemented in ElggUser.
Friendable::isFriendOf | ( | $user_guid | ) |
Determines whether or not a foreign entity has made this one a friend.
int | $user_guid | The GUID of the foreign entity |
Implemented in ElggUser.
Friendable::isFriendsWith | ( | $user_guid | ) |
Determines whether or not this entity is friends with a particular entity.
int | $user_guid | The GUID of the entity this entity may or may not be friends with |
Implemented in ElggUser.
Friendable::removeFriend | ( | $friend_guid | ) |
Removes a user as a friend.
int | $friend_guid | The GUID of the user to remove |
Implemented in ElggUser.