This is the API documentation for concrete5 version 5.6 and earlier. View Current API Documentation

Class Concrete5_Model_UsersFriends

User associations

Concrete5_Library_Object
Extended by Object
Extended by Concrete5_Model_UsersFriends

Direct known subclasses

UsersFriends

Package: Users
Category: Concrete
Copyright: Copyright (c) 2003-2009 Concrete5. (http://www.concrete5.org)
License: MIT License
Located at core/models/users_friends.php

Methods summary

public static array
# getUsersFriendsData( integer $uID = 0, string $sortBy = 'uf.uDateAdded DESC' )

Get data from a users friends

public static boolean
# isFriend( integer $friendUID, integer $uID = 0 )

Check if a user is friends with another $friendUID is the user id of the person you want to check $uID is the user id of the person you are checking from

public static boolean
# addFriend( integer $friendUID, integer $uID = 0, $status = '' )

Adds a user as a friend to another $friendUID is the person you want to add as a friend $uID is the person that is friending $friendUID

public static boolean
# removeFriend( integer $friendUID, integer $uID = 0 )

removes a user as a friend to another $friendUID is the person you want to remove as a friend $uID is the person that is un-friending $friendUID

Properties summary

Properties inherited from Concrete5_Library_Object

$error