Documentation

MultiCompany
in package

Multi company basic class.

Table of Contents

getAll()  : array<string|int, mixed>
Get all multi company records.
getRolesByCompany()  : array<string|int, int>
Gets roles by company ID.
getUsersByCompany()  : array<string|int, mixed>
Get user ids by multi company id.

Methods

getAll()

Get all multi company records.

public static getAll() : array<string|int, mixed>
Return values
array<string|int, mixed>

getRolesByCompany()

Gets roles by company ID.

public static getRolesByCompany(int $companyId) : array<string|int, int>
Parameters
$companyId : int
Return values
array<string|int, int>

getUsersByCompany()

Get user ids by multi company id.

public static getUsersByCompany(int $companyId) : array<string|int, mixed>
Parameters
$companyId : int
Return values
array<string|int, mixed>

        

Search results