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
파일 보기 프로젝트 열기: horde/horde

공개 메소드들

메소드 설명
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 ( )