Bitrix API

UserBasedField

FinalYes

Transform 'all-users' and 'other-users' filter values to ORM compatible values.

Table of Contents

Constants

DEFAULT_FILTER_FIELDS_TO_TRANSFORM  = ['ASSIGNED_BY_ID', 'ACTIVITY_RESPONSIBLE_IDS']

Methods

allUsers()  : array<string|int, mixed>
applyTransformWrapper()  : void
Transform 'all-users' and 'other-users' filter values to ORM compatible values.
transform()  : void
transformAll()  : void

Constants

DEFAULT_FILTER_FIELDS_TO_TRANSFORM

public mixed DEFAULT_FILTER_FIELDS_TO_TRANSFORM = ['ASSIGNED_BY_ID', 'ACTIVITY_RESPONSIBLE_IDS']

Methods

allUsers()

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

applyTransformWrapper()

Transform 'all-users' and 'other-users' filter values to ORM compatible values.

public static applyTransformWrapper(array<string|int, mixed> &$filter[, array<string|int, mixed>|null $fieldNames = null ]) : void
Parameters
$filter : array<string|int, mixed>
$fieldNames : array<string|int, mixed>|null = null

fields to transform. If empty will be user default list self::DEFAULT_FILTER_FIELDS_TO_TRANSFORM

transform()

public transform(array<string|int, mixed> &$filter, string $fieldName, int|null $currentUser) : void
Parameters
$filter : array<string|int, mixed>
$fieldName : string
$currentUser : int|null

transformAll()

public transformAll(array<string|int, mixed> &$filter, array<string|int, string> $fieldNames, int|null $currentUser) : void
Parameters
$filter : array<string|int, mixed>
$fieldNames : array<string|int, string>
$currentUser : int|null

        
On this page

Search results