Bitrix API

ExtractUsersFromFilter

FinalYes

Table of Contents

Methods

extract()  : array<string|int, mixed>
Extracts user IDs from the filter array based on the given field name.

Methods

extract()

Extracts user IDs from the filter array based on the given field name.

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

The filter array to extract user IDs from.

$fieldName : string

The field name to use for extracting user IDs.

Return values
array<string|int, mixed>

Returns an array containing user IDs and a boolean value indicating whether the filter contains user IDs to exclude. If no user IDs are found, returns an empty array and false. If negative user IDs are found, returns an array containing the negative user IDs and true.


        
On this page

Search results