PHP Класс Folks_Friends_sql, horde

Copyright 2007-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (GPL). If you did not receive this file, see http://www.horde.org/licenses/gpl.
Автор: Duck ([email protected])
Наследование: extends Folks_Friends
Показать файл Открыть проект

Открытые методы

Метод Описание
friendOf ( ) : array Get users who have you on friendlist
waitingApprovalFor ( ) Get friends that does not confirm the current user yet
waitingApprovalFrom ( ) Get friends that does not confirm the current user yet

Защищенные методы

Метод Описание
__construct ( array $params = [] ) Constructs a new SQL storage object.
_addBlacklisted ( string $user ) Add user to a blacklist list
_addFriend ( string $friend ) Add user to a friend list
_approveFriend ( string $friend ) Approve our friend to add us to his userlist
_connect ( ) : boolean Attempts to open a persistent connection to the SQL server.
_getBlacklist ( ) : array Get user blacklist
_getFriends ( ) : array Get user friends
_getGroups ( ) Get user groups
_removeBlacklisted ( string $user ) Remove user from blacklist list
_removeFriend ( string $friend ) Remove user from a fiend list

Описание методов

__construct() защищенный Метод

Constructs a new SQL storage object.
protected __construct ( array $params = [] )
$params array A hash containing connection parameters.

_addBlacklisted() защищенный Метод

Add user to a blacklist list
protected _addBlacklisted ( string $user )
$user string Usersame

_addFriend() защищенный Метод

Add user to a friend list
protected _addFriend ( string $friend )
$friend string Friend's usersame

_approveFriend() защищенный Метод

Approve our friend to add us to his userlist
protected _approveFriend ( string $friend )
$friend string Friedn username

_connect() защищенный Метод

Attempts to open a persistent connection to the SQL server.
protected _connect ( ) : boolean
Результат boolean True on success.

_getBlacklist() защищенный Метод

Get user blacklist
protected _getBlacklist ( ) : array
Результат array of users blacklist

_getFriends() защищенный Метод

Get user friends
protected _getFriends ( ) : array
Результат array of user's friends

_getGroups() защищенный Метод

Get user groups
protected _getGroups ( )

_removeBlacklisted() защищенный Метод

Remove user from blacklist list
protected _removeBlacklisted ( string $user )
$user string Usersame

_removeFriend() защищенный Метод

Remove user from a fiend list
protected _removeFriend ( string $friend )
$friend string Friend's usersame

friendOf() публичный Метод

Get users who have you on friendlist
public friendOf ( ) : array
Результат array users

waitingApprovalFor() публичный Метод

Get friends that does not confirm the current user yet
public waitingApprovalFor ( )

waitingApprovalFrom() публичный Метод

Get friends that does not confirm the current user yet
public waitingApprovalFrom ( )