Field
FinalYes
Table of Contents
Constants
- USER_FIELD_CODE_PREFIX = 'USER_'
Methods
- __construct() : mixed
- createByBlocks() : FieldCollection
- createByRequired() : Field|null
- createDocumentFutureSignerFields() : FieldCollection
- createDocumentMemberFields() : FieldCollection
- getUserFieldValue() : mixed
Constants
USER_FIELD_CODE_PREFIX
public
mixed
USER_FIELD_CODE_PREFIX
= 'USER_'
Methods
__construct()
public
__construct([BlockRepository|null $blockRepository = null ][, HcmLinkFieldService|null $hcmLinkFieldService = null ][, Factory|null $blockFactory = null ]) : mixed
Parameters
- $blockRepository : BlockRepository|null = null
- $hcmLinkFieldService : HcmLinkFieldService|null = null
- $blockFactory : Factory|null = null
createByBlocks()
public
createByBlocks(BlockCollection $blocks, Member|null $member[, Document|null $document = null ]) : FieldCollection
Parameters
- $blocks : BlockCollection
- $member : Member|null
- $document : Document|null = null
Return values
FieldCollectioncreateByRequired()
public
createByRequired(Document $document, MemberCollection $members, RequiredField $requiredField) : Field|null
Parameters
- $document : Document
- $members : MemberCollection
- $requiredField : RequiredField
Return values
Field|nullcreateDocumentFutureSignerFields()
public
createDocumentFutureSignerFields(Document $document, int $userId[, bool $withValues = true ]) : FieldCollection
Parameters
- $document : Document
- $userId : int
- $withValues : bool = true
Return values
FieldCollectioncreateDocumentMemberFields()
public
createDocumentMemberFields(Document $document, Member $member[, bool $withValues = false ]) : FieldCollection
Parameters
Return values
FieldCollectiongetUserFieldValue()
public
static getUserFieldValue(int $userId, array{entityId: string, sourceName: string, type: string, userFieldId: string} $field[, string $subFieldName = '' ][, bool $originalValue = false ]) : mixed
Parameters
- $userId : int
- $field : array{entityId: string, sourceName: string, type: string, userFieldId: string}
- $subFieldName : string = ''
- $originalValue : bool = false