PersonRepository
Table of Contents
Methods
-
add()
: Person
-
addSearchIndexByPersonId()
: Result|SuccessResult
-
countAllMappedByCompanyId()
: int
-
countNotMappedAndGroupByCompanyId()
: array<string|int, mixed>
-
countUnmappedPersons()
: int
-
deleteLink()
: PersonCollection
-
deleteSearchIndexByPersonId()
: Result|SuccessResult
-
existByUserId()
: bool
-
getByCompany()
: PersonCollection
-
getByCompanyExcludeMapped()
: PersonCollection
-
getById()
: Person|null
-
getByIdsExcludeMapped()
: PersonCollection
-
getByUnique()
: Person|null
-
getByUserIdsAndGroupByCompanyId()
: array<string|int, mixed>
-
getCountMappedPersonsByUserIds()
: int
-
getList()
: PersonCollection
-
getListByIds()
: PersonCollection
-
getMappedPersons()
: PersonCollection
-
getMappedPersonsByCompanyId()
: PersonCollection
-
getMappedUserIdsByCompanyId()
: array<string|int, mixed>
-
getUnmappedPersonsByCompanyId()
: PersonCollection
-
hasPersonSearchIndex()
: bool
-
searchByIndexAndCompanyId()
: PersonCollection
-
update()
: Person
-
updateCounter()
: Result|SuccessResult
-
updateSearchIndexByPersonId()
: Result|SuccessResult
add()
public
add(Person $person) : Person
Parameters
-
$person
: Person
-
addSearchIndexByPersonId()
public
addSearchIndexByPersonId(int $personId, string $searchContent) : Result|SuccessResult
Parameters
-
$personId
: int
-
-
$searchContent
: string
-
countAllMappedByCompanyId()
public
countAllMappedByCompanyId(int $companyId) : int
Parameters
-
$companyId
: int
-
countNotMappedAndGroupByCompanyId()
public
countNotMappedAndGroupByCompanyId([array<string|int, mixed> $companyIds = [] ]) : array<string|int, mixed>
Parameters
-
$companyIds
: array<string|int, mixed>
= []
-
Return values
array<string|int, mixed>
countUnmappedPersons()
public
countUnmappedPersons(int $companyId) : int
Parameters
-
$companyId
: int
-
deleteLink()
public
deleteLink(PersonCollection $personCollection) : PersonCollection
Parameters
-
$personCollection
: PersonCollection
-
deleteSearchIndexByPersonId()
public
deleteSearchIndexByPersonId(int $personId) : Result|SuccessResult
Parameters
-
$personId
: int
-
existByUserId()
public
existByUserId(int $userId) : bool
Parameters
-
$userId
: int
-
getByCompany()
public
getByCompany(int $companyId) : PersonCollection
Parameters
-
$companyId
: int
-
getByCompanyExcludeMapped()
public
getByCompanyExcludeMapped(int $companyId, int|null $limit) : PersonCollection
Parameters
-
$companyId
: int
-
-
$limit
: int|null
-
getById()
public
getById(int $id) : Person|null
Parameters
-
$id
: int
-
getByIdsExcludeMapped()
public
getByIdsExcludeMapped(array<string|int, mixed> $ids, int $companyId) : PersonCollection
Parameters
-
$ids
: array<string|int, mixed>
-
-
$companyId
: int
-
getByUnique()
public
getByUnique(int $companyId, string $code) : Person|null
Parameters
-
$companyId
: int
-
-
$code
: string
-
getByUserIdsAndGroupByCompanyId()
public
getByUserIdsAndGroupByCompanyId(int $userId) : array<string|int, mixed>
Parameters
-
$userId
: int
-
Return values
array<string|int, mixed>
getCountMappedPersonsByUserIds()
public
getCountMappedPersonsByUserIds(int $companyId, array<string|int, mixed> $userIds) : int
Parameters
-
$companyId
: int
-
-
$userIds
: array<string|int, mixed>
-
getList()
public
getList(int $companyId[, int $limit = 100 ][, int $offset = 0 ][, DateTime|null $fromDate = null ]) : PersonCollection
Parameters
-
$companyId
: int
-
-
$limit
: int
= 100
-
-
$offset
: int
= 0
-
-
$fromDate
: DateTime|null
= null
-
getListByIds()
public
getListByIds(array<string|int, mixed> $ids) : PersonCollection
Parameters
-
$ids
: array<string|int, mixed>
-
getMappedPersons()
public
getMappedPersons(ConditionTree $filter, int $limit, int $offset) : PersonCollection
Parameters
-
$filter
: ConditionTree
-
-
$limit
: int
-
-
$offset
: int
-
getMappedPersonsByCompanyId()
public
getMappedPersonsByCompanyId(int $companyId, ConditionTree $filter, int $limit, int $offset) : PersonCollection
Parameters
-
$companyId
: int
-
-
$filter
: ConditionTree
-
-
$limit
: int
-
-
$offset
: int
-
getMappedUserIdsByCompanyId()
public
getMappedUserIdsByCompanyId(int $companyId) : array<string|int, mixed>
Parameters
-
$companyId
: int
-
Return values
array<string|int, mixed>
getUnmappedPersonsByCompanyId()
public
getUnmappedPersonsByCompanyId(int $companyId, int $limit[, string|null $searchName = null ]) : PersonCollection
Parameters
-
$companyId
: int
-
-
$limit
: int
-
-
$searchName
: string|null
= null
-
hasPersonSearchIndex()
public
hasPersonSearchIndex(int $personId) : bool
Parameters
-
$personId
: int
-
searchByIndexAndCompanyId()
public
searchByIndexAndCompanyId(string $search, int $companyId, int $limit) : PersonCollection
Parameters
-
$search
: string
-
-
$companyId
: int
-
-
$limit
: int
-
update()
public
update(Person $person) : Person
Parameters
-
$person
: Person
-
updateCounter()
public
updateCounter(int $personId) : Result|SuccessResult
Parameters
-
$personId
: int
-
updateSearchIndexByPersonId()
public
updateSearchIndexByPersonId(int $personId, string $searchContent) : Result|SuccessResult
Parameters
-
$personId
: int
-
-
$searchContent
: string
-