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
Afficher le fichier Open project: horde/horde

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
_addBlacklisted ( string $user ) Add user to a blacklist list
_addFriend ( string $friend ) Add user to a friend list

Private Methods

Méthode 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 méthode

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

_addFriend() protected méthode

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

getBlacklist() public méthode

Get user blacklist
public getBlacklist ( ) : array
Résultat array of users blacklist

getFriends() public méthode

Get user friends
public getFriends ( ) : array
Résultat array of users

getGroups() public méthode

Get avaiable groups
public getGroups ( )

removeBlacklisted() public méthode

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

removeFriend() public méthode

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