UserSubordinate
Table of Contents
Constants
-
RELATION_DEPARTMENT
= 2
-
RELATION_DIRECTOR
= 4
-
RELATION_HIMSELF
= 1
-
RELATION_OTHER
= 0
-
RELATION_OTHER_DIRECTOR
= 5
-
RELATION_SUBORDINATE
= 3
Methods
-
__construct()
: mixed
-
getDepartmentsByUserId()
: array<string|int, mixed>
-
getParentDepartments()
: array<string|int, mixed>
-
getSubordinate()
: int
RELATION_DEPARTMENT
public
mixed
RELATION_DEPARTMENT
= 2
RELATION_DIRECTOR
public
mixed
RELATION_DIRECTOR
= 4
RELATION_HIMSELF
public
mixed
RELATION_HIMSELF
= 1
RELATION_OTHER
public
mixed
RELATION_OTHER
= 0
RELATION_OTHER_DIRECTOR
public
mixed
RELATION_OTHER_DIRECTOR
= 5
RELATION_SUBORDINATE
public
mixed
RELATION_SUBORDINATE
= 3
__construct()
public
__construct(int $userId) : mixed
Parameters
-
$userId
: int
-
getDepartmentsByUserId()
public
static getDepartmentsByUserId(int $userId) : array<string|int, mixed>
Parameters
-
$userId
: int
-
Return values
array<string|int, mixed>
getParentDepartments()
public
static getParentDepartments(int $id) : array<string|int, mixed>
Parameters
-
$id
: int
-
Return values
array<string|int, mixed>
getSubordinate()
public
getSubordinate(int $userId) : int
Parameters
-
$userId
: int
-