Bitrix API

ProfileProvider

FinalYes

Table of Contents

Constants

SOURCE_UF  = 2
SOURCE_USER  = 1

Methods

__construct()  : mixed
getDescriptionByFieldName()  : array<string|int, mixed>
getFieldsForSelector()  : array{PROFILE: array{CAPTION: string, FIELDS: array, MODULE_ID: string}}
getFormattedName()  : string
getNameFormat()  : string
getProfileFieldNameByFieldCode()  : string
isFieldCodeUserProfileField()  : bool
isProfileField()  : bool
loadFieldData()  : ProfileFieldData
setAccessController()  : self
setCache()  : static
updateFieldData()  : Result

Constants

Methods

getDescriptionByFieldName()

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

getFieldsForSelector()

public getFieldsForSelector() : array{PROFILE: array{CAPTION: string, FIELDS: array, MODULE_ID: string}}
Return values
array{PROFILE: array{CAPTION: string, FIELDS: array, MODULE_ID: string}}

getFormattedName()

public getFormattedName(string|null $firstName, string|null $lastName, string|null $secondName) : string
Parameters
$firstName : string|null
$lastName : string|null
$secondName : string|null
Return values
string

getNameFormat()

public getNameFormat() : string
Return values
string

getProfileFieldNameByFieldCode()

public getProfileFieldNameByFieldCode(string $fieldCode) : string
Parameters
$fieldCode : string
Return values
string

isFieldCodeUserProfileField()

public isFieldCodeUserProfileField(string $fieldCode) : bool
Parameters
$fieldCode : string
Return values
bool

isProfileField()

public isProfileField(string $fieldName) : bool
Parameters
$fieldName : string
Return values
bool

loadFieldData()

public loadFieldData(int $userId, string $fieldName[, string $subFieldName = '' ][, bool $originalValue = false ]) : ProfileFieldData
Parameters
$userId : int
$fieldName : string
$subFieldName : string = ''
$originalValue : bool = false
Return values
ProfileFieldData

updateFieldData()

public updateFieldData(int $userId, string $fieldName, string|array<string|int, mixed> $value) : Result
Parameters
$userId : int
$fieldName : string
$value : string|array<string|int, mixed>
Return values
Result

        
On this page

Search results