Class Socialveo\Core\helpers\ConnectionsHelper

InheritanceSocialveo\Core\helpers\ConnectionsHelper
Uses TraitsSocialveo\Core\Translatable

Class ConnectionsHelper

Method Details

acceptJoinNetwork() public static method

Accept join to network request

public static void acceptJoinNetwork ( Socialveo\Core\models\Connection $connection )
$connection Socialveo\Core\models\Connection
throws Exception
change() public static method

Change connection

public static Socialveo\Core\models\Connection change ( Socialveo\Core\models\Connection $connection, $data )
$connection Socialveo\Core\models\Connection
$data array
throws Exception
connectUserToFriend() public static method

Connect to user

public static Socialveo\Core\models\Connection connectUserToFriend ( Socialveo\Core\models\User $user, Socialveo\Core\models\User $friend )
$user Socialveo\Core\models\User
$friend Socialveo\Core\models\User
throws Exception
connectUsers() public static method

Create connection via users

public static Socialveo\Core\models\Connection[] connectUsers ( Socialveo\Core\models\User $user1, Socialveo\Core\models\User $user2 )
$user1 Socialveo\Core\models\User
$user2 Socialveo\Core\models\User
connectionNetwork() public static method

Join network

public static Socialveo\Core\models\Connection connectionNetwork ( Socialveo\Core\models\Network $network, Socialveo\Core\models\User $user null, $invite false, $activeType = \Socialveo\Core\models\Connection::ACTIVE_OK )
$network Socialveo\Core\models\Network
$user Socialveo\Core\models\User

[optional]

$invite boolean

[optional]

$activeType integer|array

[optional]

throws Exception
create() public static method

Create new Connection

public static Socialveo\Core\models\Connection create ( array $data )
$data array
throws Exception
createUserNotification() public static method

public static Socialveo\Core\models\Notification createUserNotification ( Socialveo\Core\models\Connection $connection )
$connection Socialveo\Core\models\Connection
throws Exception
findFriendFollowUser() public static method

Find friend follow connection

public static Socialveo\Core\models\Connection|null findFriendFollowUser ( Socialveo\Core\models\User $user, Socialveo\Core\models\User $friend )
$user Socialveo\Core\models\User
$friend Socialveo\Core\models\User
findUserFollowFriend() public static method

Find user follow connection

public static Socialveo\Core\models\Connection|null findUserFollowFriend ( Socialveo\Core\models\User $user, Socialveo\Core\models\User $friend )
$user Socialveo\Core\models\User
$friend Socialveo\Core\models\User
followNetwork() public static method

Follow

public static Socialveo\Core\models\Connection followNetwork ( Socialveo\Core\models\Network $network, $type, Socialveo\Core\models\User $user null )
$network Socialveo\Core\models\Network
$type string
$user Socialveo\Core\models\User
throws Exception
removeUserNotification() public static method

Remove connection notification

public static void removeUserNotification ( Socialveo\Core\models\Connection $connection )
$connection Socialveo\Core\models\Connection
throws Exception