Bitrix API

SearchFilterBuilder

FinalYes

Class SearchFilterBuilder

Encapsulates the logic for building search filters to search for files and folders in the ORM.

Table of Contents

Methods

__construct()  : mixed
Constructor.
buildFilter()  : array<string|int, mixed>
Builds the filter array based on the search term.

Methods

__construct()

Constructor.

public __construct([string|null $refencePathToIndex = null ]) : mixed
Parameters
$refencePathToIndex : string|null = null

The reference path to the index (e.g., 'FILE'). Default is null and means the root of the file table.

buildFilter()

Builds the filter array based on the search term.

public buildFilter(string $search) : array<string|int, mixed>
Parameters
$search : string

The search term input.

Return values
array<string|int, mixed>

The constructed filter array for ORM queries.


        
On this page

Search results