Bitrix API

Condition extends Condition

Table of Contents

Methods

__construct()  : mixed
check()  : bool
checkValue()  : bool
getField()  : string
getObject()  : string
getOperator()  : string
getOperatorList()  : array<string|int, mixed>
getValue()  : mixed
setField()  : Condition
setObject()  : Condition
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

check()

public check(mixed $needle, string $fieldType, BaseTarget $target, FieldType $fieldTypeObject) : bool
Parameters
$needle : mixed

The field value to check.

$fieldType : string

Type of the field.

$target : BaseTarget

Automation target.

$fieldTypeObject : FieldType
Return values
bool

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

getField()

public getField() : string
Return values
string

getObject()

public getObject() : string
Return values
string

getOperator()

public getOperator() : string
Return values
string

getOperatorList()

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

setObject()

public setObject(string $objectName) : Condition
Parameters
$objectName : string

The object name.

Return values
Condition

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