Table of Contents
Interfaces
- EmployeeRepository
Methods
-
add()
: Employee
-
deleteById()
: Result
-
getByIds()
: EmployeeCollection
-
getByPersonId()
: EmployeeCollection
-
getByPersonIds()
: EmployeeCollection
-
getByPersonUnique()
: Employee|null
-
getByUnique()
: Employee|null
-
getCollectionByPersonIds()
: EmployeeCollection
-
getSeveralByPersonIds()
: EmployeeCollection
-
getUsersMapById()
: array<string|int, mixed>
-
hasSeveralByPersonIds()
: bool
-
listMappedUserIdWithOneEmployeePosition()
: array<string|int, mixed>
-
listMultipleVacancyEmployeesByUserIdsAndCompany()
: array<string|int, mixed>
-
save()
: Employee
-
update()
: Employee
add()
public
add(Employee $employee) : Employee
Parameters
-
$employee
: Employee
-
deleteById()
public
deleteById(int $id) : Result
Parameters
-
$id
: int
-
getByIds()
public
getByIds(array<string|int, mixed> $ids) : EmployeeCollection
Parameters
-
$ids
: array<string|int, mixed>
-
getByPersonId()
public
getByPersonId(int $personId) : EmployeeCollection
Parameters
-
$personId
: int
-
getByPersonIds()
public
getByPersonIds(array<string|int, mixed> $personIds) : EmployeeCollection
Parameters
-
$personIds
: array<string|int, mixed>
-
getByPersonUnique()
public
getByPersonUnique(int $personId, string $code) : Employee|null
Parameters
-
$personId
: int
-
-
$code
: string
-
getByUnique()
public
getByUnique(int $companyId, string $code) : Employee|null
Parameters
-
$companyId
: int
-
-
$code
: string
-
getCollectionByPersonIds()
public
getCollectionByPersonIds(array<string|int, int> $personIds[, int|null $limit = null ]) : EmployeeCollection
Parameters
-
$personIds
: array<string|int, int>
-
-
$limit
: int|null
= null
-
-
throws
-
ArgumentException
-
throws
-
ObjectPropertyException
-
throws
-
SystemException
-
throws
-
WrongStructureItemException
getSeveralByPersonIds()
public
getSeveralByPersonIds(array<string|int, mixed> $personIds) : EmployeeCollection
Parameters
-
$personIds
: array<string|int, mixed>
-
getUsersMapById()
public
getUsersMapById(array<string|int, int> ...$userIds) : array<string|int, mixed>
Parameters
-
$userIds
: array<string|int, int>
-
-
throws
-
ArgumentException
-
throws
-
ObjectPropertyException
-
throws
-
SystemException
Return values
array<string|int, mixed>
hasSeveralByPersonIds()
public
hasSeveralByPersonIds(array<string|int, mixed> $personIds) : bool
Parameters
-
$personIds
: array<string|int, mixed>
-
listMappedUserIdWithOneEmployeePosition()
public
listMappedUserIdWithOneEmployeePosition(int $companyId, int ...$userIds) : array<string|int, mixed>
Parameters
-
$companyId
: int
-
-
$userIds
: int
-
Return values
array<string|int, mixed>
listMultipleVacancyEmployeesByUserIdsAndCompany()
public
listMultipleVacancyEmployeesByUserIdsAndCompany(int $companyId, int ...$userIds) : array<string|int, mixed>
Parameters
-
$companyId
: int
-
-
$userIds
: int
-
Return values
array<string|int, mixed>
save()
public
save(Employee $item) : Employee
Parameters
-
$item
: Employee
-
update()
public
update(Employee $employee) : Employee
Parameters
-
$employee
: Employee
-