Bitrix API

PersonRepository implements PersonRepository

Table of Contents

Interfaces

PersonRepository

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>
getModelByUnique()  : Person|null
getPersonCollectionWithoutMapped()  : PersonCollection
getUnmappedPersonsByCompanyId()  : PersonCollection
hasPersonSearchIndex()  : bool
saveAll()  : mixed
searchByIndexAndCompanyId()  : PersonCollection
update()  : Person
updateCounter()  : Result|SuccessResult
updateSearchIndexByPersonId()  : Result|SuccessResult

Methods

addSearchIndexByPersonId()

public addSearchIndexByPersonId(int $personId, string $searchContent) : Result|SuccessResult
Parameters
$personId : int
$searchContent : string
Return values
Result|SuccessResult

countAllMappedByCompanyId()

public countAllMappedByCompanyId(int $companyId) : int
Parameters
$companyId : int
Return values
int

countNotMappedAndGroupByCompanyId()

public countNotMappedAndGroupByCompanyId([array<int, int> $companyIds = [] ]) : array<string|int, mixed>
Parameters
$companyIds : array<int, int> = []
Tags
throws
ArgumentException
throws
ObjectPropertyException
throws
SystemException
Return values
array<string|int, mixed>

countUnmappedPersons()

public countUnmappedPersons(int $companyId) : int
Parameters
$companyId : int
Return values
int

existByUserId()

public existByUserId(int $userId) : bool
Parameters
$userId : int
Return values
bool

getByUnique()

public getByUnique(int $companyId, string $code) : Person|null
Parameters
$companyId : int
$code : string
Return values
Person|null

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>
Return values
int

getMappedUserIdsByCompanyId()

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

getModelByUnique()

public getModelByUnique(int $companyId, string $code) : Person|null
Parameters
$companyId : int
$code : string
Return values
Person|null

getUnmappedPersonsByCompanyId()

public getUnmappedPersonsByCompanyId(int $companyId, int $limit[, string|null $searchName = null ]) : PersonCollection
Parameters
$companyId : int
$limit : int
$searchName : string|null = null
Return values
PersonCollection

hasPersonSearchIndex()

public hasPersonSearchIndex(int $personId) : bool
Parameters
$personId : int
Return values
bool

        
On this page

Search results