PHP Class Folks_Friends_prefs, horde

NOTE: You must add this prefs to your application $_prefs['whitelist'] = array( 'value' => '', 'locked' => false, 'type' => 'implicit' ); $_prefs['blacklist'] = array( 'value' => '', 'locked' => false, 'type' => 'implicit' ); 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.
Author: Duck ([email protected])
Inheritance: extends Folks_Friends
Show file Open project: horde/horde

Public Methods

Method Description
getBlacklist ( ) : array Get user blacklist
getFriends ( ) : array Get user friends
getGroups ( ) Get avaiable groups
removeBlacklisted ( string $user ) Add user to a blacklist list
removeFriend ( string $friend ) Remove user from a fiend list

Protected Methods

Method Description
_addBlacklisted ( string $user ) Add user to a blacklist list
_addFriend ( string $friend ) Add user to a friend list

Private Methods

Method Description
_addrem_lists ( string $type, string $user ) Add/remove a user from a list
_lists ( string $type, string $user = null ) : array Returns array of usernames in a list of false if list is empty splits list by any number of commas or space characters which include " ", \r, \t, \n and \f

Method Details

_addBlacklisted() protected method

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

_addFriend() protected method

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

getBlacklist() public method

Get user blacklist
public getBlacklist ( ) : array
return array of users blacklist

getFriends() public method

Get user friends
public getFriends ( ) : array
return array of users

getGroups() public method

Get avaiable groups
public getGroups ( )

removeBlacklisted() public method

Add user to a blacklist list
public removeBlacklisted ( string $user )
$user string Usersame

removeFriend() public method

Remove user from a fiend list
public removeFriend ( string $friend )
$friend string Friend's usersame