Class Socialveo\Core\helpers\CircleHelper

InheritanceSocialveo\Core\helpers\CircleHelper
Uses TraitsSocialveo\Core\Translatable

Class CircleHelper

Public Methods

Hide inherited methods

MethodDescriptionDefined By
_t() Gets translations Socialveo\Core\Translatable
handle() Set/unset circles (connection) Socialveo\Core\helpers\CircleHelper
makeFriend() Socialveo\Core\helpers\CircleHelper
t() Gets translations Socialveo\Core\Translatable

Method Details

handle() public static method

Set/unset circles (connection)

public static array handle ( $user, $friend, $firstCircle true, $circlesUuids false )
$user Socialveo\Core\models\User|null

[optional] Returns reference to friend

$friend Socialveo\Core\models\User|null

[optional] Returns reference to friend

$firstCircle boolean

[optional] True for connect and put in the first circle, otherwise will create circles from circles get param

$circlesUuids boolean

[optional] False for connect and put in the first circle, otherwise will create circles from this circles uuids

makeFriend() public static method

public static void makeFriend ( $user, $friend, $firstCircle true, $circlesUuids false )
$user
$friend
$firstCircle
$circlesUuids