Class Socialveo\Core\helpers\NetworkHelper

InheritanceSocialveo\Core\helpers\NetworkHelper

Class NetworkHelper

Method Details

addModerator() public static method

Add moderator

public static void addModerator ( Socialveo\Core\models\Network $network, Socialveo\Core\models\User $user )
$network Socialveo\Core\models\Network
$user Socialveo\Core\models\User
throws Exception
changeAvatar() public static method

Change avatar

public static boolean changeAvatar ( Socialveo\Core\models\Network $network )
$network Socialveo\Core\models\Network
throws Exception
changeCover() public static method

Change cover

public static boolean changeCover ( Socialveo\Core\models\Network $network )
$network Socialveo\Core\models\Network
throws Exception
create() public static method

Create network

public static Socialveo\Core\models\Network create ( $data = [] )
$data array

[optional]

throws Exception
removeModerator() public static method

Remove moderator

public static void removeModerator ( Socialveo\Core\models\Network $network, Socialveo\Core\models\User $user )
$network Socialveo\Core\models\Network
$user Socialveo\Core\models\User
throws Exception
searchMembersPagination() public static method

public static array searchMembersPagination ( Socialveo\Core\models\Network $network, $currentPage, $followers false )
$network Socialveo\Core\models\Network
$currentPage integer
$followers boolean
uploadImage() public static method

Upload image from $_FILES or from request body depends on content-type

public static boolean uploadImage ( Socialveo\Core\models\Network $network, $type null, $file null, $multiple false )
$network Socialveo\Core\models\Network
$type string

[optional] avatar or cover

$file Phalcon\Http\Request\File|mixed

[optional]

$multiple boolean

[optional]

throws Exception