Bitrix API

Condition

Table of Contents

Methods

__construct()  : mixed
checkValue()  : bool
getOperator()  : string
getOperatorList()  : array<string|int, mixed>
getValue()  : mixed
setOperator()  : Condition
setValue()  : Condition
toArray()  : array<string|int, mixed>

Methods

__construct()

public __construct([array<string|int, mixed> $params = null ]) : mixed
Parameters
$params : array<string|int, mixed> = null

checkValue()

public checkValue(mixed $valueToCheck, FieldType $fieldType, array<string|int, mixed> $documentId) : bool
Parameters
$valueToCheck : mixed

The field value to check.

$fieldType : FieldType
$documentId : array<string|int, mixed>

Document Id.

Return values
bool

getOperator()

public getOperator() : string
Return values
string

getOperatorList()

public static getOperatorList() : array<string|int, mixed>
Return values
array<string|int, mixed>

setOperator()

public setOperator(string $operator) : Condition
Parameters
$operator : string

Operator like =, <, > etc.

Return values
Condition

toArray()

public toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>

Array presentation of condition.


        
On this page

Search results